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

BoostAPR:通过基于执行的强化学习与双奖励模型提升自动化程序修复

BoostAPR: Boosting Automated Program Repair via Execution-Grounded Reinforcement Learning with Dual Reward Models

State Key Laboratory of Networking and Switching Technology(网络与交换技术国家重点实验室);Beijing University of Posts and Telecommunications(北京邮电大学);University of Luxembourg(卢森堡大学)

Yuanhao Li, Hongbo Wang, Xiaotang Shang, Xunzhu Tang, Yiming Cao, Xuhong Chen

AI总结:

BoostAPR通过基于执行的强化学习与双奖励模型,解决程序修复中反馈稀疏和奖励粗粒度的问题,实现40.7%的SWE-bench Verified准确率,展现强大的跨语言泛化能力。

摘要:

程序修复的强化学习受到稀疏执行反馈和粗粒度序列级奖励的阻碍,这些反馈模糊了哪些编辑真正修复了bug。我们提出了BoostAPR,一个三阶段框架:(1) 在经过执行验证的演示上进行监督微调,包含推理轨迹;(2) 从执行结果训练双奖励模型——一个序列级评估器和一个行级信用分配器;(3) PPO优化中,行级模型将奖励重新分配到关键编辑区域。此行级信用分配在中间粒度上自然适合代码更改。在SWE-Gym上训练并在四个基准上评估,BoostAPR在SWE-bench Verified上达到40.7%(比基线模型高22.9个百分点),在Defects4J(Python到Java迁移)上达到24.8%,在HumanEval-Java上达到84.5%,在QuixBugs上达到95.0%,在开源模型中取得竞争性结果,具有强大的跨语言泛化能力。

英文摘要:

Reinforcement learning for program repair is hindered by sparse execution feedback and coarse sequence-level rewards that obscure which edits actually fix bugs. We present BoostAPR, a three-stage framework addressing these challenges: (1) supervised fine-tuning on execution-verified demonstrations with reasoning traces, (2) training dual reward models--a sequence-level assessor and a line-level credit allocator--from execution outcomes, and (3) PPO optimization where the line-level model redistributes rewards to critical edit regions. This line-level credit assignment operates at an intermediate granularity naturally suited to code changes. Trained on SWE-Gym and evaluated on four benchmarks, BoostAPR achieves 40.7% on SWE-bench Verified (+22.9pp over base model), 24.8% on Defects4J (Python-to-Java transfer), 84.5% on HumanEval-Java, and 95.0% on QuixBugs, achieving competitive results among open-source models with strong cross-language generalization.

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

↑