Dense Backpropagation Improves Training for Sparse Mixture-of-Experts
Ashwinee Panda, Vatsal Baherwani, Zain Sarwar, Benjamin Therien, Sambit Sahu, Tom Goldstein, Supriyo Chakraborty
TL;DR
This work tackles the training instability of sparse Mixture-of-Experts (MoE) models by enabling dense gradient signals to flow through the router without sacrificing sparse forward computation. It introduces Default MoE, which uses per-expert exponential moving average (EMA) default outputs to substitute non-activated expert activations in the backward pass, yielding a dense router gradient with minimal overhead. Empirically, Default MoE outperforms standard Top-K routing across multiple configurations and datasets, achieving faster convergence (e.g., ~9% fewer tokens to reach a target perplexity) while maintaining throughput and memory efficiency. This approach enhances MoE scalability and training stability, providing a practical improvement for large-scale pretraining on sparse architectures.
Abstract
Mixture of Experts (MoE) pretraining is more scalable than dense Transformer pretraining, because MoEs learn to route inputs to a sparse set of their feedforward parameters. However, this means that MoEs only receive a sparse backward update, leading to training instability and suboptimal performance. We present a lightweight approximation method that gives the MoE router a dense gradient update while continuing to sparsely activate its parameters. Our method, which we refer to as Default MoE, substitutes missing expert activations with default outputs consisting of an exponential moving average of expert outputs previously seen over the course of training. This allows the router to receive signals from every expert for each token, leading to significant improvements in training performance. Our Default MoE outperforms standard TopK routing in a variety of settings without requiring significant computational overhead. Code: https://github.com/vatsal0/default-moe.
