LightMoE: Reducing Mixture-of-Experts Redundancy through Expert Replacing

Jiawei Hao, Zhiwei Hao, Jianyuan Guo, Li Shen, Yong Luo, Han Hu, Dan ZengNeurIPS 2026

TL;DR

Mixture-of-Experts (MoE) language models are famously fast at inference because they only activate a fraction of their parameters per token, yet they remain notoriously memory-hungry because you still have to load all of those parameters onto your GPUs. Instead of crudely deleting redundant experts or mashing them together, LightMoE introduces expert replacing—swapping less-used experts with compact, shared base weights plus tiny, expert-specific adapters. The result? You can slice an MoE model's memory footprint in half while keeping its intelligence remarkably intact, all with minimal retraining.

What Problem Does This Paper Address?

Picture a massive hospital with 64 specialized doctors on call, where a triage nurse (the "router") sends each patient (token) to just 8 of them. Compute-wise, this Sparse Mixture-of-Experts setup is cheap—only 8 doctors work at a time. Memory-wise, it’s a headache: you still have to pay rent for an office big enough to house all 64 doctors simultaneously.

For modern fine-grained MoE models (like DeepSeek-MoE or OLMoE), loading dozens of experts per layer creates a massive GPU memory bottleneck. Offloading inactive experts to CPU memory or disk ruins latency. Meanwhile, existing compression methods fall into two flawed camps:

  1. Expert Pruning: Simply firing the least-busy doctors. This causes irreversible brain drain and steep performance drops.
  2. Expert Merging: Forcing several doctors to combine into one generalist. This flattens representational diversity and often requires expensive retraining to recover lost skill.

The authors ask a refreshingly simple question: What if we replace less critical experts with lightweight, parameter-efficient modules and gently coach them back up to speed?

Methods

LightMoE formalizes a new paradigm called expert replacing using a three-stage pipeline that accounts for where knowledge lives and how models adapt during training:

The LightMoE workflow: scoring and selecting less critical experts, grouping them by routing similarity, and replacing each group with a shared base plus lightweight low-rank adapters.
  1. Adaptive Expert Selection: Not all experts—or layers—are created equal. LightMoE runs a small calibration set ($2^{17}$ tokens) through the model to measure each expert's cumulative router gating score (intra-layer importance) and each layer's average router output norm (inter-layer importance). Because deeper layers produce stronger router norms and prove more critical, LightMoE sets a dynamic threshold that compresses shallow layers aggressively while treating deep layers conservatively.
  2. Hierarchical Expert Construction: Selected "less important" experts aren't discarded or naively replaced with blank adapters. Instead, they are clustered into groups based on cosine similarity of their routing vectors. Each group is merged via a weighted average into a shared full-rank base ($W_{\text{share}}$) to capture common foundational knowledge, while each individual expert gets its own tiny Low-Rank Adaptation (LoRA) matrix ($B A$) to preserve its unique quirks.
  3. Annealed Expert Replacement: Ripping out original weights all at once shocks the optimization trajectory during fine-tuning. LightMoE introduces an annealing factor $\beta$ that linearly decays from $1$ to $0$ early in training (typically the first 10%–20% of steps), smoothly cross-fading from the original expert to the new hierarchical module before discarding the original weights for deployment.

Datasets

The authors evaluate LightMoE on the OLMoE-1B-7B-SFT backbone (64 experts per layer) across two customization scenarios, introducing no new benchmarks:

  • Capability Preservation: Math (trained on MetaMathQA, evaluated on GSM8K), Coding (trained on CodeFeedback, evaluated on HumanEval), and Commonsense Reasoning (trained on Cleaned Alpaca, evaluated across 8 standard benchmarks including ARC, BoolQ, PIQA, and WinoGrande).
  • Unfamiliar Task Adaptation: Intent recognition (BDCI-21 Smart HCI NLU Challenge) and low-resource Cherokee-to-English translation (ChrEn, scored via GPT-4).

Key Insights and Ideas

  • "Inactive" experts aren't useless: Naive baselines that directly swap infrequent experts with fresh LoRA modules do surprisingly well at low compression, rivaling complex merging methods. Yet at 50% compression, their performance nosedives—proving that rarely called experts still hold foundational knowledge that pure fine-tuning can't easily rebuild from scratch.
  • Deeper MoE layers carry heavier weight: By tracking router output norms across depth, the authors noticed norms steadily climb in later layers. Protecting deeper layers while trimming shallower ones gives an immediate accuracy boost over uniform layer compression.
  • Smaller adapter ranks win at high compression: Counterintuitively, using smaller LoRA ranks (like 8 or 16 instead of 64) inside replaced experts yields better accuracy at 40%–50% compression, suggesting tight low-rank bottlenecks regularize the specialization on top of the shared base.

Key Results

LightMoE shines brightest when pushed into aggressive compression territory:

Figure 1: Performance comparison across different compression ratios on the Math task. While the directly replacing strategy performs comparably to MC-SMoE, both suffer from significant performance degra- dation, particularly at higher ratios
  • Accuracy: At a 30% compression ratio, LightMoE averages 55.3 across all five tasks, virtually matching uncompressed LoRA fine-tuning (55.5) and beating it on Coding and Intent Recognition. At 50% compression, LightMoE scores 48.1 on average—outperforming existing compression baselines by 5.6% and direct replacement by 3.8%. On Math (GSM8K), it retains 94% of uncompressed LoRA's performance with half the model gone.
  • Cross-Task Generalization: When compressed by 50% on Math data and tested zero-shot on Coding, competing methods collapse (scoring 0.0 to 6.3 on HumanEval), whereas LightMoE scores 37.7, proving it preserves general backbone capabilities.
  • Memory & Training Efficiency: At 50% compression, total parameters drop from 6.92B to 3.47B, cutting inference GPU memory nearly in half (12.89 GB to 6.63 GB) while keeping latency steady (~8.01 ms/token). Compared to full MC-SMoE*, LightMoE slashes peak training memory from 77.83 GB to 56.60 GB and more than halves end-to-end training costs.

Limitations and Future Work

LightMoE's expert selection depends on routing statistics gathered from a small validation/calibration subset, which might not mirror messy, shifting real-world traffic. Additionally, all experiments were confined to text-based language tasks. Looking ahead, the authors point toward smarter initialization schemes for the replacement modules and dynamic, per-expert rank allocation to squeeze even more mileage out of expert replacing.

Summary updated

Abstract

Mixture-of-Experts (MoE) based Large Language Models (LLMs) have demonstrated impressive performance and computational efficiency. However, their deployment is often constrained by substantial memory demands, primarily due to the need to load numerous expert modules. While existing expert compression techniques like pruning or merging attempt to mitigate this, they often suffer from irreversible knowledge loss or high training overhead. In this paper, we propose a novel expert compression paradigm termed expert replacing, which replaces redundant experts with parameter-efficient modules and recovers their capabilities with low training costs. We find that even a straightforward baseline of this paradigm yields promising performance. Building on this foundation, we introduce LightMoE, a framework that enhances the paradigm by introducing adaptive expert selection, hierarchical expert construction, and an annealed recovery strategy. Experimental results show that LightMoE matches the performance of LoRA fine-tuning at a 30% compression ratio. Even under a more aggressive 50% compression rate, it outperforms existing methods and achieves average performance improvements of 5.6% across five diverse tasks. These findings demonstrate that LightMoE strikes a superior balance among memory efficiency, training efficiency, and model performance.
BibTeX
@inproceedings{hao2026lightmoe,
  author = {Jiawei Hao and Zhiwei Hao and Jianyuan Guo and Li Shen and Yong Luo and Han Hu and Dan Zeng},
  title = {{LightMoE: Reducing Mixture-of-Experts Redundancy through Expert Replacing}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=2khLPBzsDi},
}
Figure