Dense Backpropagation Improves Training for Sparse Mixture-of-Experts

Ashwinee Panda, Vatsal Baherwani, Zain Sarwar, Benjamin Therien, Sambit Sahu +2 more
4/16/2025
cs.LGcs.AI

Official code: vatsal0/default-moe (20 stars, Apache-2.0, last commit 2025-04-16).

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.

View on arXivView PDF

Code Implementations(1)

Apache-2.0
202C, C++Apr 16, 20251 years agoApache-2.0

Similar Papers

Cite this paper

@article{panda2025dense,
  title  = {Dense Backpropagation Improves Training for Sparse Mixture-of-Experts},
  author = {Ashwinee Panda and Vatsal Baherwani and Zain Sarwar and Benjamin Therien and Sambit Sahu and Tom Goldstein and Supriyo Chakraborty},
  year   = {2025},
  eprint = {2504.12463},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2504.12463v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2504.12463.svg)](https://codeofpaper.com/paper/2504.12463)

Discussion