Where Rounding Happens Matters: Rounding-Location Alignment Stabilizes LLM Reinforcement Learning
Yijing Ke, Tianle Cai, Ruosong Wang
Key points
From the paper's conclusion- 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.
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.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Aligning Training and Rollout Policies for End-to-End FP4 RL on Mixture-of-Experts LLMsarXiv · 2026
- Closing the BF16-FP16 Convergence Speed Gap in RL Post-Training with Stochastic RoundingarXiv · 2026
- TRIAGE: Direction-Aware Mismatch Stabilization of Native NVFP4 Reinforcement LearningarXiv · 2026
- TRACE: Rollout-Guided Quantization-Aware Training for FP4 Reinforcement Learning of MoE Language ModelsarXiv · 2026
- miniTE: Diagnosing and Bridging the Execution Gap in Native NVFP4 Reinforcement LearningarXiv · 2026
- End-to-End MXFP8 Reinforcement Learning on Blackwell: What Matching Buys, When It Pays Off, and How It FailsarXiv · 2026