Abstract
Mixture-of-Experts (MoE) models like Mixtral 8x7B achieve high performance with efficient active parameter counts, yet their massive total parameter size poses significant deployment challenges on standard hardware. We present two hardware-friendly, post-training techniques: Expert Pruning and Dynamic Expert Skipping. By permanently removing redundant experts and temporarily bypassing others during inference, we reduce the memory footprint of Mixtral 8x7B to fit on a single 80GB GPU and achieve up to a 1.33x inference speedup with minimal accuracy loss.
Introduction
The shift toward Mixture-of-Experts (MoE) architectures in Large Language Models (LLMs) is driven by their computational efficiency. In an MoE model, a router activates only a subset of "experts" for each token. For instance, Mixtral 8x7B contains approximately 47 billion parameters but activates only 13 billion per token.
However, the "static parameter" problem remains: the entire model must be loaded into VRAM. Deploying Mixtral 8x7B typically requires at least two A100-80G GPUs. This paper addresses this bottleneck through "plug-and-play" methods that reduce memory requirements and increase throughput on standard hardware without requiring specialized kernels or expensive retraining.
Methodology
The proposed framework consists of two complementary strategies:
Post-training Expert Pruning
Expert Pruning is a permanent reduction technique. The authors observe that MoE training often leads to "representation collapse," where some experts become redundant. Using a small calibration dataset, they measure reconstruction loss—the discrepancy between the original layer output and the output after removing specific experts. An exhaustive search identifies the optimal $r$ experts to preserve per layer.
Dynamic Expert Skipping
Complementing pruning, Dynamic Expert Skipping operates on-the-fly. During inference, if the router assigns a significantly higher weight to the top-ranked expert compared to the second (based on a threshold $\beta$), the second expert is bypassed. This saves computation for "easier" tokens while retaining full model capacity for complex ones.
Performance and Memory Efficiency
The primary goal of these techniques is to enable deployment on consumer-grade or mid-range enterprise hardware.
As shown in the figure above, pruning Mixtral 8x7B from 8 to 6 experts per layer (r=6) reduces the memory footprint to under 80GB, enabling single-GPU deployment. This configuration yields a 1.2x speedup, which increases to 1.33x when combined with dynamic skipping.
Task-Specific Expert Redundancy
A key finding is that expert utility is highly dependent on the task domain. Pruning based on general-purpose data (like the C4 dataset) can degrade performance on specialized tasks like mathematics.
Visualizing the layer-wise pruning patterns reveals that the experts identified as redundant differ significantly between general text (C4) and mathematical reasoning (MATH). By using domain-specific calibration data and minor fine-tuning, a pruned 6-expert model can nearly match the performance of the original 8-expert model on benchmarks like GSM8K.
Conclusion
Expert Pruning and Dynamic Expert Skipping offer a practical path for deploying massive MoE models on limited hardware. By leveraging the inherent redundancy in MoE architectures and the task-specific nature of expert utility, these methods achieve substantial gains in memory efficiency and inference speed with negligible impact on model quality.
Summary updated