Hot AI News

SWE-bench Verified: How AI coding models are graded on real software bugs

SWE-bench Verified gives an AI model a real software bug and checks whether its fix passes the project's tests. Here is how it works, where it came from and where its scores mislead.

SWE-bench Verified: How AI coding models are graded on real software bugs
Photo illustration: Aiholics

SWE-bench Verified is a test for AI coding models. Each task is a real bug report or feature request from an open-source Python project, and the model has to change the code so the problem goes away. A human-checked set of 500 such tasks is now one of the most quoted scores in model launches.

One bug report, one pass or fail

Imagine a maintainer of a popular Python library who reads this issue: “Sorting a list of dates crashes when two entries are equal.” A developer opens the project, finds the faulty function, edits it and submits a fix. The project’s automatic tests then confirm whether the crash is gone and nothing else broke.

SWE-bench does the same with an AI model in the developer’s seat. The model gets the project’s code and the text of the issue. It must produce a change to the code. The change is then run against the project’s own tests, and the task counts as solved only if they pass.

Advertisements

How a task is built and scored

Two angled monitors show an abstract software patch workflow beside a grid of amber and teal test results in a dimly lit workspace.
Photo illustration: Aiholics

The tasks are not invented. The benchmark’s authors took resolved GitHub issues, together with the pull requests (the proposed code changes) that fixed them, from 12 popular open-source Python repositories. The original paper describes 2,294 such problems.

The scoring is mechanical, which is the benchmark’s main appeal. No person reads the model’s answer. Tests that failed before the human fix and pass after it decide whether the model’s change works. The headline number is the share of tasks solved, so 79.2% means roughly four tasks in five.

A model usually does not work alone. It runs inside a scaffold, a program that lets it browse files, run commands and retry. Scores therefore reflect the model and its setup together.

Where it came from: From 2023 paper to 500 checked tasks

SWE-bench was introduced in a 2023 paper by Carlos Jimenez, John Yang and colleagues at Princeton and other institutions (arXiv 2310.06770), later published at ICLR 2024. Results at the time were low. The authors reported that Claude 2 solved 4.8% of instances and GPT-4 solved 1.7%, even when given an oracle retriever that pointed to the right files.

Problems appeared as models improved. Some tasks had vague issue text, or tests that rejected valid fixes. A model could do the right thing and still be marked wrong.

In August 2024, OpenAI worked with the SWE-bench authors on a cleaner subset. According to OpenAI, 93 software developers experienced in Python screened 1,699 random samples from the test set, checking that the issue was clearly described and the tests were fair. The 500 samples that passed became SWE-bench Verified. OpenAI said it supersedes the original test set and the smaller SWE-bench Lite.

Who reports it today, including Inkling 2 Mini

Most major labs now quote SWE-bench Verified when they launch a coding-capable model. It is a standard row in comparison tables because it is easy to repeat and the numbers sit on a familiar scale.

Our report on Inkling 2 Mini is an example. Thinking Machines Lab reports 79.2% on SWE-bench Verified in the “bash only” setting for that small open-weight model. That label means the model works only through a command-line shell, with no extra tools. The figure comes from the company’s own post and, as we noted there, has not been independently verified.

Outside evaluators such as Epoch AI also run the benchmark. Epoch states that it uses 484 of the 500 samples, the ones that validate on its own infrastructure. Even the same benchmark name can mean slightly different test sets.

Advertisements

What a score does not tell you

The benchmark has real limits, and its maintainers and others acknowledge several of them.

  • Some tasks remain flawed. Epoch AI says some samples may stay ambiguous and cites an earlier estimated error rate of 5 to 10%. A perfect score may not be reachable.
  • Only one language and a narrow set of projects. All tasks are Python, drawn from 12 repositories. Skill on a Java service or a web front end is not measured.
  • Setup changes the result. Prompts, tools, retry budgets and time limits differ between reports. A “bash only” score and a score from a heavily engineered scaffold are not directly comparable.
  • Tests are a proxy for quality. Passing tests does not show the change is readable, safe or something a maintainer would merge.
  • The tasks are public. The issues and their fixes sit on the open internet, so a model may have seen them during training. Labs and researchers have raised this contamination concern about public benchmarks in general.

Difficulty varies too. OpenAI’s split puts 196 tasks in an easy group of fixes under 15 minutes for a human, and 45 in a hard group needing over an hour. An average hides which kind of task a model actually solves.

What to watch as scores near the ceiling

When many models land in the high 70s or above, small gaps say little. A one-point lead can come from a prompt change or a few ambiguous tasks. In the Inkling 2 Mini comparison, the company’s own table shows its model ahead on some coding tests and behind on others, such as Terminal Bench. That pattern is typical.

Newer tests try to fix the weak spots. Some use fresher tasks to limit contamination, some cover more languages, and some run longer jobs in a terminal or grade whether a change is mergeable rather than only test-passing. Expect launch posts to lean on several of these at once.

For readers comparing models, a few habits help. Check the setup behind the number, whether it is bash only or a full scaffold. Look for independent runs, and compare models on the same version of the test. Treat SWE-bench Verified as one useful signal of bug-fixing ability, not a verdict on whether a model can replace a developer.

Sign Up for the Daily AI Pulse

One email a day. All the stories that matter.

Daniel ReedAI Research, Safety & Ethics Analyst

Daniel Reed currently works as an AI Research, Safety & Ethics Analyst at Aiholics, writing about how changes in artificial intelligence are affecting and will affect scholarship,…

Leave a Reply

Your email address will not be published. Required fields are marked *

You may also like