APRIL:强化学习中用于驯服长尾生成的主动部分 Rollout
APRIL: Active Partial Rollouts in Reinforcement Learning to Tame Long-tail Generation
AI总结:
针对 RL rollout 响应长度长尾导致 GPU 闲置的问题,本文提出 APRIL,通过超额供给、达标即停和回收未完成响应提升吞吐、收敛速度与准确率。
摘要:
强化学习(RL)已成为推进大规模预训练语言模型(LLM)的基石。包括 GPT-o 系列、DeepSeek-R1、Kimi-K1.5、Grok 4 和 GLM-4.5 在内的后续模型,都依赖大规模 RL 训练来增强推理和编码能力。为满足社区日益增长的 RL 需求,许多 RL 框架已被提出。然而,RL 训练在计算上仍然昂贵,其中 rollout 生成占总运行时间的 90% 以上。此外,其效率常受 rollout 响应长度长尾分布的制约:少数冗长响应会拖慢整个批次,使 GPU 闲置且利用不足。随着模型和 rollout 规模持续增长,这一瓶颈日益限制可扩展性。为应对该挑战,我们提出 Active Partial Rollouts in Reinforcement Learning(APRIL),以缓解长尾低效问题。在 rollout 阶段,APRIL 超额供给 rollout 请求,在达到目标响应数量后立即终止,并回收未完成响应,以便在未来步骤中继续生成。该策略确保不会丢弃任何 rollout,同时大幅减少 GPU 空闲时间。实验表明,在常用 RL 算法(GRPO、DAPO、GSPO)上,APRIL 平均将 rollout 吞吐量提高 22.5%(最高 44%),加快收敛,并在各任务上使最终准确率平均提高 2.1%(最高 8%)。此外,APRIL 与框架和硬件均无关,已集成到 slime RL 框架中,并可同样部署在 NVIDIA 和 AMD GPU 上。综上,本工作在提出 APRIL 时统一了系统层面与算法层面的考虑,旨在提升 RL 训练效率并启发 RL 系统中的进一步优化。我们的代码库可在 https://github.com/RLsys-Foundation/APRIL 获取。
英文摘要:
Reinforcement learning (RL) has become a cornerstone in advancing large-scale pre-trained language models (LLMs). Successive generations, including GPT-o series, DeepSeek-R1, Kimi-K1.5, Grok 4, and GLM-4.5, have relied on large-scale RL training to enhance reasoning and coding capabilities. To meet the community's growing RL needs, numerous RL frameworks have been proposed. However, RL training remains computationally expensive, with rollout generation accounting for more than 90% of total runtime. In addition, its efficiency is often constrained by the long-tail distribution of rollout response lengths, where a few lengthy responses stall entire batches, leaving GPUs idle and underutilized. As model and rollout sizes continue to grow, this bottleneck increasingly limits scalability. To address this challenge, we propose Active Partial Rollouts in Reinforcement Learning (APRIL), which mitigates long-tail inefficiency. In the rollout phase, APRIL over-provisions rollout requests, terminates once the target number of responses is reached, and recycles incomplete responses for continuation in future steps. This strategy ensures that no rollouts are discarded while substantially reducing GPU idle time. Experiments show that APRIL improves rollout throughput by 22.5% on average (at most 44%) across commonly used RL algorithms (GRPO, DAPO, GSPO), accelerates convergence, and achieves 2.1% on average(at most 8%) higher final accuracy across tasks. Moreover, APRIL is both framework and hardware agnostic, already integrated into the slime RL framework, and deployable on NVIDIA and AMD GPUs alike. Taken together, this work unifies system-level and algorithmic considerations in proposing APRIL, with the aim of advancing RL training efficiency and inspiring further optimizations in RL systems. Our codebase is available at https://github.com/RLsys-Foundation/APRIL
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。