EAC-MoE: Expert-Selection Aware Compressor for Mixture-of-Experts Large Language Models

Yuanteng Chen, Yuantian Shao, Peisong Wang, Jian Cheng

Mixture-of-Experts (MoE) architectures, such as Mixtral-8x7B, have gained significant traction in the Large Language Model (LLM) landscape. By activating only a subset of parameters for each token, they provide the performance of massive models with the computational efficiency of much smaller ones. However, MoE models suffer from a substantial "memory tax": even if only a few experts are active at any given time, the entire model—including all inactive experts—must be loaded into GPU memory.

The paper EAC-MoE: Expert-Selection Aware Compressor for Mixture-of-Experts Large Language Models introduces a framework designed to slash this memory overhead and accelerate inference by making compression "aware" of the expert selection process.

The Challenges of MoE Deployment

Deploying MoE models in real-world scenarios faces three primary hurdles:

  1. Extreme Memory Pressure: A model like Mixtral-8x7B requires approximately 94GB of GPU memory just to load, despite having an "active" parameter count comparable to a much smaller LLaMA2-13B model.
  2. The "Expert-Shift" Problem: Low-bit quantization (e.g., 2-bit or 3-bit) introduces noise that distorts the "router"—the gating mechanism that selects experts. If the router selects the wrong experts, model performance degrades sharply, even if the expert weights themselves are well-quantized.
  3. Inefficient Speedup: Sparse activation does not automatically translate to faster inference. In batched processing, different tokens often call upon different experts, frequently requiring the computation of most experts in a layer.

Methodology: QESC and PESF

EAC-MoE addresses these challenges through two novel modules:

1. QESC: Quantization with Expert-Selection Calibration

To mitigate the "expert-shift" caused by quantization, QESC performs layer-by-layer calibration of the routers. Rather than simply minimizing weight error, it employs a TopK-MSE Loss function. This focuses specifically on aligning the router's output for the top-K experts that should have been selected, effectively ignoring noise from experts with negligible selection probability.

2. PESF: Pruning based on Expert-Selection Frequency

The authors observed that MoE models exhibit strong "preferences" for specific experts based on the task domain (e.g., mathematics vs. code generation).

Similarity matrices demonstrating task-specific expert preferences in MoE models across different domains.

PESF leverages this by implementing dynamic pruning. During the prefill stage of inference, the system monitors how frequently each expert is selected for the current input sequence. Experts used significantly less than the average are "pruned" (skipped) for the remainder of that sequence, providing a direct speedup without sacrificing accuracy.

Experimental Results

The researchers evaluated EAC-MoE across various benchmarks, including WikiText2 for calibration and standard zero-shot tasks like Winogrande, PIQA, and MMLU. The results demonstrate that EAC-MoE significantly outperforms existing state-of-the-art mixed-precision quantization methods.

Performance comparison of EAC-MoE on Mixtral-8x7B, showing significant reductions in memory and latency with minimal accuracy loss.

Key achievements include:

  • Memory Reduction: A 4.92x reduction in memory requirements, allowing a 47B parameter MoE model to run on a single consumer-grade 24GB GPU.
  • Inference Speedup: A 1.68x actual inference speedup achieved through dynamic pruning.
  • Accuracy Preservation: Average accuracy loss remains under 1% across zero-shot tasks compared to full-precision baselines.

Conclusion and Future Work

EAC-MoE demonstrates that the key to efficient MoE compression lies in the router. By focusing on expert-selection awareness, the framework enables massive models to run on accessible hardware with high performance. Future work aims to extend the PESF pruning method to the token-by-token generation stage and test the framework on even larger "mega-MoEs" like DeepSeek-V3.

Summary updated

BibTeX
@inproceedings{chen2025eac,
  author = {Yuanteng Chen and Yuantian Shao and Peisong Wang and Jian Cheng},
  title = {{EAC-MoE: Expert-Selection Aware Compressor for Mixture-of-Experts Large Language Models}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure