What Makes Good Data for Training Coding Agents? A Systematic Study on SWE-Gym
Yikai Zhang, Mai Xu, Yunbei Zhang, Qirui Jin, Kenan Li, Yuwen Jia, Jinwei Yao, Xiangyu Zhang and 4 others
AMD · University of Michigan · Tulane University · Georgia Institute of Technology · University College London · University of California, Los Angeles
Published November 23, 2026 · on the feed November 24, 2026 · ▲ 19 · arXiv 2611.30207
The abstract
Reinforcement learning (RL) trains coding agents on software tasks whose hidden tests decide the reward, yet task collections check these tests only against the reference fix. We ask what makes a task good training data, focusing on the correctness of its reward labels. We audit SWE-Gym with two LLM families, and a suspected error counts only if execution reproduces it. We find that unsolved often means mislabelled: 74% of the tasks that a 9B base model never solves have a test that rejects correct fixes (a false negative), versus 20% of those it sometimes solves. We repair or remove such tasks, and the audited tasks that remain train better policies. At equal size and matched difficulty, models trained on them score 2.4 and 2.7 points higher on held-out tasks from SWE-bench Verified and SWE-bench Pro than models trained on the original tasks, whereas simply dropping the never-solved tasks shows no such gain. We further find that wrong patches that pass (false positives) make up about a quarter of all passing patches, and that new tests that catch a quarter of them do not change held-out scores detectably. A pass rate shows whether a task yields reward, not whether that reward is right, so the reward labels themselves must be checked. To this end, we release SWE-Gym-Verified with its 1,087 audited tasks, every verdict with its executed evidence, our training sets, and the full audit pipeline.
The Brief
2:35A short podcast summary of the paper. Written and voiced by AI.
Transcript
What Makes Good Data for Training Coding Agents? A Systematic Study on SWE-Gym. By Yikai Zhang and eleven others, from AMD, the University of Michigan, and five other institutions. Published on the twenty-third of November.
Coding agents are trained with reinforcement learning on software tasks where hidden tests decide the reward. Task collections, however, check those tests only against the reference fix. The question the authors ask is what makes a task good training data, and they focus on one property: whether its reward labels are correct. Their central claim is blunt. On SWE-Gym, unsolved often means mislabelled. A task that a model never solves is frequently a task whose test rejects correct fixes. If that is so, then a model that fails such a task is being told it was wrong when it was right, and the signal it trains on is pointing the wrong way. The study sets out to measure how often that happens, and whether correcting it changes what training produces.
To check this, they audit SWE-Gym with two families of language models, and they count a suspected error only if executing the code reproduces it. Among the tasks a nine-billion-parameter base model never solves, seventy-four percent have a test that rejects correct fixes, a false negative. Among the tasks it sometimes solves, the figure is twenty percent. The gap between those two numbers is the core of the claim: never being solved is a strong sign that the label, not the model, is at fault.
Those tasks are then repaired or removed, and the audited tasks that remain train better policies. At equal size and matched difficulty, models trained on them score two point four points higher on held-out tasks from SWE-bench Verified. On held-out tasks from SWE-bench Pro they score two point seven points higher. Both comparisons are against models trained on the original tasks. Simply dropping the never-solved tasks shows no such gain, so the benefit comes from fixing the labels, not from discarding hard tasks.
The errors run in the other direction too. Wrong patches that still pass, the false positives, make up about a quarter of all passing patches. Here the picture is different. New tests that catch a quarter of those false positives do not change held-out scores by any amount the authors could detect. So the measured training benefit is tied to repairing false negatives, and the audit covers SWE-Gym, examined with two model families.
The argument lands on a distinction. A pass rate shows whether a task yields reward. It does not show whether that reward is right, which is why the authors hold that the reward labels themselves must be checked. To support that, they release SWE-Gym-Verified, with its one thousand and eighty-seven audited tasks, every verdict alongside its executed evidence, their training sets, and the full audit pipeline.
More with an account
Listen to every day’s papers
Daily playlists, deep dives, quests for the papers, and quizzes on their key terms.
Join free