Mixture-of-Experts (MoE) architectures have become the gold standard for scaling Large Language Models (LLMs). By activating only a fraction of their parameters (the "experts") for any given input token, MoE models strike a powerful balance between computational efficiency and massive scalability. However, expert configurations are typically fixed during the computationally expensive pre-training phase.
This paper identifies a major inefficiency in this standard pipeline: significant "dual sparsity" remains untapped once a model moves to post-training (fine-tuning) and inference. Existing pruning methods often lead to sharp accuracy drops or create unstructured patterns that modern GPUs struggle to accelerate. By exploiting this dual sparsity, the authors propose a framework that achieves simultaneous gains in inference speed and model accuracy without retraining from scratch.
The Problem of Dual Sparsity
The untapped capacity in pre-trained MoE models exists at two distinct levels:
- Tensor-Level Sparsity: Many experts are selected with very low "gating scores." Rather than contributing meaningful information, these experts often inject computational noise into the final output.
- Neuron-Level Sparsity: Even within a single active expert, not all neurons are equally important. A subset of neurons contributes significantly more to the activation magnitude than the rest.
Methodology: Exploiting Sparsity for Speed and Accuracy
To harness this dual sparsity, the authors introduce a multi-pronged approach targeting both the post-training and inference phases:
1. Complete Expert Partition (Post-Training)
A pre-trained MoE (e.g., Mixtral-8x7B) is mathematically transformed into a version with more, smaller experts (e.g., 32 experts instead of 8). By scaling weights appropriately, mathematical equivalence is initially maintained. However, this finer granularity allows the model to learn highly specialized features during supervised fine-tuning (SFT), effectively "re-specializing" the model after it has learned general language structures.
2. Threshold-Based Dropping (Inference)
For the inference phase, the authors introduce two token-expert dropping strategies:
- 1T-Drop: A single-threshold mechanism that drops experts with normalized gating scores below a specific value (e.g., 0.05). This acts as a powerful denoiser.
- 2T-Drop: A sophisticated dual-threshold approach. Using calibration data, neurons within experts are profiled and reorganized into Major (high-impact) and Minor (low-impact) sub-experts. During inference, if an expert's gating score falls into a "medium" range, the model only computes the Major sub-expert. This saves FLOPs while preserving critical features.
3. Hardware and Distributed Optimizations
To address bottlenecks in distributed settings (Expert Parallelism), the authors implement Load-Aware Thresholding, dynamically adjusting dropping thresholds based on real-time device load to keep the system in sync. Additionally, they introduce Soft Expert-Tensor Parallelism (S-ETP), a parallelization strategy that uses algorithmic partitioning to reduce communication overhead by replacing complex AlltoAll + AllGather patterns with simpler AlltoAll operations.
Key Insights
- Low Gating Scores = Computational Noise: Counter-intuitively, dropping experts with low gating scores can actually increase accuracy. These low-scoring experts dilute the signal from the primary experts.
- Static Profiling over Dynamic Masking: Instead of deciding which neurons to drop on-the-fly—which introduces latency—the authors use a one-time profiling step to reorganize the expert's internal structure. This makes the sparsity "hardware-friendly" because the GPU processes regular, contiguous memory blocks.
Empirical Results
The framework was evaluated across a comprehensive suite of benchmarks, including reasoning (MMLU, ARC-C), math/code (GSM8K, HumanEval), and long-context tasks (RULER).
- Accuracy Improvements: Applying Complete Expert Partition and 1T-Drop to Mixtral-8x7B improved average accuracy by 1% across nine downstream benchmarks, featuring a remarkable 4% jump on GSM8K.
- Speed vs. Accuracy Trade-off: The 2T-Drop method achieved a 1.19x MoE speedup on Mixtral while still yielding a 0.5% accuracy gain.
- Inference-Only Optimization: On models like DeepSeek-V2-Lite-Chat and OLMoE-Instruct, the techniques achieved up to a 1.41x speedup with negligible (<0.5%) accuracy loss.
- Communication Efficiency: The S-ETP strategy improved communication bandwidth utilization by 10% to 80% in simulated high-bandwidth environments (e.g., NVIDIA's NVL72).
Limitations and Future Directions
While highly effective, the current approach uses a uniform dropping threshold across all layers. Because different layers exhibit varying sparsity patterns, per-layer thresholding could unlock further optimizations. Furthermore, neuron importance profiling relies on a calibration dataset (like MMLU); performance may vary if deployed in highly specialized domains not represented in the calibration data. Finally, further hardware-level kernel optimization could push speedups even higher, particularly for the partial execution states utilized in 2T-Drop.
Summary updated