# 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.

- Category: Code
- Readiness level: III (Open source) on Science Underway's four-step scale, as proposed
- Published: 2026-11-25
- Editor: Stefan Perdal
- URL: https://scienceunderway.com/articles/swe-gym-audit-unsolved-coding-tasks-often-have-tests-that-reject-correct-fixes

## The study

What Makes Good Data for Training Coding Agents? A Systematic Study on SWE-Gym (preprint, not peer reviewed). arXiv 2611.30207. https://arxiv.org/abs/2611.30207

## At a glance

- What it shows: In a widely used set of practice tasks for AI coding agents, many hidden tests are wrong. Some fail correct fixes and others pass wrong ones. Models trained on a checked and cleaned version did a little better on two independent coding tests.
- What it does not show: It does not show that the gain holds for other or larger models, longer training or other task sources. It also cannot say which part of the clean-up caused the gain.
- Why it matters: Teams that train coding agents often treat a task nobody solves as simply hard. This study suggests such tasks are often broken, and that the common fix of dropping them misses the errors that actually shape the model.

## 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.

The rest of the article (what it means, limits, what to watch) is free for members: https://scienceunderway.com/articles/swe-gym-audit-unsolved-coding-tasks-often-have-tests-that-reject-correct-fixes

## 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.

---
Source: Science Underway, https://scienceunderway.com/. Please link to the article when you cite it.
