Coding-agent patches are larger, but most extra edits are needed
Original title: How Much Do Coding Agents Over-Edit, and Why? An Empirical Study of Unneeded Edits in Repository-Level Agent Patches
On SWE-bench Verified, mean code necessity was 0.887 for agents versus 0.864 for developers.
Researchers introduce Delta Residue Attribution to test whether each block of an agent patch is needed by reverting it and rerunning tests. They graded 7,660 resolved GitHub Copilot CLI trajectories from 18 frontier models on SWE-bench Verified and DeepSWE, plus developer patches. Agent patches change more lines, but extra edits are mostly tests and documentation on SWE-bench Verified and mostly code on DeepSWE. Average code necessity matched or beat developers, though about 11% of code units on SWE-bench Verified remained unneeded.
Unconfirmed: Figures are the authors' benchmark measurements and are not independently replicated.
- DRA covered 6,728 SWE-bench Verified and 932 DeepSWE trajectories.
- On SWE-bench Verified, 61% of extra edits add tests and 13% documentation.
- On DeepSWE, 58% of extra edits are code.
- Eleven of 18 models left less unneeded code than developers.
- Self-audit of diffs reached 66% precision but only 36% recall.
From the original article
1 min read at arxiv.orgAgent patches are larger than developers', which is widely read as over-editing. But patch size does not say whether the extra edits are needed, what they are, or where they come from. We introduce Delta Residue Attribution (DRA), which replays agent trajectories, traces every block (unit) of the final patch to the step that wrote it, reverts each unit, and reruns the task tests to decide whether the unit is needed.
By Aakash Goel · arxiv.org
A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.