跳到正文
arXiv (AI + Vision + Imaging)· Yijing Ke, Tianle Cai, Ruosong Wang·AI 评分26

对齐训练侧舍入位置可稳定LLM强化学习:RoPE、SwiGLU与RMSNorm的BF16实践

Where Rounding Happens Matters: Rounding-Location Alignment Stabilizes LLM Reinforcement Learning

AI 导读

针对LLM强化学习中推理与训练系统实现差异导致的off-policy不稳定问题,研究提出将训练侧舍入位置与推理对齐,在RoPE、SwiGLU和残差RMSNorm三处保留中间结果为FP32直至BF16输出。在四个Qwen系列模型上,三区域全部对齐可避免默认BF16基线下的训练崩溃,仅对齐RoPE路径在研究运行中同样足够。该方法不改动推理引擎、矩阵乘与注意力kernel及学习目标。

正文 · 原文

arXiv:2610.32951v1 Announce Type: new Abstract: Reinforcement learning for large language models often uses separate systems for inference and training. Even with identical weights and BF16 tensors, implementation differences can make an intended on-policy update off-policy and destabilize training. Existing remedies align the entire inference and training stacks, change global precision, or modify the learning algorithm. We ask whether aligning selected parts of the execution stack can stabilize BF16 RL while other implementation differences remain. We align training-side rounding locations with inference in three regions---RoPE, SwiGLU, and residual RMSNorm---by retaining selected intermediates in FP32 until their BF16 outputs. Across four Qwen-family models, aligning all three regions prevents the collapse observed under the default BF16 baseline; RoPE-path alignment alone also suffices in the studied runs, despite remaining numerical discrepancies. The interventions keep the inference engine, matrix-multiplication and attention kernels, and learning objective unchanged.

来源:arXiv (AI + Vision + Imaging) · arxiv.org