PulseAugur
EN
LIVE 06:32:32

LLMs struggle to delete code, hindering maintainability, new research finds

A new research paper identifies a significant issue in large language models' code editing capabilities: deletion avoidance. Models tend to retain code that should be removed, often by wrapping it in guards or fallbacks instead of deleting it. This behavior, observed across leading models on the SWE-bench benchmark, leads to code that is harder to maintain, even when tests pass. The research also introduces a new benchmark, CanItDelete, to specifically test deletion capabilities and suggests that post-training interventions could help mitigate this problem. AI

IMPACT Identifies a key limitation in LLM code editing that could impact software development workflows and suggests potential solutions.

RANK_REASON Research paper published on arXiv detailing a specific limitation in LLM code editing capabilities. [lever_c_demoted from research: ic=1 ai=1.0]

Read on arXiv cs.AI →

AI-generated summary · Google Gemini · from 1 sources. How we write summaries →

LLMs struggle to delete code, hindering maintainability, new research finds

COVERAGE [1]

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

    To Add Is Machine, To Delete Is Human: Measuring and Mitigating Deletion Avoidance in LLM Code Editing

    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 …