Preserving Optimizer Updates When Experts Move in MoE Training
Yanming Lai, Yi Qin, Yongxin Hu, Zeyue Wang, Kejin Lu, Fei Yang
Abstract
Moving an expert between GPUs in mixture-of-experts training can change an optimizer update even with identical gradients. In one Qwen3 update, regrouping the squared gradients for clipping shifted the FP32 norm by one unit in the last place and changed the stored BF16 weights. We preserve token order and the timing of gradient writes relative to scaling. The new owners compute FP32 partial sums and the original ranks accumulate them in native order. With AdamW on the new owners, all four pretrained models matched native Megatron bit for bit at every full-gradient probe and optimizer checkpoint through migration and return. On 16 A100s, a prefitted Qwen3-30B-A3B-Base layout cut complete-update time by 3.84% versus native NCCL at the original placement. At that same layout, partial sums shortened updates by 1.30% relative to returning full gradients in reusable buffers.
Create a lesson
Metadata
- Comments
- 14 pages including 3 pages of supplementary material, 3 figures in total. Ancillary files contain Qwen3 timing and clipping data and a verification script
Related papers
Half a Bit per Parameter: How Much Optimizer State Does Training Need to Survive a Failed GPU?
Shared title terminologycs.DCZiyang Lin, Zixuan Sun
Robust Binary-Compressed Communication in Distributed Learning and the Optimality of SignSGD
Shared title terminologycs.DCHallison Paz, Arthur Danjou, El Mahdi El Mhamdi
Asymptotically Round- and Communication-Optimal Byzantine Broadcast under a Dishonest Majority from a New Extension Protocol
Shared title terminologycs.DCPierre Civit, Grigorii Emdin, Rachid Guerraoui
ASHE: Asynchronous Stage-owned Heterogeneous Elastic-averaging for Pipeline-Parallel Training
Shared title terminologycs.DCHamin Jung, Sookwang Lee, Shinyoung Ahn et al.
Optimal Signature-Free Consensus Made Simple
Shared title terminologycs.DCAntonio J. Fernández-Pinto, Manuel Bravo, Gregory Chockler et al.
Activation-Aware Balancing of Fused CPU and GPU Expert Execution for Offline MoE Inference
Shared title terminologycs.DCBorui Xu, Weihao Cui, Yao Chen et al.