SWE-bench
SWE-bench is a benchmark that tests whether AI systems can fix real software bugs and issues taken from GitHub projects, checked by running the projects' own tests.
SWE-bench was introduced in October 2023 by Carlos Jimenez, John Yang and colleagues in the paper SWE-bench: Can Language Models Resolve Real-World GitHub Issues? It contains 2,294 problems drawn from real GitHub issues and the pull requests that fixed them, across 12 popular Python repositories. The model receives the codebase and the issue description and must edit the code to resolve it, often across several files.
Grading is done by running code, not by reading it. Each task comes with tests that failed before the real fix and pass after it, plus tests that passed all along; a model's patch counts only if all of them pass, so the issue is fixed and nothing else broke. When the benchmark launched, the best model tested, Claude 2, resolved 1.96% of the issues.
The original set had flaws. On August 13, 2024 OpenAI, working with the SWE-bench authors, released SWE-bench Verified. Ninety-three software developers reviewed 1,699 samples and found many had tests that were too specific or unrelated to the issue, or issue descriptions too vague to solve; 68.3% of samples were filtered out. The result is a 500-task set. GPT-4o scored 33.2% on it, against 16% on the original. The project's site also lists Lite, Multimodal and Multilingual variants.
SWE-bench draws on real maintenance work rather than short coding puzzles. METR's work on task time horizons found that SWE-bench Verified implied a doubling time of under three months, which METR partly put down to how human completion times were estimated for those tasks. Scores also depend on the scaffold, the software around the model that lets it browse files, run commands and retry: OpenAI pointed to the gap between the worst and best scaffolds for the same model on the leaderboards.
In practice, a high SWE-bench score shows a system can resolve self-contained issues in mature Python projects that have good tests. It says less about writing new systems, working in other languages, or understanding what a business actually needs.
It is a 500-task subset of SWE-bench released on August 13, 2024 by OpenAI with the SWE-bench authors. Professional developers screened the original problems and removed those with unfair tests or unclear descriptions, so that a failure reflects the model rather than a broken task. The model's code change is applied to the repository and the project's tests are run. A task counts as resolved only if the tests that the real fix made pass now pass, and existing tests still pass. The score is the percentage of tasks resolved. Results depend on the scaffold, the tools and workflow wrapped around the model, such as how it searches files, runs tests and retries. Different scaffolds, time limits and numbers of attempts can produce very different scores for the same underlying model.Common questions
What is SWE-bench Verified?
How is SWE-bench scored?
Why do SWE-bench scores vary for the same model?
Search for "SWE-bench Verified", "SWE-bench leaderboard" or "AI coding agent benchmark". The original paper on arXiv, the project's own website and leaderboard, and OpenAI's write-up of the Verified subset are the primary sources. When a company cites a score, check which variant, which scaffold and how many attempts were used.Finding more
Working out what this means for your business?
Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.