Mixture-of-Experts (MoE) architectures have become a cornerstone for scaling Large Language Models (LLMs), offering high model capacity with sub-linear increases in per-token computation. However, deploying these massive models efficiently remains challenging due to fixed expert granularities and computational load imbalances in distributed environments. DualSparse-MoE addresses these issues by optimizing pre-trained MoE models through "dual sparsity"—coordinating efficiency at both the expert (tensor) and individual neuron levels.
Introduction
While MoE models are sparse by design, they typically face a "granularity mismatch" where the number and size of experts are fixed during pre-training. This rigidity often leads to suboptimal hardware utilization. Furthermore, distributed inference suffers from the "straggler problem," where load imbalances across GPUs slow down the entire system. DualSparse-MoE is motivated by the observation that even within an "active" expert, many neurons contribute minimally to the final output, suggesting that finer-grained control can unlock significant efficiency gains.
Methodology
The system introduces three primary innovations to enhance inference performance without requiring expensive retraining:
1. Post-Training Expert Partitioning
DualSparse-MoE mathematically decomposes large, pre-trained experts into multiple smaller "sub-experts." This transformation enables Soft Expert-Tensor Parallelism (S-ETP), which simplifies the complex networking required for distributed execution by moving parallelization logic into the model's algorithm itself.
2. 2T-Drop (Dual-Threshold Dropping)
Rather than treating all neurons within an expert as equally important, the system profiles neurons to identify "Major" (high importance) and "Minor" (low importance) groups. It applies a high threshold for minor neurons, allowing them to be dropped aggressively, while a low threshold protects major neurons to preserve model accuracy. This "denoising" approach allows the system to skip low-impact computations effectively.
3. Load-Aware Thresholding
To resolve load imbalance, DualSparse-MoE dynamically adjusts these thresholds in real-time. If a specific GPU becomes a bottleneck (overloaded), it automatically increases its dropping threshold for minor neurons to catch up with the rest of the cluster, ensuring synchronized execution.
Experimental Results
The researchers evaluated DualSparse-MoE across several state-of-the-art models, including Mixtral-8×7B, OLMoE, and DeepSeek-V2-Lite-Chat, using benchmarks like MMLU, GSM8K, and ARC-C.
- Performance: The system achieved a 1.41× speedup for MoE modules in distributed setups (8× H20 GPUs).
- Accuracy: Enforcing a 25% computation drop rate resulted in a negligible accuracy loss of only 0.08% to 0.28%. In some cases, dropping low-scoring experts actually improved accuracy by removing "noise."
- Communication: The S-ETP method improved communication bandwidth by up to 29.9% in real-world tests and up to 80.4% in high-speed simulated environments.
- Fine-tuning: Partitioning Mixtral-8×7B into 32 experts (up from 8) reduced fine-tuning loss and improved downstream accuracy by 0.59%.
Conclusion
DualSparse-MoE demonstrates that coordinating tensor and neuron-level sparsity can significantly accelerate MoE inference with minimal accuracy impact. By leveraging post-training partitioning and dynamic thresholding, the system provides a flexible and efficient framework for deploying massive MoE models on diverse hardware configurations. Future work includes exploring fully dynamic neuron profiling and extending these optimizations to the attention layers of the transformer architecture.
Summary updated