Microsoft researchers Aakash Goel, Benjamin Steenhoek and Yu Hu asked why coding assistants produce larger patches than developers. Their method replays the recorded edits, removes one block from the finished patch, and reruns the tests. It measures which code the tests require, not which code a reviewer would keep.
- Count tests separately. On SWE-bench Verified, an issue-fixing benchmark, 61% of extra blocks touched tests and 13% touched documentation. On DeepSWE, which includes larger feature work, 58% were code. Of 1,962 deliberately introduced bugs, the assistants’ new or strengthened tests caught 102 that the task tests missed.
- The developer comparison flipped with a stronger check. The ordinary task tests deemed 88.7% of assistant code blocks needed versus 86.4% for developer patches on SWE-bench Verified. Extra behavior checks credited blocks that matched the developer’s fix. Under that rule, the figures were 92.5% for assistants and 97.0% for developers.
- A green test suite is a weak delete button. Pruning with the assistant’s tests plus existing regression tests found 67.3% of the blocks the stronger check deemed unneeded. Only 89.1% of the pruned patches still passed the original task tests. Use the result to flag changes for review, not to delete them automatically.
Caveat: The study starts with patches that already pass. Its extra behavior checks cover selected inputs and do not replace a maintainer’s judgment about the intended behavior.