FlexMoE: One-for-All Nested Intra-Expert Pruning for MoE Language Models

Fan Mo, Yuxuan Han, Geng Zhang, Wangbo Zhao, Yang You
6/26/2026
cs.LG
moequantization-pruning

No confident code implementation found for this paper.

Abstract

Mixture-of-Experts (MoE) language models scale model ability with sparsely activated experts, making this architecture a standard recipe for modern large models. However, sparse activation does not remove the deployment burden of storing and serving all experts, and the available deployment budget can vary substantially across devices, users, and workloads.

Show full abstract

Existing MoE compression methods are still largely fixed-budget, typically optimizing one compressed endpoint at each chosen target budget. We study a different setting: converting a large pretrained MoE LLM into a nested family of deployable subnetworks across budgets. Our method first ranks expert FFN channels by their importance, then lets each expert learn a discrete action to prune its channels. By gradually increasing cost pressure, a single action-training run exports a series of action masks from high to low budgets, each of which identifies a reliable smaller subnetwork nested in the ranked base model. Moreover, we use a single recovery fine-tune at a mid pruning budget (40%) to recover degraded model quality and transfer the recovered model to other unseen budgets. Overall, our framework surpasses recent MoE compression baselines. Specifically, on Qwen2-57B-A14B, our method retains ~99.8% of base performance while pruning 50% of routed expert parameters even without fine-tuning. For deployment, our pruned subnetworks deliver real memory reduction and throughput gains, and further support realtime online budget switching with kernel-level co-design.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{mo2026flexmoe,
  title  = {FlexMoE: One-for-All Nested Intra-Expert Pruning for MoE Language Models},
  author = {Fan Mo and Yuxuan Han and Geng Zhang and Wangbo Zhao and Yang You},
  year   = {2026},
  eprint = {2606.27866},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.27866v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2606.27866.svg)](https://codeofpaper.com/paper/2606.27866)

Discussion