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

SWE-Lego:推动软件问题解决监督微调的极限

SWE-Lego: Pushing the Limits of Supervised Fine-tuning for Software Issue Resolving

Huawei Technologies(华为技术有限公司);NTU(国立新加坡大学);HKU(香港大学);CUHK(香港城市大学)

Chaofan Tao, Jierun Chen, Yuxin Jiang, Kaiqi Kou, Shaowei Wang, Ruoyu Wang, Xiaohui Li, Sidi Yang, Yiming Du, Jianbo Dai, Zhiming Mao, Xinyu Wang, Lifeng Shang, Haoli Bai

AI总结:

SWE-Lego通过轻量级监督微调方法和改进的测试时扩展技术,在软件问题解决任务中达到最新性能。

摘要:

我们提出了SWE-Lego,一种旨在实现软件工程(SWE)问题解决领域最新性能的监督微调(SFT)配方。与依赖复杂训练范式(如中期训练、SFT、强化学习及其组合)的流行方法不同,我们探索如何通过轻量级SFT-only方法推动SWE任务的极限。SWE-Lego包含三个核心构建块,关键发现总结如下:1)SWE-Lego数据集,包含32,000个高质量任务实例和18,000个经过验证的轨迹,结合真实和合成数据,在质量和数量上相互补充;2)一种经过改进的SFT过程,包含错误遮蔽和基于难度的课程学习,这明显提高了动作质量和整体性能。实证结果表明,仅使用这两个构建块,SFT可以将SWE-Lego模型推至在SWE-bench验证中与同等规模开源模型相当的最新水平:SWE-Lego-Qwen3-8B达到42.2%,SWE-Lego-Qwen3-32B达到52.6%。3)我们进一步评估并改进了基于SFT基础的测试时扩展(TTS)。基于良好训练的验证器,SWE-Lego模型可以显著提升——例如,在TTS@16下,8B和32B模型分别从42.2%提升到49.6%,从52.6%提升到58.8%。

英文摘要:

We present SWE-Lego, a supervised fine-tuning (SFT) recipe designed to achieve state-ofthe-art performance in software engineering (SWE) issue resolving. In contrast to prevalent methods that rely on complex training paradigms (e.g., mid-training, SFT, reinforcement learning, and their combinations), we explore how to push the limits of a lightweight SFT-only approach for SWE tasks. SWE-Lego comprises three core building blocks, with key findings summarized as follows: 1) the SWE-Lego dataset, a collection of 32k highquality task instances and 18k validated trajectories, combining real and synthetic data to complement each other in both quality and quantity; 2) a refined SFT procedure with error masking and a difficulty-based curriculum, which demonstrably improves action quality and overall performance. Empirical results show that with these two building bricks alone,the SFT can push SWE-Lego models to state-of-the-art performance among open-source models of comparable size on SWE-bench Verified: SWE-Lego-Qwen3-8B reaches 42.2%, and SWE-Lego-Qwen3-32B attains 52.6%. 3) We further evaluate and improve test-time scaling (TTS) built upon the SFT foundation. Based on a well-trained verifier, SWE-Lego models can be significantly boosted--for example, 42.2% to 49.6% and 52.6% to 58.8% under TTS@16 for the 8B and 32B models, respectively.

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

↑