PulseAugur
实时 07:28:26
English(EN) To Add Is Machine, To Delete Is Human: Measuring and Mitigating Deletion Avoidance in LLM Code Editing

研究发现,LLM 在删除代码方面存在困难,影响可维护性

一项新的研究论文指出了大型语言模型在代码编辑能力方面的一个重大问题:删除规避。模型倾向于保留应被删除的代码,通常通过将其包装在保护性代码或回退逻辑中,而不是直接删除。这种行为在 SWE-bench 基准测试中被观察到,影响了领先的模型,导致代码即使在测试通过后也更难维护。该研究还引入了一个新的基准测试 CanItDelete,专门用于测试删除能力,并提出训练后干预措施可能有助于缓解此问题。 AI

影响 指出了 LLM 代码编辑中的一个关键限制,这可能会影响软件开发工作流程,并提出了潜在的解决方案。

排序理由 发表在 arXiv 上的研究论文,详细介绍了 LLM 代码编辑能力的特定限制。[lever_c_demoted from research: ic=1 ai=1.0]

在 arXiv cs.AI 阅读 →

AI 生成摘要 · Google Gemini · 来自 1 个来源。 我们如何撰写摘要 →

研究发现,LLM 在删除代码方面存在困难,影响可维护性

报道来源 [1]

  1. arXiv cs.AI TIER_1 English(EN) · Amir M. Ebrahimi, Mohammed Mehedi Hasan, Aaditya Bhatia, Gopi Krishnan Rajbahadur, Ahmed E. Hassan ·

    添加是机器,删除是人类:衡量和减轻大型语言模型代码编辑中的删除规避

    arXiv:2607.28887v1 Announce Type: cross Abstract: Large language models increasingly write and repair production code, yet evidence is mounting that their test-passing patches leave codebases harder to maintain. We identify one concrete source: deletion avoidance, the systematic …