Microsoft Study Finds AI Coding Patches 2.33x Larger Than Human Fixes

Original title: New Microsoft paper finds that AI coding tools write bigger bug fixes than human programmers (2.33X ...
74AI Score

A new Microsoft paper replayed 7,660 GitHub Copilot CLI runs across 18 models, traced each patch block to its originating step, and re-ran tests to grade necessity. Agent patches touch 2.33x more lines than human fixes, but the surplus is mostly tests and documentation rather than redundant code. On SWE-bench Verified, 88.7% of agent code blocks were needed versus 86.4% for developers, suggesting over-editing stems from the fix itself, not debug leftovers; the authors urge reporting needed-code share alongside resolve rate.

Full Report

Rohan Paul (@rohanpaul_ai) · 2026-11-27 03

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.

推文配图