An audit by 93 Python developers found that 68.3% of sampled tasks in the original SWE-bench benchmark had underspecified issue descriptions, overly narrow unit tests, or environment flaws that made valid fixes fail. Removing those broken tasks to create the 500-problem SWE-bench Verified subset more than doubled GPT-4o’s score with the Agentless scaffold, jumping from 16% on the full benchmark to 33.2%.
- 2,294 Python issues from 12 open-source repositories (scraped from roughly 90,000 pull requests) form the original SWE-bench test set, averaging 3,010 files and 438K lines per codebase.
- 1.96% resolved was the top baseline score in the original ICLR 2024 paper (Claude 2 with BM25 retrieval), rising only to 4.80% when given oracle file paths.
- 61.1% flagged for unfair tests and 38.3% for underspecified issues when OpenAI and the SWE-bench authors triple-annotated 1,699 random SWE-bench tasks.
- 500 human-verified tasks make up SWE-bench Verified, retaining under 10% of issues rated over 1 hour (45 tasks) alongside 196 easy under-15-minute fixes.
How SWE-bench grades patches
Carlos Jimenez, John Yang, and colleagues at Princeton and UChicago built SWE-bench to move code evaluation past isolated functions like HumanEval. Each task starts from a pre-fix commit of one of 12 PyPI packages (led by django with 850 tasks, sympy with 386, and scikit-learn with 229) paired with its original GitHub issue text averaging 195.1 words.
To pass, a generated patch must apply cleanly and pass two hidden test groups drawn from the merged pull request: FAIL_TO_PASS tests (9.1 on average) that verify the reported bug is fixed, and PASS_TO_PASS tests (median 51, mean 111.7) that catch regressions in existing behavior. Gold patches average 32.8 modified lines across 1.7 files and 3.0 functions, though models in the 2024 paper produced edits under half that length and rarely touched more than one file.
Even when given BM25-retrieved files, early models rarely localized or formatted edits correctly. Claude 2 resolved 1.97% on full SWE-bench (3.00% on the 300-task SWE-bench Lite subset), GPT-4-turbo reached 1.31%, and fine-tuned SWE-Llama 13b hit 0.70% (later Claude 3 Opus reached 3.79%). Collapsing oracle files down to within 15 lines of the edited hunks lifted Claude 3 Opus to 9.39% and GPT-4 to 3.40%, confirming that context localization was a primary bottleneck.
Why human screening changed the yardstick
Automatic PR scraping guarantees that reference code passes its own tests, not that the issue text specifies those tests fairly. In OpenAI’s audit, 93 engineers who passed a 50-sample calibration screen rated 1,699 tasks on whether the issue was underspecified and whether hidden FAIL_TO_PASS tests rejected valid fixes. Taking the strictest label across three independent reviewers filtered out 68.3% of tasks.
The failure mode is concrete. In scikit-learn__scikit-learn-14520, the issue simply asks whether an unused copy=False parameter in TfidfVectorizer is a bug. Yet the hidden PR test uses pytest.warns to match an exact DeprecationWarning string ("'copy' param is unused and has been deprecated since version 0.22...") that contributors only agreed on during pull-request review, information the evaluated agent never sees.
Verified pairs those 500 clean tasks with a containerized Docker harness, keeping every available multi-hour problem before sampling the rest. Crucially, OpenAI checked scores stratified by difficulty bucket and found pass rates rose inside individual buckets too, proving Verified removed impossible false negatives rather than merely skewing easier like SWE-bench Lite.
Caveats and builder takeaway
- Strict filtering trades coverage for confidence: Discarding any task flagged at severity 2 or above by even one of three annotators drops borderline real-world tickets, leaving under 10% of Verified tasks rated above 1 hour of human work.
- Public GitHub repos risk memorization: Although Jimenez et al. found stable scores across 2018 through 2023 issues on early models, OpenAI warns that pretraining crawls of popular MIT/BSD Python repos weaken static benchmarks over time, motivating copyleft and private benchmarks like SWE-bench Pro and dated splits like LiveCodeBench.
- Scaffolds move numbers as much as weights: OpenAI notes that GPT-4 on SWE-bench Lite jumped from 2.7% with early RAG to 28.3% with CodeR, and single-seed runs vary.
Treat SWE-bench Verified as a clean sanity check for Python bug-fixing harnesses, not a measure of open-ended engineering. As OpenAI observed when pointing toward AI-assisted auditing like CriticGPT, benchmark reliability requires auditing the grading tests themselves alongside multi-commit maintenance checks.

