arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.14243cs.LGcs.CL
收藏

Jet-RL: 通过统一训练和回放精度流实现基于策略的FP8强化学习

Jet-RL: Enabling On-Policy FP8 Reinforcement Learning with Unified Training and Rollout Precision Flow

NVIDIA;MIT(麻省理工学院);UC Berkeley(加州大学伯克利分校)

Haocheng Xi, Charlie Ruan, Peiyuan Liao, Yujun Lin, Han Cai, Yilong Zhao, Shuo Yang, Kurt Keutzer, Song Han, Ligeng Zhu

AI总结:

Jet-RL通过统一FP8精度流实现稳定高效的强化学习训练,显著提升训练和回放速度,同时保持精度稳定。

摘要:

强化学习(RL)对于增强大型语言模型(LLMs)的复杂推理能力至关重要。然而,现有的RL训练流程在计算效率和资源消耗方面存在不足,其中回放阶段占总训练时间的超过70%。使用量化RL训练,特别是使用FP8精度,提供了一种有前景的方法来缓解这一瓶颈。一种常见的策略是在回放阶段使用FP8精度,而在训练阶段保留BF16精度。在本研究中,我们首次全面研究了FP8 RL训练,并证明了广泛使用的BF16训练+FP8回放策略在长周期回放和具有挑战性的任务中会遭受严重的训练不稳定性和灾难性精度崩溃。我们的分析表明,这些失败源于该方法的非策略性质,这在训练和推理之间引入了显著的数值不匹配。受这些观察的启发,我们提出了Jet-RL,一种FP8 RL训练框架,能够实现稳健且稳定的RL优化。关键思想是采用统一的FP8精度流进行训练和回放,从而减少数值差异并消除不高效的步骤校准需求。广泛的实验验证了Jet-RL的有效性:我们的方法在回放阶段实现了高达33%的加速,在训练阶段实现了高达41%的加速,并在端到端速度上比BF16训练快16%,同时在所有设置中保持稳定的收敛,并且引起极小的精度下降。

英文摘要:

Reinforcement learning (RL) is essential for enhancing the complex reasoning capabilities of large language models (LLMs). However, existing RL training pipelines are computationally inefficient and resource-intensive, with the rollout phase accounting for over 70% of total training time. Quantized RL training, particularly using FP8 precision, offers a promising approach to mitigating this bottleneck. A commonly adopted strategy applies FP8 precision during rollout while retaining BF16 precision for training. In this work, we present the first comprehensive study of FP8 RL training and demonstrate that the widely used BF16-training + FP8-rollout strategy suffers from severe training instability and catastrophic accuracy collapse under long-horizon rollouts and challenging tasks. Our analysis shows that these failures stem from the off-policy nature of the approach, which introduces substantial numerical mismatch between training and inference. Motivated by these observations, we propose Jet-RL, an FP8 RL training framework that enables robust and stable RL optimization. The key idea is to adopt a unified FP8 precision flow for both training and rollout, thereby minimizing numerical discrepancies and eliminating the need for inefficient inter-step calibration. Extensive experiments validate the effectiveness of Jet-RL: our method achieves up to 33% speedup in the rollout phase, up to 41% speedup in the training phase, and a 16% end-to-end speedup over BF16 training, while maintaining stable convergence across all settings and incurring negligible accuracy degradation.

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

↑