aifollow.news
返回 Rohan Paul
Rohan Paul· @rohanpaul_ai · X· · 原发布时间 AI 评分54

研究追踪编程智能体的多余修改:额外改动多数是测试

AI 导读

研究回放了来自18个模型的7,660次 GitHub Copilot CLI 运行,逐块删除补丁内容并重新测试,以判断修改是否必要。在 SWE-bench Verified 上,智能体比开发者多出的修改中有61%是测试;其代码块平均有88.7%被判定为必要,开发者补丁为86.4%。

原帖引用 · 原文

@rohanpaul_ai

– https://arxiv.org/abs/2611.34875

Title: "How Much Do Coding Agents Over-Edit, and Why? An Empirical Study of Unneeded Edits in Repository-Level Agent Patches"

回复Rohan Paul@rohanpaul_ai
New Microsoft paper finds that AI coding tools write bigger bug fixes than human programmers (2.33X bigger than human developers) mainly because they add tests and documentation, while their actual code is about as necessary as a human's. Agent patches change 2.33 times as many lines as developer fixes, which is widely read as over-editing. Size alone cannot say whether the extra edits are needed, what they are, or where they come from. They replayed 7,660 GitHub Copilot CLI runs from 18 models and traced each patch block to the step that wrote it. They then removed each block, reran the tests, and graded developer patches the same way. On SWE-bench Verified, 61% of the extra edits were tests, and agent patches averaged 88.7% needed code blocks versus 86.4% for developers. The unneeded code came from writing the fix, not debug leftovers, and 3 Gemini Flash models left more than developers. Report needed-code share next to resolve rate when comparing coding agents, and cut over-editing through training and post-run pruning.
在 X 查看这条帖子 ↗

来源:Rohan Paul · x.com

论文
发现内容有误?提交纠错