Home / Research / Can AI fix real coding bugs?
Can AI fix real coding bugs?
SWE-bench asked language models to fix 2,294 real bugs from GitHub, and graded each fix with the project’s own tests.
What it means for you
SWE-bench sits behind almost every coding-agent claim you will see. When a seller quotes a number to you, ask which set it is from.
The first set, the Verified set of 500, and other sets are not the same. Their numbers do not match up.
Keep the start point in mind. In 2023, the strongest system fixed fewer than 2 in 100 real issues. Gains since then are real. The test is still hard on purpose.
The idea in plain words
SWE-bench took 2,294 real problems from GitHub. They came from 12 well-known Python projects. Each had the real fix a person later made.
The model got the code and the issue text. Its fix was graded by the project’s own tests.
The strongest model in the paper, Claude 2, fixed only 1.96% of the issues.
That low number was the point. A real fix means finding the right files, grasping the code near them, and changing it so it fits. It also means breaking nothing else.
To write a short bit of code from scratch is a far easier job. That is a world apart from fixing a live bug.
Where it shows up today
You can read the full paper on arXiv: SWE-bench: Can Language Models Resolve Real-World GitHub Issues?.
Go deeper
Want to get more from working with AI agents? Co-Intelligence by Ethan Mollick is the plain-English book on working with AI as a thinking partner. See it on Amazon.
As an Amazon Associate, MyLife's Nanny earns from qualifying purchases. The price is the same for you.
More research
Read Testing agents on a real computer or The interface matters as much as the model.
Source: SWE-bench: Can Language Models Resolve Real-World GitHub Issues? Authors: Carlos E. Jimenez, John Yang, Alexander Wettig, and Shunyu Yao. Also: Kexin Pei, Ofir Press, and Karthik Narasimhan. Princeton University and University of Chicago, 2023. Read the paper here: arXiv:2310.06770. These numbers are the ones in the paper when it came out. They are not a current table.
Quick check
Did it stick?
Seven quick questions from the piece above. Answer them all, then put in your email to see your score.
0 of 7 answered
Your score is ready
Drop your email and your score shows up right here.
You’re in — your score is below.
New tools and pages land in your inbox first. Unsubscribe anytime.
The MyLife’s Nanny Newsletter
Be the first to find out about new AI agent tools and pages added to the directory.
You’re in — new tools and pages land in your inbox first.
Unsubscribe anytime. Read our Privacy Policy.