aifollow.news
Back Rohan Paul
Rohan Paul· @rohanpaul_ai · X· · Original publication time AI score54

Microsoft paper examines why AI coding agents produce larger bug-fix patchesMachine translation

AI introduction

The study replayed 7,660 GitHub Copilot CLI runs. Agent patches changed 2.33 times as many lines as developer fixes, but on SWE-bench Verified, 61% of the extra edits were tests. An average of 88.7% of agent code blocks were deemed necessary, versus 86.4% for developers; patch size alone cannot establish over-editing.

Original post · AI translation

@rohanpaul_ai
Translation · refer to the original

微软一篇新论文发现,AI 编程工具编写的漏洞修复补丁比人类程序员的更大(是人类开发者的 2.33 倍),主要是因为它们增加了测试和文档,而其实际代码与人类编写的代码一样有必要。

智能体补丁修改的代码行数是开发者修复补丁的 2.33 倍,这被广泛解读为过度编辑。仅凭补丁大小,无法判断额外修改是否必要、具体修改了什么,或这些修改来自哪里。

研究人员重放了来自 18 个模型的 7,660 次 GitHub Copilot CLI 运行,追踪每个补丁代码块由哪一步写入。随后,他们逐一移除各代码块,重新运行测试,并用同样的方法评估开发者的补丁。

在 SWE-bench Verified 上,额外修改中有 61% 是测试;智能体补丁中必要代码块的平均占比为 88.7%,开发者补丁则为 86.4%。不必要的代码产生于编写修复代码的过程,而非调试后遗留的内容;3 个 Gemini Flash 模型留下的不必要代码比开发者更多。

比较编程智能体时,应同时报告必要代码占比和问题解决率,并通过训练和运行后精简来减少过度编辑。

Source: Rohan Paul · x.com

Research
Found an error? Send a correction