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 等 12 人
AMD
在最新榜 #297 本站收录于 2026-11-25
一句话要点
强化学习(RL)用软件任务训练编码智能体,并由隐藏测试决定奖励,但任务集只对照参考修复来检查这些测试。本文关注何种任务才是好的训练数据,重点考察奖励标签是否正确。作者用两个大语言模型家族审计 SWE-Gym,且只有在执行复现后才将可疑错误计为错误。结果发现,未解出常常意味着标注有误:在一个 90 亿参数的基座模型始终无法解决的任务中,74% 含有拒绝正确修复的测试(假阴性);而在它有时能够解决的任务中,这一比例为 20%。对这类任务加以修复或剔除后,保留下来的经审计任务能训练出更好的策略。在规模相同、难度匹配的条件下,用这些任务训练的模型,在 SWE-bench Verified 和 SWE-bench Pro 的留出任务上,分别比用原始任务训练的模型高出 2.4 和 2.7 分;而仅仅去掉始终未解出的任务,则看不到这样的提升。作者还发现,能够通过测试的错误补丁(假阳性)约占全部通过补丁的四分之一;新增测试即使再抓住其中四分之一,对留出集分数也没有可察觉的影响。通过率只能说明任务能否给出奖励,而不能说明该奖励是否正确,因此必须直接检查奖励标签。为此,作者发布了 SWE-Gym-Verified:包含 1,087 个经审计任务、每条判定及其执行证据、训练集合以及完整审计流程。
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.
要点
- 编码代理训练中,奖励标签的正确性直接影响模型性能,许多未被解决的任务实际是因测试误判导致的错误标记。
- 通过执行验证,发现74%从未被求解的任务存在正确修复被拒的假阴性问题,远高于部分可求解任务的比例。
- 在等规模且难度匹配下,基于审计后数据训练的模型在SWE-bench Verified和Pro上分别提升2.4和2.7个点,优于简单剔除未求解任务的策略。
- 错误补丁中约四分之一能通过测试(假阳性),新增测试无法显著提升泛化性能,表明奖励标签需独立验证而非仅依赖通过率。
English overview
A systematic audit of SWE-Gym reveals widespread inaccuracies in reward labels, particularly false negatives in tasks marked as unsolved. Tasks are validated via execution to detect and correct erroneous verdicts. Models trained on verified data outperform those on original data, with significant gains on held-out benchmarks. The study emphasizes that pass rates alone are insufficient for evaluating reward correctness and releases a curated dataset with execution evidence and audit logs.
只根据 arXiv 官方摘要,由开源模型整理,经数字/专名自动核对(必须在摘要中出现),以论文原文为准。
阅读 arXiv 原文 PDF Hugging Face 讨论 代码仓库 项目页
相关论文
数据说明
元数据来自 arXiv API(已核实);点赞来自 Hugging Face 每日论文;引用来自 Semantic Scholar。最近刷新 2026-11-30。
要点由本站根据摘要自写,不转载摘要原文,请阅读原文。