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

BugPilot:面向软件工程技能高效学习的复杂Bug生成方法

BugPilot: Complex Bug Generation for Efficient Learning of SWE Skills

Cornell University(康奈尔大学);University of California San Diego(加州大学圣地亚哥分校);University of North Carolina at Chapel Hill(北卡罗来纳大学教堂山分校);Microsoft Research(微软研究院)

Atharv Sonwane, Isadora White, Hyunji Lee, Matheus Pereira, Lucas Caccia, Minseon Kim, Zhengyan Shi, Chinmay Singh, Alessandro Sordoni, Marc-Alexandre Côté, Xingdi Yuan

AI总结:

本研究提出BugPilot方法,通过让SWE智能体引入功能时意外产生Bug的方式生成更贴近真实开发模式的高质量Bug,可提升监督微调效率,结合现有数据训练出了在SWE-bench Verified上达SOTA的FrogBoss和FrogMini模型。

摘要:

高质量的Bug是训练下一代基于语言模型的软件工程(SWE)智能体的关键。我们提出了一种合成高难度、多样化Bug的新方法。该方法指示SWE智能体向代码库中引入一项功能,在此过程中它们可能会意外破坏测试用例,从而产生Bug。以往的方法通常通过故意生成Bug(例如对现有代码引入局部扰动)引发分布偏移效应,无法反映真实的开发流程。我们开展了定性分析,证明我们的Bug生成方法更贴近人类编写的代码修改中存在的模式。通过大量实验,我们证明所生成的Bug能为监督微调提供更高效的训练数据,在仅使用一半训练数据(1.2k个对比3k个Bug)的情况下,性能优于其他Bug数据集2个百分点。我们在现有Bug数据集的基础上加入新生成的Bug进行训练,得到了在SWE-bench Verified上达到当前最优水平的32B参数模型FrogBoss,其pass@1指标为54.6%;以及同样在该基准上达到当前最优的14B模型FrogMini,三次随机种子的平均pass@1为45.3%。

英文摘要:

High quality bugs are key to training the next generation of language model based software engineering (SWE) agents. We introduce a novel method for synthetic generation of difficult and diverse bugs. Our method instructs SWE Agents to introduce a feature into the codebase whereby they may unintentionally break tests, resulting in bugs. Prior approaches often induce an out-of-distribution effect by generating bugs intentionally (e.g. by introducing local perturbation to existing code), which does not reflect realistic development processes. We perform qualitative analysis to demonstrate that our approach for generating bugs more closely reflects the patterns found in human-authored edits. Through extensive experiments, we demonstrate that our bugs provide more efficient training data for supervised fine-tuning, outperforming other bug datasets by 2% with half the training data (1.2k vs. 3k bugs). We train on our newly generated bugs in addition to existing bug datasets to get FrogBoss a state-of-the-art 32B parameter model on SWE-bench Verified with a pass@1 of 54.6% and FrogMini a state-of-the-art 14B model on SWE-bench Verified with a pass@1 of 45.3% on SWE-bench Verified averaged over three seeds.

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

↑