SWE-Gym audit: unsolved coding tasks often have tests that reject correct fixes

A preprint audits a popular training set for coding agents and finds many of its hidden tests mislabel answers. Training on the cleaned tasks lifted scores on SWE-bench Verified and SWE-bench Pro by about 2.5 points. Simply dropping unsolved tasks did not.

6 min readIIIOpen sourcePreprint, not peer reviewed
Save
A wooden shape-sorter block on warm paper, its round hole plugged by a deep blue stopper, with the matching round peg lying unusable beside it.AI illustration
Illustration: AI generated

What the study shows

Coding agents are often trained with reinforcement learning, where a model learns from rewards. Each practice task is a real GitHub issue. The agent writes a patch, and hidden tests from the original fix decide whether it earns a reward. The tests are therefore the answer key.

The authors, from AMD and several US and UK universities, audited SWE-Gym, a public collection of such tasks. Two AI model families, Claude and GPT, read every test check against the issue text. A suspected error counted only if running code reproduced it. For a test that rejects correct fixes, an alternative fix had to fail it. For a wrong patch that passes, a small script had to expose the bug.

The authors report that 55% of the tasks they judged had at least one test that rejects correct fixes. These errors cluster in tasks the model never solves. Among tasks a 9-billion-parameter Qwen model never solved, 74% had such a test, against 20% of tasks it sometimes solved. Separately, about a quarter of passing patches were in fact wrong.

They then trained the same Qwen model on 512 original tasks and on 512 audited tasks of matched size and difficulty. The audited set scored 2.4 points higher on held-out SWE-bench Verified tasks and 2.7 points higher on SWE-bench Pro, averaged over three runs each. A third set, which only dropped never-solved tasks, showed no such gain on average.

The authors explain why. Tasks the model never solves give no learning signal, so dropping them changes little. Broken tasks that the model sometimes solves do give signal, and it can point the wrong way. In one pandas task, the test demanded an exact warning sentence the issue never gave. Training then rewarded copying that sentence, not fixing the issue.

The cleaned set, called SWE-Gym-Verified, has 1,087 tasks. It is released with every verdict, its evidence and the audit code. The paper is a preprint and has not been peer reviewed.

Our reading

In our reading, the strongest result is the diagnosis, not the training gain. The link between never-solved tasks and broken tests holds under several stricter definitions and against an independent set of human labels. That makes it hard to dismiss as an artefact of AI judges.

A concrete example of what this means in practice. A team building a coding agent might drop every task its model never solves, assuming they are too hard. This study suggests most of those tasks were broken, but harmless, because they gave no signal anyway. The harmful broken tasks are the partly solved ones, and a pass-rate filter keeps all of them.

The training gain is real but modest and rests on thin ground. It is three runs per set on one 9B model, over 80 training steps. On each benchmark alone, the runs of the cleaned and original sets overlap. Only averaged over both benchmarks does every cleaned run beat every original run.

Free membership

Read the rest of this story

Membership is free. You get every article in full, and can save stories and follow topics.

We send a sign-in link, no password needed. Already a member? Sign in

Readiness assessment

III
Open source
LevelStatusEvidence
I  Lab onlyMetThe work is a research study with controlled experiments on one 9B model, a single task source and a single RL recipe.
II  BenchmarkedMetResults are reported on public benchmarks: 397 held-out SWE-bench Verified tasks and 638 SWE-bench Pro v2 tasks. Clean beats Orig by 2.4 and 2.7 points (three seeds), compared against the base model and two other training sets.
III  Open sourceMetThe paper releases the dataset (Hugging Face), the audit pipeline code, prompts, training configs and per-task verdicts with executed evidence (GitHub). Additions are under the Apache License 2.0. Issue text and repository code keep their original terms.
IV  In productionNot yetNo named organisation reports using SWE-Gym-Verified or the audit pipeline in production training. The paper only reports its own experiments.

What would move it up
Documented use by a named organisation training a coding agent on SWE-Gym-Verified or the audit pipeline would move it to level 4. Independent replication across other base models, larger scales, other task sources and more seeds would make the level 2 evidence stronger.

The study

Yikai Zhang, Mai Xu, Yunbei Zhang et al.. What Makes Good Data for Training Coding Agents? A Systematic Study on SWE-Gym. arXiv, 23 November 2026. Read the paper

Preprint, not peer reviewed · Licence CC BY 4.0 · University of Michigan, Ann Arbor · Tulane University, New Orleans · Georgia Institute of Technology, Atlanta

Notes

  1. Zhang et al., What Makes Good Data for Training Coding Agents? A Systematic Study on SWE-Gym. Preprint, arXiv:2611.30207, 23 November 2026. CC BY 4.0. Source
  2. Code, prompts, training configurations and experiment files. Source
  3. SWE-Gym-Verified dataset (1,087 tasks; Apache License 2.0 for the authors' additions). Source
  4. Authors' blog post with main results and case studies. Source
  5. Exact held-out pass@1, mean over three seeds: base 57.2% (Verified-397) and 53.8% (SWE-bench Pro); Orig 60.2% and 53.5%; Orig+Filter 61.3% and 51.4%; Clean 62.6% and 56.2%; Clean+FP 62.6% and 57.3%.
  6. False negatives: 1,091 of 2,001 judged tasks (55%). In Orig, 74.0% of never-solved versus 19.5% of sometimes-solved tasks are FN-flawed. False positives: 26.1% of 1,854 distinct passing patches on Clean's tasks.

Edited and signed by

Stefan PerdalEditor and publisher142 stories edited

Stefan read the study, set the readiness level and approved this story. An AI system found the paper and wrote the first draft.

How this was made

An AI model read the study and wrote this article in the structure Science Underway uses. An editor reviewed it and approved it for publication. Check the original study before you rely on the details.

More on Code