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

Satori-SWE:面向样本高效软件工程的演化式测试时扩展

Satori-SWE: Evolutionary Test-Time Scaling for Sample-Efficient Software Engineering

Singapore University of Technology and Design(新加坡科技设计大学);MIT(麻省理工学院);UMass Amherst(马萨诸塞大学阿默斯特分校);Harvard(哈佛大学);MIT-IBM Watson AI Lab(MIT-IBM沃森人工智能实验室);IBM Research(IBM研究院)

Guangtao Zeng, Maohao Shen, Delin Chen, Zhenting Qi, Subhro Das, Dan Gutfreund, David Cox, Gregory Wornell, Wei Lu, Zhang-Wei Hong, Chuang Gan

AI总结:

针对小参数语言模型在真实软件工程任务中表现不佳且现有测试时扩展方法采样成本高的问题,提出演化式测试时扩展方法 EvoScale,通过强化学习训练模型自我演化,使 32B 模型在 SWE-Bench-Verified 上以少量样本匹敌超 100B 模型。

摘要:

语言模型(LMs)在标准化编程基准测试中表现良好,但在现实世界的软件工程任务中表现不佳,例如在 SWE-Bench 中解决 GitHub issue,尤其是当模型参数少于 100B 时。由于计算成本较低,较小的模型在实际应用中更受青睐,但提升其性能仍然具有挑战性。现有方法主要依赖于使用高质量数据进行监督微调(SFT),这在规模化时数据整理成本很高。一种替代方案是测试时扩展:生成多个输出,使用验证器对其进行评分,并选择最佳输出。尽管有效,该策略通常需要过度采样和昂贵的评分,限制了其实际应用。我们提出了 Evolutionary Test-Time Scaling (EvoScale),这是一种样本高效的方法,将生成视为一个演化过程。通过选择和变异迭代地优化输出,EvoScale 将输出分布向更高分数的区域转移,减少了找到正确解决方案所需的样本数量。为了减少重复采样和选择带来的开销,我们训练模型使用强化学习(RL)进行自我演化。模型不再在推理时依赖外部验证器,而是学会在多次迭代中自我提升其生成内容的得分。在 SWE-Bench-Verified 上的评估表明,EvoScale 使我们的 32B 模型 Satori-SWE-32B 在使用少量样本的情况下,能够匹配或超越参数量超过 100B 的模型。代码、数据和模型将完全开源。

英文摘要:

Language models (LMs) perform well on standardized coding benchmarks but struggle with real-world software engineering tasks such as resolving GitHub issues in SWE-Bench, especially when model parameters are less than 100B. While smaller models are preferable in practice due to their lower computational cost, improving their performance remains challenging. Existing approaches primarily rely on supervised fine-tuning (SFT) with high-quality data, which is expensive to curate at scale. An alternative is test-time scaling: generating multiple outputs, scoring them using a verifier, and selecting the best one. Although effective, this strategy often requires excessive sampling and costly scoring, limiting its practical application. We propose Evolutionary Test-Time Scaling (EvoScale), a sample-efficient method that treats generation as an evolutionary process. By iteratively refining outputs via selection and mutation, EvoScale shifts the output distribution toward higher-scoring regions, reducing the number of samples needed to find correct solutions. To reduce the overhead from repeatedly sampling and selection, we train the model to self-evolve using reinforcement learning (RL). Rather than relying on external verifiers at inference time, the model learns to self-improve the scores of its own generations across iterations. Evaluated on SWE-Bench-Verified, EvoScale enables our 32B model, Satori-SWE-32B, to match or exceed the performance of models with over 100B parameters while using a few samples. Code, data, and models will be fully open-sourced.

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

↑