RolloutPipe: 分离式在线策略LLM强化学习中的流水线化Rollout与训练重叠
RolloutPipe: Overlapping Pipelined Rollout and Training in Disaggregated On-Policy LLM Reinforcement Learning
AI总结:
针对分离式RLVR系统中rollout与训练阶段空闲问题,提出RolloutPipe框架,通过完整组流水线(CGP)和前沿组调度(FGD)实现训练与rollout重叠,保持在线策略正确性,减少训练等待时间30.7%-42.3%。
摘要:
大型语言模型(LLM)的后训练越来越多地依赖于具有可验证奖励的强化学习(RLVR),其中模型从数学、逻辑和科学任务的地面真实反馈中学习。为了实现灵活的资源分配并支持异构训练设置,现代RLVR系统采用分离式架构,将rollout生成和策略训练解耦到独立的GPU池中。然而,现有的同步在线策略GRPO(组相对策略优化)RLVR系统在开始训练前完成整个rollout,导致训练器GPU池在rollout进行时处于空闲状态。异步RL流水线将两个阶段重叠,但代价是在陈旧数据上进行训练。为了解决这些挑战,我们提出了RolloutPipe,一种用于分离式RLVR系统的后训练框架,它将固定权重的rollout转变为完整组流水线,其中可训练组在后续组仍在生成时移动到训练器。RolloutPipe通过两种技术实现这一点:完整组流水线(CGP)和前沿组调度(FGD)。CGP在每个可训练的完整组物化完成后立即将其分派到训练器FIFO,而FGD是Rollout节点上的准入策略,首先准入形成下一个训练批次所需的前沿组的请求,从而使训练器就绪组更早、更稳定地到达。该设计在rollout完成之前开始训练,同时保持在线策略正确性。在Qwen3-1.7B上,跨四个推理和科学基准以及十二个rollout设置进行评估,与最先进的rollout和训练系统Slime相比,RolloutPipe将rollout到训练结束的时间缩短了30.7%-42.3%,并将训练器等待比例降低了37%-76%。
英文摘要:
Large language model (LLM) post-training for reasoning increasingly relies on reinforcement learning with verifiable rewards (RLVR), where models learn from ground-truth feedback on mathematical, logical, and scientific tasks. To enable flexible resource allocation and support heterogeneous training setups, modern RLVR systems adopt disaggregated architectures that decouple rollout generation and policy training across independent GPU pools. However, existing synchronous on-policy GRPO (Group Relative Policy Optimization) RLVR systems finish an entire rollout before starting training, leaving the trainer GPU pool idle while rollout is still ongoing. Asynchronous RL pipelines overlap the two stages, but at the cost of training on stale data. To address these challenges, we propose RolloutPipe, a post-training framework for disaggregated RLVR systems, which turns the fixed-weight rollout into a complete-group pipeline where trainable groups move to the trainer while later groups are still being generated. RolloutPipe achieves this through two techniques including complete-group pipelining (CGP) and frontier-group dispatch (FGD). CGP dispatches each trainable complete group to the trainer FIFO as soon as group materialization finishes, and FGD is an admission policy on the Rollout node that first admits requests for the frontier groups needed to form the next training batch, so that trainer-ready groups arrive earlier and more steadily. The design starts training before the rollout completes while maintaining on-policy correctness. Evaluated on Qwen3-1.7B across four reasoning and science benchmarks and twelve rollout settings, RolloutPipe shortens the rollout-to-train-end time by 30.7%-42.3%, and lowers the trainer waiting ratio by 37%-76% compared to Slime, a state-of-the-art rollout and training system.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。