Skip to content

AI Glossary · Metrics

What is SWE-bench?

SWE-bench

SWE-bench is a benchmark that tests whether an AI system can fix real software bugs by giving it a GitHub issue and the project's code and checking whether its patch makes the project's tests pass.

Also known as: SWE bench

· Chain of Thought

AI Evaluation & ReliabilityAI Coding

  • 1 explainer
  • 1 episode
  • 1 guest clip
  • 3 sources

Most early coding benchmarks asked a model to write a short function from a description. SWE-bench asks for something closer to a developer’s daily work. Each task starts from a real GitHub issue in a popular open-source Python project, such as a bug report, plus the codebase as it was before the fix. The system has to produce a patch. The benchmark then runs the tests that the project’s real fix made pass; if the AI’s patch passes them without breaking others, the task counts as resolved. The score is the percentage of tasks resolved.

That design made SWE-bench the standard yardstick for AI agents that write code, because solving a task usually means reading several files, finding the cause and editing code in context. Variants followed: SWE-bench Lite is a smaller, cheaper subset; SWE-bench Verified, released in August 2024, is a human-filtered subset of 500 problems that engineers confirmed were solvable; Multimodal and Multilingual versions extend it to visual bugs and other programming languages.

Scores need context. Results depend heavily on the scaffolding around the model, the tools and loop that let it search and run code, so the leaderboard ranks systems, not bare models. The tasks come from public repositories that models may have seen during training, the benchmark contamination problem. And passing a project’s tests is not the same as writing code a maintainer would merge. Like any AI benchmark, it is a starting point for choosing a coding tool, not a substitute for testing on your own codebase.

In episode 72 at 47:02, AMD’s Anush Elangovan says a new model version “may have increased the SWE Bench scores,” but that he expects the bigger change to come from applying today’s capability across industries. That is his forecast. Svix and Walrus Memory are the season’s presenting sponsors.

Hear it from the guest

“It may have increased the SWE Bench scores”
Watch on YouTube

Quotes lightly edited to remove filler words.

Sources

Go deeper

From the conversation