arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2510.22075cs.LGcs.AIcs.CL
收藏

面向真实世界代码修复的智能体强化学习

Agentic Reinforcement Learning for Real-World Code Repair

LinkedIn

Siyu Zhu, Anastasiya Karpovich, Albert Chen, Jessica Koscheka, Shailesh Jannu, Di Wen, Yuqing Zhu, Rohit Jain, Alborz Geramifard

AI总结:

本研究提出可验证的代码修复流水线,并基于简化环境对Qwen3-32B进行SFT和RL训练,发现匹配训练-测试环境对构建可靠智能体至关重要。

摘要:

我们解决了在真实代码仓库中训练可靠代码修复智能体的挑战,其中复杂的构建和变化的依赖关系使得评估不稳定。我们开发了一个可验证的流水线,将成功定义为修复后的构建验证,并通过固定依赖和禁用自动升级,在约1000个真实问题上提高了可复现性。在此基础上,我们引入了一个可扩展的简化流水线,用于大规模强化学习(RL)。利用这一设置,我们在完整流水线中对Qwen3-32B进行了监督微调(SFT),并在简化环境中对SFT模型应用了强化学习。从GPT-4.1轨迹蒸馏出的SFT模型性能相当,同时规模小56倍,且在匹配的训练-测试条件下,强化学习带来了7-20%的绝对提升。在我们的实验中,“思考模式”表现持平或更差。SFT和RL模型均未能跨环境泛化,这凸显了匹配训练-测试环境对于构建可靠的真实世界代码修复智能体的重要性。

英文摘要:

We tackle the challenge of training reliable code-fixing agents in real repositories, where complex builds and shifting dependencies make evaluation unstable. We developed a verifiable pipeline with success defined as post-fix build validation and improved reproducibility across ~1K real issues by pinning dependencies and disabling automatic upgrades. Building on this, we introduced a scalable simplified pipeline for large-scale reinforcement learning (RL). Using this setup, we supervised fine-tuned Qwen3-32B in the full pipeline and applied RL on top of the SFT model in the simplified environment. The SFT model distilled from GPT-4.1 trajectories performs on par while being 56x smaller, and RL added 7-20% absolute gains under matched train-test conditions. "Thinking mode" was on par or worse in our experiments. Both SFT and RL models failed to generalize across environments, highlighting the importance of matching train-test environments for building reliable real-world code-fixing agents.

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

↑