Introduction
Mixture-of-Experts (MoE) models have emerged as a leading architecture for scaling large language models (LLMs) efficiently. By activating only a subset of parameters for each token, MoEs achieve the performance of massive dense models at a fraction of the computational cost (FLOPs). However, traditional MoEs suffer from a significant "parameter tax": to match a dense model's performance, an MoE typically requires 2–4 times more total parameters. This leads to a massive memory footprint, creating I/O bottlenecks during inference where memory bandwidth, rather than computation, becomes the primary constraint.
The DS-MoE Framework
The authors propose DS-MoE (Dense Training, Sparse Inference), a framework that challenges the standard practice of sparse training. They hypothesize that the inefficiency of traditional MoEs stems from underutilized parameters during training.
Dense Training vs. Sparse Training
In standard MoEs, only a few experts are updated per token (sparse training). DS-MoE flips this by involving all experts in the forward pass and gradient updates during the training phase. This ensures that every parameter is fully optimized and contributes to the model's knowledge base.
To facilitate the transition from dense training to sparse inference, the framework employs:
- Mutual Information (MI) Loss: This loss function encourages load balancing across experts and ensures that the router develops a strong preference for specific experts for individual tokens.
- Mixture of Attention (MoA): Sparsity is extended beyond the Feed-Forward Networks (FFN) to the attention mechanism, utilizing Grouped-Query Attention (GQA) where experts manage specific query vectors.
Key Results and Performance
DS-MoE demonstrates that the "parameter tax" is not an inherent property of MoEs but a consequence of training methodology. By training densely, models can achieve high performance with significantly fewer total parameters than traditional sparse MoEs.
Performance and Efficiency
Evaluation across common-sense reasoning and question-answering tasks shows that DS-MoE-3B matches the average performance of a standard Dense-3B model while activating only 34% of its parameters. Furthermore, it requires roughly half the total parameters of a performance-matched traditional SMoE-5B.
Inference Speedup
The reduced memory footprint translates directly into inference speed. The DS-MoE-6B model achieved a 1.86× speedup over the Mistral-7B dense model. It also outperformed existing sparse MoEs like DeepSeekMoE-16B and Qwen1.5-MoE-A2.7B by 1.50× to 1.71×, despite having similar active parameter counts, due to its lower total parameter count reducing I/O overhead.
Conclusion
DS-MoE represents a paradigm shift in MoE design. By investing more computational effort during the training phase (dense training), it produces models that are both more parameter-efficient and significantly faster during inference. While the initial training cost is higher, the long-term benefits in inference throughput and memory efficiency make it a compelling approach for deploying high-performance LLMs.
Summary updated