NTH

What Makes Good Data for Training Coding Agents? A Systematic Study on SWE-Gym

AuthorsYikai Zhang, Mai Xu, Yunbei Zhang, Qirui Jin, Kenan Li, Yuwen Jia, Jinwei Yao, Xiangyu Zhang, Jielun Tan, Jin Pan, Zijian Jin, Xiao Sun

AffiliationsAMD · University of Michigan · Tulane University · Georgia Institute of Technology · University College London · University of California, Los Angeles · New York University

November 26, 2026 2 min read
Watch on YouTube
The one-line take

A systematic audit finds that many coding-agent training tasks have faulty tests, and repairing them improves held-out performance.

Key results

1,087
SWE-Gym-Verified tasks

Number of tasks in the released execution-audited dataset.

74%
False-negative rate, never-solved tasks

Share of never-solved original tasks with tests that rejected correct fixes.

20%
False-negative rate, sometimes-solved tasks

Share of sometimes-solved original tasks with tests that rejected correct fixes.

26.1%
Confirmed false-positive share

Share of distinct patches passing on audited tasks that were confirmed wrong.

2.4
Gain on SWE-bench Verified

Percentage-point improvement from audited-data training over original-data training.

2.7
Gain on SWE-bench Pro

Percentage-point improvement from audited-data training over original-data training.

What the paper found

This study asks whether the hidden tests used to train coding agents reward correct fixes. Auditing SWE-Gym, the researchers used Anthropic’s Claude Opus 5.5 and OpenAI’s GPT-6.1 Sol to flag suspicious test assertions and passing patches, then required executable witness fixes or counterexamples before confirming errors. They released SWE-Gym-Verified, containing 1,087 audited tasks. False negatives—tests rejecting valid fixes—were especially concentrated among tasks a Qwen3.5-9B base model never solved: 74% of those tasks were flawed, compared with 20% of tasks it sometimes solved. False positives were also widespread: 26.1% of distinct patches that passed on audited tasks were confirmed wrong. In controlled GRPO training with SWE-agent, models trained on audited tasks outperformed models trained on the original tasks by 2.4 percentage points on held-out SWE-bench Verified and 2.7 points on SWE-bench Pro; simply filtering out tasks the base model never solved did not produce a comparable gain. Adding counterexample-based tests to catch false positives lowered training reward but did not detectably improve held-out scores. The central finding is that pass rates and training rewards do not establish whether reward labels are correct: coding-agent training data needs execution-backed test audits.

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

Read the original paper

More in Code Generation

Browse all 55 papers →
02Code Generation

Evaluation-Free Recursive Self-Improvement for Coding Agents

Zhe Ren, Guowei Rong, Yimeng Chen, Nanbo Li, Piotr Piękos, Mateusz Ostaszewski, Dandan Guo, Jürgen Schmidhuber

ELITE helps coding agents improve by combining promising implementation ideas without repeatedly testing candidates on downstream coding tasks.

Read analysis
03Code Generation

CompoundingKernel: Self-Improving from Zero to First

Qian Qu, Hongyang Wang, Wenbo Chen, Yichuan Li, Jingguo Liu, Xian Li, Xuan Wang, Ruochen Wen, Leo Fan, Yiming Yan, Zheshen Wang, Benoit Dumoulin

CompoundingKernel uses parallel agents and an archive of successful attempts to discover fast, correct GPU kernels.

Read analysis