arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2610.14405cs.SEcs.CLcs.LG
收藏

SPROUT:面向长周期软件工程的智能体强化学习规模化方法

SPROUT: Scaling Agentic Reinforcement Learning for Long-Horizon Software Engineering

RISE-X Lab, School of Computer Science, Shanghai Jiao Tong University(上海交大计算机学院 RISE-X 实验室);Amazon(亚马逊)

Mengyang Liu, Weiming Wang, Haixin Nan, Yu Wu, Peize Li, Shihong Huang, Xuning He, Xue Jiang, Yihong Dong

AI总结:

SPROUT是一种基于快照的智能体强化学习框架,通过保存文件系统与智能体上下文实现长周期编码任务的高效规模化,在提升pass@k指标、降低token消耗与训练时间的同时,性能优于GRPO。

摘要:

强化学习(RL)通过依赖经验证的成功轨迹作为学习信号,在编码智能体领域取得了显著进展。然而,在长周期软件工程任务中,此类轨迹十分稀缺,微小错误就可能导致整个执行过程失效。从初始状态反复重启是常用方法,但效率低下;仅重置工作目录等上下文会遗漏已安装依赖项等状态变化。因此,要从中间步骤分支以保留前期进展,需同时恢复智能体上下文和执行环境。本文提出SPROUT(基于快照的执行框架,SnaPshot-based RollOUT),这是一种智能体强化学习执行框架,通过从中间状态恢复和分支来实现长周期编码任务的规模化。具体而言,SPROUT构建于轻量级基础设施之上,该基础设施会在智能体每轮交互后对文件系统和智能体上下文进行 checkpoint(快照保存)。验证器引导的回溯策略会选择从失败尝试的何处恢复以及如何推进。在长周期编码任务上的大量实验表明,SPROUT在各类大语言模型(LLM)上的pass@k指标提升最高达23.6%,同时仅使用其32%至52%的token。对于Qwen3.8-27B的RL训练,SPROUT在三个长周期编码基准测试中稳定优于标准GRPO达13.9个百分点,同时将每次训练步骤的时间缩短39.5%。因此,SPROUT使长周期编码任务的RL在规模化时更高效且成本更低。

英文摘要:

Reinforcement learning (RL) has driven substantial progress in coding agents by relying on verified successful trajectories as learning signals. However, such trajectories are scarce in long-horizon software engineering tasks, where a minor error can invalidate the entire rollout. Repeatedly restarting from the initial state is commonly used yet inefficient, and resetting only the context with working directory misses state changes such as installed dependencies. Therefore, branching from intermediate steps to preserve earlier progress requires restoring both the agent context and execution environments. In this paper, we present SPROUT (SnaPshot-based RollOUT), an agentic RL rollout framework that scales long-horizon coding tasks by resuming and branching from intermediate states. Specifically, SPROUT was built on top of a lightweight infrastructure that checkpoints both the filesystem and the agent context after each assistant turn. A verifier-guided backtracking policy then selects where to resume a failed attempt and how to proceed. Extensive experiments on long-horizon coding tasks show that SPROUT achieves up to 23.6% improvement over pass@k across various LLMs, while using $32$--$52%$ of their tokens. For RL training of Qwen3.8-27B, SPROUT stably outperforms standard GRPO by $13.9$ points on three long-horizon coding benchmarks while cutting the time per training step by $39.5%$. SPROUT thus makes RL on long-horizon coding tasks both more effective and cheaper to scale.

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

↑