arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2504.21798cs.SEcs.AIcs.CL
收藏

SWE-smith:为软件工程智能体扩展数据规模

SWE-smith: Scaling Data for Software Engineering Agents

Stanford University(斯坦福大学);Princeton University(普林斯顿大学);Alibaba Qwen(阿里巴巴文言)

John Yang, Kilian Lieret, Carlos E. Jimenez, Alexander Wettig, Kabir Khandpur, Yanzhe Zhang, Binyuan Hui, Ofir Press, Ludwig Schmidt, Diyi Yang

AI总结:

提出SWE-smith流水线,通过自动构建执行环境并合成任务实例,生成了5万个实例的大规模数据集,训练的SWE-agent-LM-32B在SWE-bench Verified上达到40.2%的Pass@1解决率,刷新开源模型纪录。

摘要:

尽管用于软件工程的语言模型(LMs)近期取得了进展,但收集训练数据仍然是一个重大痛点。现有数据集规模较小,最多包含来自11个或更少GitHub代码库的数千个训练实例。整理此类数据集的流程通常很复杂,需要数百小时的人工劳动;配套的执行环境也占用数TB的存储空间,严重限制了其可扩展性和可用性。为了解决这一痛点,我们引入了SWE-smith,一种用于大规模生成软件工程训练数据的新颖流水线。给定任何Python代码库,SWE-smith会构建相应的执行环境,然后自动合成数百到数千个破坏代码库中现有测试的任务实例。使用SWE-smith,我们创建了一个包含来自128个GitHub代码库的5万(50k)个实例的数据集,比以往所有工作大一个数量级。我们训练了SWE-agent-LM-32B,在SWE-bench Verified基准上实现了40.2%的Pass@1解决率,在开源模型中达到最先进水平。我们开源了SWE-smith(收集流程、任务实例、轨迹、模型),以降低自动化软件工程LM系统研究的入门门槛。所有资源可在https://swesmith.com获取。

英文摘要:

Despite recent progress in Language Models (LMs) for software engineering, collecting training data remains a significant pain point. Existing datasets are small, with at most 1,000s of training instances from 11 or fewer GitHub repositories. The procedures to curate such datasets are often complex, necessitating hundreds of hours of human labor; companion execution environments also take up several terabytes of storage, severely limiting their scalability and usability. To address this pain point, we introduce SWE-smith, a novel pipeline for generating software engineering training data at scale. Given any Python codebase, SWE-smith constructs a corresponding execution environment, then automatically synthesizes 100s to 1,000s of task instances that break existing test(s) in the codebase. Using SWE-smith, we create a dataset of 50k instances sourced from 128 GitHub repositories, an order of magnitude larger than all previous works. We train SWE-agent-LM-32B, achieving 40.2% Pass@1 resolve rate on the SWE-bench Verified benchmark, state of the art among open source models. We open source SWE-smith (collection procedure, task instances, trajectories, models) to lower the barrier of entry for research in LM systems for automated software engineering. All assets available at https://swesmith.com.

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

↑