Closing the BF16-FP16 Convergence Speed Gap in RL Post-Training with Stochastic Rounding
Mahdi Nazemi, Oleg Rybakov, Tijmen Blankevoort, Asit Mishra, Carlo del Mundo
Abstract
BF16 is widely used to pretrain large language models because it has the same dynamic range as FP32 and converges similarly to FP32 training. However, in reinforcement learning with verifiable rewards, where learning rates are typically low, we find that standard mixed-precision BF16 training converges more slowly than FP16 training at the same learning rate. We attribute this gap to weight sticking: when FP32 shadow weights are quantized to BF16 using round-to-nearest, small updates often leave the BF16 weights used for rollout generation and training unchanged. Consequently, several optimizer steps may be needed before updates to the shadow weights are reflected in the BF16 weights. Raising the BF16 learning rate reduces weight sticking and matches FP16's convergence speed, but it also increases the KL divergence from the reference model. We instead apply stochastic rounding when quantizing the FP32 shadow weights to BF16. This approach matches FP16's convergence speed across different models and datasets while reducing the KL divergence relative to BF16 training with a larger learning rate. Unlike FP16, it keeps BF16's wider dynamic range and needs no loss scaling.
Create a lesson
Related papers
Learning When to Ask: Advisor-Aware Post-Training for SLM Agents
Shared title terminology · Aasheesh Singh, Vishal Vaddina
Composable Soft-Prompt Distillation of RL Experts: Toward Continual Post-Training
Shared title terminology · Zhen Zhang, Changyi Yang, Xuehai He et al.
Trait Hitchhiking in LLM Post-Training
Shared title terminology · Adil Soubki, Elizabeth S. Z. Tan, Miles Cranmer
A Theory of Policy Optimization in Post-Training: Coverage Collapse and Reference Resets
Shared title terminology · Audrey Huang, Nan Jiang, Sham M. Kakade et al.
Coding Agent Memory Post-Training II: Unlocking the Memory Potential of Pre-trained File Operations for Long-Horizon Tasks via On-Policy Distillation
Shared title terminology · Lirui Luo, Kelong Mao, Xinwei Yang et al.
Train High, Ship Low: Efficient LoRA Synchronization for Distributed On-Policy Post-Training
Shared title terminology · Shenghui Li, Li Ju, Thiemo Voigt