Improving MoE Compute Efficiency by Composing Weight and Data Sparsity
Maciej Kilian, Oleg Mkrtchyan, Luke Zettlemoyer, Akshat Shrivastava, Armen Aghajanyan
TL;DR
The paper addresses compute efficiency in MoE transformers by combining weight sparsity with data sparsity through a minimal, causality-preserving extension: null experts. By duplicating null slots and applying a standard load-balancing loss plus a stabilizing Z-Loss, the model learns to route low-information tokens to null experts while preserving full computation for informative tokens, enabling data sparsity without train–inference mismatch. Experiments on vision-language model training show that, at matched expected FLOPs, data-sparse MoE configurations outperform dense baselines and exhibit emergent modality-aware compute allocation, routing vision tokens more to nulls and adjusting based on task prompts. This approach yields a more compute-efficient frontier and practical gains in training loss and downstream performance, suggesting broader applicability to multimodal and attention components beyond MoE layers.
Abstract
Mixture-of-Experts layers achieve compute efficiency through weight sparsity: each token activates only a subset of experts. Data sparsity, where each expert processes only a subset of tokens, offers a complementary axis. Expert-choice routing implements data sparsity directly but violates causality in autoregressive models, creating train-inference mismatch. We recover data sparsity within causal token-choice MoE by leveraging zero-compute (null) experts within the routing pool. When a token routes to null experts, those slots consume no compute. The standard load balancing objective trains the model to uniformly use all experts (real and null) therefore creating data sparsity in expectation without the causality violations. We evaluate on vision-language model training, where data heterogeneity is pronounced: vision encoders produce many low-information tokens while text tokens are denser. At matched expected FLOPs, composing weight and data sparsity yields a more compute-efficient frontier than weight sparsity alone, with gains in training loss and downstream performance. The model learns implicit modality-aware allocation, routing vision tokens to null experts more aggressively than text, without explicit modality routing.
