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

SWE-RM:无执行反馈用于软件工程代理

SWE-RM: Execution-free Feedback For Software Engineering Agents

The Hong Kong University of Science and Technology(香港科技大学);Alibaba Group(阿里巴巴集团)

KaShun Shum, Binyuan Hui, Jiawei Chen, Lei Zhang, X. W., Jiaxi Yang, Yuzhen Huang, Junyang Lin, Junxian He

AI总结:

SWE-RM通过混合专家架构提升软件工程代理在TTS和RL中的性能,达到新的开源模型最佳水平。

摘要:

基于执行的反馈,如单元测试,在通过测试时间扩展(TTS)和强化学习(RL)开发编码代理时被广泛使用。这种范式要求可扩展且可靠的单元测试用例收集以提供准确的反馈,而生成的反馈往往稀疏,无法有效区分成功或失败的轨迹。相比之下,来自奖励模型的无执行反馈可以提供更细粒度的信号,而无需依赖单元测试用例。尽管有这种潜力,但为现实软件工程(SWE)代理开发无执行反馈仍处于探索阶段。然而,旨在开发在TTS和RL中均有效的多功能奖励模型,我们发现两个几乎具有相同TTS性能的验证器在RL中却会产生非常不同的结果。直观上,TTS主要反映模型选择最佳轨迹的能力,但这种能力不一定能推广到RL。为了解决这一限制,我们识别出两个对RL训练至关重要的额外方面:分类准确性和校准。然后,我们进行了全面的受控实验,以研究如何训练一个在这些指标上表现良好的鲁棒奖励模型。特别是,我们分析了各种因素的影响,如训练数据规模、策略混合和数据源组成。受这些研究的指导,我们引入了SWE-RM,一个准确且鲁棒的奖励模型,采用混合专家架构,总参数为300亿,推理时激活30亿。SWE-RM在TTS和RL性能上显著提高了SWE代理。例如,它将Qwen3-Coder-Flash的准确率从51.6%提高到62.0%,将Qwen3-Coder-Max的准确率从67.0%提高到74.6%,在SWE-Bench上使用TTS验证,实现了在开源模型中的新状态-of-the-art性能。

英文摘要:

Execution-based feedback like unit testing is widely used in the development of coding agents through test-time scaling (TTS) and reinforcement learning (RL). This paradigm requires scalable and reliable collection of unit test cases to provide accurate feedback, and the resulting feedback is often sparse and cannot effectively distinguish between trajectories that are both successful or both unsuccessful. In contrast, execution-free feedback from reward models can provide more fine-grained signals without depending on unit test cases. Despite this potential, execution-free feedback for realistic software engineering (SWE) agents remains underexplored. Aiming to develop versatile reward models that are effective across TTS and RL, however, we observe that two verifiers with nearly identical TTS performance can nevertheless yield very different results in RL. Intuitively, TTS primarily reflects the model's ability to select the best trajectory, but this ability does not necessarily generalize to RL. To address this limitation, we identify two additional aspects that are crucial for RL training: classification accuracy and calibration. We then conduct comprehensive controlled experiments to investigate how to train a robust reward model that performs well across these metrics. In particular, we analyze the impact of various factors such as training data scale, policy mixtures, and data source composition. Guided by these investigations, we introduce SWE-RM, an accurate and robust reward model adopting a mixture-of-experts architecture with 30B total parameters and 3B activated during inference. SWE-RM substantially improves SWE agents on both TTS and RL performance. For example, it increases the accuracy of Qwen3-Coder-Flash from 51.6% to 62.0%, and Qwen3-Coder-Max from 67.0% to 74.6% on SWE-Bench Verified using TTS, achieving new state-of-the-art performance among open-source models.

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

↑