arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2412.21139cs.SEcs.CL
收藏

使用 SWE-Gym 训练软件工程智能体与验证器

Training Software Engineering Agents and Verifiers with SWE-Gym

UC Berkeley(加州大学伯克利分校);UIUC(伊利诺伊大学香槟分校);CMU(卡内基梅隆大学);Apple(苹果公司)

Jiayi Pan, Xingyao Wang, Graham Neubig, Navdeep Jaitly, Heng Ji, Alane Suhr, Yizhe Zhang

AI总结:

该研究推出包含2,438个真实Python任务的SWE-Gym训练环境,用于微调SWE智能体并训练基于轨迹的验证器,在SWE-Bench Verified与Lite上取得开放权重模型最先进结果。

摘要:

我们提出了 SWE-Gym,这是首个用于训练真实世界软件工程(SWE)智能体的环境。SWE-Gym 包含 2,438 个真实世界 Python 任务实例,每个实例都由一个带有可执行运行时环境的代码库、单元测试以及以自然语言描述的任务组成。我们使用 SWE-Gym 训练基于语言模型的 SWE 智能体,在广泛使用的 SWE-Bench Verified 和 Lite 测试集上,解决率最高实现了 19 个百分点的绝对提升。我们还通过在从 SWE-Gym 采样的智能体轨迹上训练验证器,对推理时扩展进行了实验。当与我们经过微调的 SWE 智能体结合时,我们在 SWE-Bench Verified 和 Lite 上分别取得了 32.0% 和 26.0% 的成绩,反映出开放权重 SWE 智能体的全新最先进水平。为促进进一步研究,我们公开发布了 SWE-Gym、模型和智能体轨迹。

英文摘要:

We present SWE-Gym, the first environment for training real-world software engineering (SWE) agents. SWE-Gym contains 2,438 real-world Python task instances, each comprising a codebase with an executable runtime environment, unit tests, and a task specified in natural language. We use SWE-Gym to train language model based SWE agents, achieving up to 19% absolute gains in resolve rate on the popular SWE-Bench Verified and Lite test sets. We also experiment with inference-time scaling through verifiers trained on agent trajectories sampled from SWE-Gym. When combined with our fine-tuned SWE agents, we achieve 32.0% and 26.0% on SWE-Bench Verified and Lite, respectively, reflecting a new state-of-the-art for open-weight SWE agents. To facilitate further research, we publicly release SWE-Gym, models, and agent trajectories.

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

↑