arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2611.30207cs.CLcs.AIcs.LGcs.SE
收藏

什么造就了训练编码智能体的优质数据?针对SWE-Gym的系统研究

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

AMD(超威半导体公司);University of Michigan(密歇根大学);Tulane University(杜兰大学);Georgia Institute of Technology(佐治亚理工学院);University College London(伦敦大学学院);University of California, Los Angeles(加利福尼亚大学洛杉矶分校);New York University(纽约大学)

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

AI总结:

本文针对SWE-Gym开展系统研究,发现其奖励标签存在大量假阴性、假阳性问题,修复后训练的编码智能体在SWE-bench任务上得分更高,发布了经审计的SWE-Gym-Verified数据集。

摘要:

强化学习(RL)在软件任务上训练编码智能体,这类任务的隐藏测试决定奖励,但任务集合仅将这些测试与参考修复进行比对。本文聚焦奖励标签的正确性,探究什么是优质的训练数据。我们用两类大语言模型(LLM)家族审计SWE-Gym,仅当执行能复现错误时才计入疑似错误。研究发现,未解决的任务常意味着标签错误:9B基础模型从未解决的任务中,74%存在拒绝正确修复的测试(假阴性),而该模型有时解决的任务中这一比例为20%。我们修复或移除这类任务后,剩余的经审计任务能训练出更优的策略。在规模相同、难度匹配的情况下,用这些任务训练的模型,在SWE-bench Verified和SWE-bench Pro的保留任务上得分比用原始任务训练的模型高2.4和2.7个百分点,而仅移除从未解决的任务则无此增益。我们还发现,通过的错误补丁(假阳性)约占所有通过补丁的四分之一,新增的能捕获其中四分之一错误的测试,未显著改变保留任务的得分。通过率仅反映任务是否产生奖励,而非该奖励是否正确,因此必须检查奖励标签。为此,我们发布SWE-Gym-Verified,包含1087个经审计的任务、每个判定的执行证据、我们的训练集以及完整的审计流程。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑