The Art of Scaling Reinforcement Learning Compute for LLMs
本文提出了一种名为ScaleRL的强化学习算法,通过系统地分析和预测LLMs中强化学习的扩展,实现了对RL计算的有效和可预测的扩展。
更新于 2025-10-16。作者:Devvrit Khatri、Lovish Madaan、Rishabh Tiwari、Rachit Bansal、Sai Surya Duvvuri、Manzil Zaheer、Inderjit S. Dhillon、David Brandfonbrener、Rishabh Agarwal。
中文摘要
强化学习(RL)已成为训练大型语言模型(LLMs)的核心,然而,该领域缺乏与预训练中建立的类似的可预测扩展方法。尽管计算预算迅速上升,但我们对如何评估扩展RL计算算法改进的原则性理解仍然不足。我们展示了第一个大规模系统性研究,涉及超过40万GPU小时,为分析并预测LLMs中RL的扩展定义了一个原则性框架。我们对RL训练拟合了S型计算性能曲线,并消除了广泛的设计选择,以分析其对渐进性能和计算效率的影响。我们观察到:(1)并非所有方法都能产生相似的性能,(2)诸如损失聚合、归一化、课程和离策略算法等细节主要调节计算效率,而不会实质性地改变渐进极限,以及(3)稳定、可扩展的方法遵循可预测的扩展轨迹,使得可以从较小规模的运行中进行外推。结合这些见解,我们提出了最佳实践方法ScaleRL,并通过在一个扩展到10万GPU小时的单一RL运行中成功扩展并预测验证性能来证明其有效性。我们的工作既为分析RL扩展提供了科学框架,又提供了一个将RL训练推向预测性的实用方法,这在预训练中早已实现。
英文摘要
Reinforcement learning (RL) has become central to training large language models (LLMs), yet the field lacks predictive scaling methodologies comparable to those established for pre-training. Despite rapidly rising compute budgets, there is no principled understanding of how to evaluate algorithmic improvements for scaling RL compute. We present the first large-scale systematic study, amounting to more than 400,000 GPU-hours, that defines a principled framework for analyzing and predicting RL scaling in LLMs. We fit sigmoidal compute-performance curves for RL training and ablate a wide range of common design choices to analyze their effects on asymptotic performance and compute efficiency. We observe: (1) Not all recipes yield similar asymptotic performance, (2) Details such as loss aggregation, normalization, curriculum, and off-policy algorithm primarily modulate compute efficiency without materially shifting the asymptote, and (3) Stable, scalable recipes follow predictable scaling trajectories, enabling extrapolation from smaller-scale runs. Combining these insights, we propose a best-practice recipe, ScaleRL, and demonstrate its effectiveness by successfully scaling and predicting validation performance on a single RL run scaled up to 100,000 GPU-hours. Our work provides both a scientific framework for analyzing scaling in RL and a practical recipe that brings RL training closer to the predictability long achieved in pre-training.
解读
一句话总结
本文提出了一种名为ScaleRL的强化学习算法,通过系统地分析和预测LLMs中强化学习的扩展,实现了对RL计算的有效和可预测的扩展。
问题1:这篇论文想要解决什么具体问题?
- 问题背景:尽管强化学习(RL)在训练大型语言模型(LLMs)中变得越来越重要,但缺乏与预训练相比的预测扩展方法。
- 现有方案不足:当前对于如何扩展RL计算缺乏原则性的理解,扩展方法更多是艺术而非科学。
- 研究目标:开发一个原则性的框架来分析和预测LLMs中RL的扩展,并提出一个可预测扩展的RL算法。
问题2:论文的核心创新点是什么?
- 技术创新:提出了一种名为ScaleRL的RL算法,它通过结合现有的方法来实现可预测的扩展。
- 方法改进:使用sigmoid曲线来拟合RL训练的计算-性能曲线,并分析了不同设计选择对计算效率和性能的影响。
- 优势:ScaleRL实现了比现有方法更高的性能和计算效率,并且可以预测性地扩展到大规模计算。
问题3:实验结果如何验证了方法的有效性?
- 关键实验:在一个大规模的100,000 GPU小时训练运行中,ScaleRL的性能与框架预测的曲线非常吻合。
- 性能提升:ScaleRL在性能和计算效率方面都超过了现有的RL方法。
- 对比结果:ScaleRL在多个实验中都优于基线方法,证明了其可预测性和有效性。
问题4:这个研究的实际应用价值是什么?
- 应用场景:ScaleRL可以应用于各种LLMs的训练,以提高其推理和生成能力。
- 实施建议:在LLMs的训练中采用ScaleRL,以实现更高效和可预测的扩展。
- 局限与展望:虽然ScaleRL在当前实验中表现出色,但未来还需要进一步研究以应对更复杂的LLMs和扩展场景。
来源
机器可读索引:llms.txt