arXiv 2611.30207 · cs.CL · 2026-11-23
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 more
AMD
In latest · #297 Added on 2026-11-25
One-line takeaway
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. This paper asks what makes a task good training data, focusing on the correctness of its reward labels. The authors audit SWE-Gym with two LLM families, and a suspected error counts only if execution reproduces it. They 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. They 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. They 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, they release SWE-Gym-Verified with its 1,087 audited tasks, every verdict with its executed evidence, their training sets, and the full audit pipeline.
强化学习(RL)用软件任务训练编码智能体,并由隐藏测试决定奖励,但任务集只对照参考修复来检查这些测试。本文关注何种任务才是好的训练数据,重点考察奖励标签是否正确。作者用两个大语言模型家族审计 SWE-Gym,且只有在执行复现后才将可疑错误计为错误。结果发现,未解出常常意味着标注有误:在一个 90 亿参数的基座模型始终无法解决的任务中,74% 含有拒绝正确修复的测试(假阴性);而在它有时能够解决的任务中,这一比例为 20%。对这类任务加以修复或剔除后,保留下来的经审计任务能训练出更好的策略。在规模相同、难度匹配的条件下,用这些任务训练的模型,在 SWE-bench Verified 和 SWE-bench Pro 的留出任务上,分别比用原始任务训练的模型高出 2.4 和 2.7 分;而仅仅去掉始终未解出的任务,则看不到这样的提升。作者还发现,能够通过测试的错误补丁(假阳性)约占全部通过补丁的四分之一;新增测试即使再抓住其中四分之一,对留出集分数也没有可察觉的影响。通过率只能说明任务能否给出奖励,而不能说明该奖励是否正确,因此必须直接检查奖励标签。为此,作者发布了 SWE-Gym-Verified:包含 1,087 个经审计任务、每条判定及其执行证据、训练集合以及完整审计流程。
Read on arXiv PDF Hugging Face discussion Code Project page
Topics & disciplines
Related papers
- Same topic · CodeMidas: Scaling Agentic Coding RL Environments from Code Itself 2026-09-18
- Same topic · One to More, More to One: Category-Aware Iterative Expert Training for Software Engineering Agents 2026-09-20
- Same period · Motion Mamba 2.0: Autoregressive Diffusion Mamba for Long-Horizon Humanoid Control 2026-11-23
About this data
Metadata from the arXiv API (verified); upvotes from Hugging Face Daily Papers; citations from Semantic Scholar. Last refreshed 2026-11-30.
The takeaway is written by AIMap from the abstract; the abstract itself is not reproduced — read the original.