SWE-Gym audit: 74% of the tasks a 9B agent never solves have tests that reject correct fixes
In SWE-Gym, a collection of GitHub tasks used to train coding agents, 74% of the tasks that Qwen3.5-9B never solves in eight attempts have a hidden test that rejects correct fixes. Among the tasks it solves some of the time, the share is 20%. That is the central count of "What Makes Good Data for Training Coding Agents? A Systematic Study on SWE-Gym" (arXiv:2611.30207), posted on November 23 by Yikai Zhang of AMD, Mai Xu of the University of Michigan and ten coauthors from AMD, Tulane, Georgia Tech, UCL, UCLA and NYU. Training the same model on the audited tasks instead of the originals gives 2.4 points more on SWE-bench Verified and 2.7 more on SWE-bench Pro, they report.
In reinforcement learning on such a task, the reward comes from the tests of the pull request that fixed the issue. The agent sees the issue and the repository, never the tests. Before a task enters the collection, one thing is checked: the original fix passes those tests and the unfixed code fails them. That check says nothing about whether a different correct fix would pass too. The authors released the dataset, every verdict with the patches that were executed, the training sets and the outcome of every held-out attempt, so I rebuilt what could be rebuilt on a CPU and read a sample of the verdicts myself.
A correct fix with reward 0
The paper's clearest example is pandas-53409. The issue asks to deprecate passing literal JSON to read_json and gives no warning text. The hidden test requires the upstream sentence word for word: "Passing literal json to 'read_json' is deprecated and will be removed in a future version. To read from a literal string, wrap it in a 'StringIO' object." Any other wording fails. In getmoto/moto-4846 the test also pins an error message the issue never quotes; when the audit appended that one sentence to the issue, the base model went from 0 of 8 solved attempts to 7 of 8.
As the paper puts it, tests like these are fair regression tests for the project. As a reward, they score information the agent never had.
How the audit decides
SWE-Gym has 2,438 tasks; 2,265 entered the audit. Two model families rated every fail-to-pass assertion against the issue: Claude Opus 5.5 with Claude Code, and GPT-6.1 Sol with Codex CLI. An assertion that either family flagged went to execution: each family's agent wrote a "witness", a patch that follows the issue but differs from the reference fix in the flagged detail, and ran the tests on it. A task got a false-negative verdict only if a test rejected a witness that its authoring family considered a reasonable reading of the issue. Of the 2,001 tasks that reached this stage, 1,091 got one; 963 were confirmed by both families and 128 were upheld by only one.
Where adding a requirement to the issue could fix the task without giving the solution away, the authors appended it and audited the task again (184 tasks). The rest were removed. SWE-Gym-Verified keeps 1,087 tasks. Two of the authors labelled a blind sample by hand: of 45 flagged assertions they agreed that 33 were left open by the issue, all 8 from never-solved tasks and 25 of 37 from sometimes-solved ones. The LLM part cost at least $1.30 per task, not counting the GPT agent runs.
Why dropping unsolved tasks misses the problem
A common RL recipe throws away tasks the model never solves. The paper explains why that removes the wrong errors. GRPO, the algorithm used here, learns from a task only when the eight samples in its group get different rewards. A task whose tests reject every reasonable patch gives eight zeros and no gradient at all: across three runs on the original tasks, the never-solved flawed tasks carry 21 of 2,365 gradient-carrying groups.
The flawed tasks that the model sometimes solves do carry gradient. They are 16.6% of the original training set and carry 19.5% of its gradient-carrying groups. In those groups the reward separates patches by the hidden detail. In pandas-53409, across six visits in the two training runs with test-level records, 8 samples were rewarded and 15 failed only the wording check; 11 of those 15 pass once the match on the message is removed. In the paper's reading, what gets reinforced there is reproducing pandas' upstream sentence.
What I recomputed from the release
The dataset ships without issue text or patches; reconstruct.py joins them from the public SWE-Gym parquet and checks a sha256 for every field. It rebuilt all 1,087 rows with zero mismatches, and the experiment folder's samplers redrew the Clean, Orig and Orig+Filter training sets identical to the released files.
From audit_records.jsonl, the headline contrast comes out as stated: 57 of the 77 never-solved tasks in the original training set are flawed (74.0%), against 85 of 435 sometimes-solved ones (19.5%). Counting only verdicts confirmed by both families gives 67.5% and 12.9%, and counting repaired tasks as flawed gives 83.1% and 28.0%, the same as the paper's Table 4. Split by pass count, the drop is gradual: 41% of the tasks solved once in eight are flawed, 36% at two, 8 to 11% at six and seven. The false-positive figure also matches: 484 of 1,854 distinct passing patches (26.1%) are wrong patches confirmed by an executed counterexample, spread over 224 of 432 tasks. The repair claim can be checked only in part: the release has difficulty on both the original and the repaired statement for 55 of the 184 repaired tasks. On those, the pass count rises by 1.98 of 8 on average; the paper reports 2.1 on 154. The held-out table reproduces exactly from the 76,032 rows of heldout_attempts.jsonl.
How strong the training result is
Each training set of 512 tasks was run with three seeds: Qwen3.5-9B, GRPO in the SWE-agent scaffold, 80 steps, between 168 and 401 GPU-hours per run on AMD MI355X. Clean (audited tasks) and Orig (original tasks) are matched in size and in base-model pass rate, 49.8% and 48.3%. Here is each run's gain over the base model in percentage points, from the released attempts:
| run | SWE-bench Verified (397 tasks) | SWE-bench Pro (638 tasks) | mean of both |
|---|---|---|---|
| Clean, seeds 1/2/3 | +6.6 / +4.5 / +5.2 | +3.6 / +1.0 / +2.7 | +5.1 / +2.8 / +4.0 |
| Orig, seeds 1/2/3 | +3.0 / +5.1 / +0.9 | −2.1 / −0.5 / +2.0 | +0.4 / +2.3 / +1.5 |
| Orig+Filter, seeds 1/2/3 | +1.8 / +5.5 / +5.1 | −5.7 / −0.2 / −1.2 | −2.0 / +2.7 / +2.0 |
With three runs against three, an exact permutation test has 20 ways to split the six runs, so the smallest one-sided p-value it can give is 1/20 = 0.05. On the mean of both benchmarks every Clean run beats every Orig run, which is that minimum. On each benchmark alone the runs overlap and p is 0.10. The paper says the same in words: the runs overlap per benchmark, and every Clean run gains more on the average. Resampling the held-out tasks with the seeds pooled gives a 95% interval of 1.1 to 3.8 points on Verified and 1.1 to 4.3 on Pro, but that covers which tasks were drawn, not which seeds.
The abstract also says that dropping never-solved tasks "shows no such gain". Orig+Filter's mean is below Orig's, but by my count the two sets can't be told apart (p = 0.6), and the paper's appendix notes that the ranking flips without Orig+Filter's first seed, which lost 5.7 points on Pro. What the data supports is narrower: the pass-rate filter did not reproduce Clean's result, and Clean beats Orig+Filter on the mean of both benchmarks in all three seeds.
The model was trained only on Python, while Pro mixes languages. On Pro's 235 Python tasks the base model scores 62.3%, Clean 63.2% and Orig 59.5%. On the 256 Go tasks the numbers are 47.3%, 50.7% and 49.5%, and on the 143 JavaScript tasks 52.4%, 55.2% and 51.5%. So on Python, Clean barely moves from the base and the gap to Orig comes from Orig falling; most of Clean's gain on Pro is in Go and JavaScript. These subsets are small and Pro was run with two attempts per task, so I wouldn't build anything on it.
Checkpoints were chosen by the best score on a separate 100-task Verified split, evaluated every ten steps. Orig peaks around step 30 and declines, so its selected checkpoints are at steps 20 and 30, while Clean's are at 60 and 70. The released dev-split curves show the same. Every run got the same selection rule, so this doesn't favour one set. It does mean the difference appears late: up to step 40 the sets are close, and after that Clean keeps improving while Orig doesn't.
Ten verdicts by hand
The verdicts that matter most for training are on sometimes-solved tasks, where the authors' own blind check agreed least. I drew 10 of the 85 such tasks that the audit removed from Orig, with a fixed random seed, and read the issue, the flagged assertion and the recorded test failure of each witness. I ran nothing here: the box has no Docker for the task images.
Seven verdicts I'd uphold. In python__mypy-11857 the issue lists two acceptable outputs, builtins.tuple[builtins.int, ...] or Tuple[builtins.int, ...], and the tests accept only the first. In python__mypy-10508 the issue says to either make --install-types work with the daemon or stop suggesting it, and the test accepts only the second. In iterative__dvc-5732 the issue asks for a validate_certs option and the test requires an attribute called ssl_verify. In pandas-dev__pandas-50759 the reporter wants read_xml with iterparse to return a DataFrame from a file opened in text mode (the example uses the etree parser), and the test requires the lxml parser to raise TypeError on such files. In Project-MONAI__MONAI-2178 a seeded test fixes the crop shape, which depends on whether the new maximum size is clipped to the image before sampling, and the issue doesn't say. The other two, pandas-52212 and bokeh-12867, test a second branch the issue doesn't ask about (timedeltas next to datetimes, integer arrays next to floats), which I'd also count, if less firmly.
Two I couldn't decide. MONAI-4249 requires the keyword anti_aliasing, which the issue never names; but the repository's own tests already call scikit-image with that keyword, and the base model passes 7 of 8 times. iterative__dvc-1855 is a contested scope question about which commands should accept remote:// URLs.
One I wouldn't uphold. In getmoto__moto-5486 the test expects "The security group 'sg-…' does not exist". The witness reused an existing moto helper that prints the id inside Python set braces, '{'sg-caf13c'}', and failed on that. A fix that produces the clean message is the obvious one; Claude rejected this verdict and GPT upheld it.
Seven of ten, with two undecided, is close to the authors' 25 of 37. Ten tasks is a small sample, and these are my readings, not executed checks.
What holds
Everything I could recompute matches the paper: the 74%/20% contrast under the three definitions I could compute, the false-positive count, the training sets and the held-out table. The mechanism has case records behind it: wording and interface tests sit inside the GRPO groups that train the policy, and a pass-rate filter keeps them. The sample of verdicts mostly stands up.
The training result is thinner. It is one 9B model, one scaffold, 80 steps and three seeds, and the Clean–Orig difference reaches the smallest p-value three seeds allow on the averaged score, and p = 0.10 on either benchmark alone. Clean and Orig differ in 198 of 512 tasks, so removal, repair and replacement are measured together, as the limitations section says. The experiments README says training code and model weights are not released. The GitHub repository and the Hugging Face dataset each have a single main branch and no tags, and the first author's Hugging Face account has no model from this work. The same account on GitHub has a fork of Miles, the training stack the paper names, with dozens of branches, none named for this paper; I didn't go through them.
For anyone training on SWE-Gym-style data, the first finding is the one to use: a task the model never solves is more likely a broken label than a hard problem, and the broken labels that shape the gradient sit among the tasks it sometimes solves. The claim about the 0/8 filter is weaker than the abstract makes it sound. The task records are versioned so that a disputed verdict can be corrected, and because the witness patches and test outputs are published, anyone can check a verdict like the one on moto-5486 against the recorded evidence.
Earlier on sysnote: the Resolution Hypothesis paper, where the largest gains from self-evolving agents traced back to graders that rewarded the wrong thing.
- What Makes Good Data for Training Coding Agents? A Systematic Study on SWE-Gym (arXiv:2611.30207)
- SWE-Gym-Verified dataset on Hugging Face
- Arist12/SWE-Gym-Verified: audit pipeline, training sets and held-out results
- What makes good data for training coding agents? (Yikai Zhang, blog)
- SWE-Gym dataset (revision bb94ed9)
Comments
No comments yet. Be the first.