FlexMoE: One-for-All Nested Intra-Expert Pruning for MoE Language Models
Fan Mo, Han Yuxuan, Geng Zhang, Wangbo Zhao, Yang You
NeurIPS page · OpenReview · Open on the map
Category: Efficient LLM Inference & Training › Mixture-of-Experts Optimization · Type: new method · Keywords: Mixture-of-Experts pruning, nested subnetworks, budget-aware deployment, model compression, LLM inference optimization
Areas: Model Architectures & Sequence Modeling › Language Model Architectures › Mixture of Experts Optimizations
Summary
FlexMoE introduces a nested intra-expert pruning method that creates deployable subnetworks across varying budgets while preserving near-full performance.
Explained to a 5-year-old
FlexMoE is a trick that helps big language models become smaller. It looks at each part of the model and decides which pieces can be removed. By doing this, it makes several versions of the model that work on different devices. The smaller versions still understand language almost as well as the big one. This helps phones and computers run language helpers without using too much memory.
Explained to a 5-year-old, longer
Big language models are like super-smart robots that read and write text. They have many tiny helpers called experts that turn on only when needed. Even though only a few experts are used at a time, all of them must be stored in memory. This makes it hard to run these models on small devices like phones. FlexMoE is a new idea that lets the model learn which helpers are most important. It ranks the helpers so the most useful ones stay and the less useful ones can be removed. By training the model to choose different sets of helpers, it can create many smaller versions. These smaller versions are nested, meaning each one is a trimmed-down copy of the previous one. A single training step creates masks that decide which helpers to keep for different budgets. After training, a quick fine-tuning step at a medium budget restores the quality of the model. The restored model can then be used on devices with less memory while still performing well.
For a technical reader
FlexMoE provides a unified training pipeline that learns discrete pruning actions for each expert’s feed-forward channels, enabling the generation of nested subnetworks for multiple deployment budgets. By applying a gradual cost pressure, a single forward pass yields action masks that define progressively smaller models. A mid-budget recovery fine-tuning step restores performance and allows transfer to unseen budgets. The resulting pruned models achieve significant memory reduction, higher throughput, and support real-time budget switching on hardware.
Problem
Deploying large MoE language models is costly because all experts must be stored and served, even though only a subset is used at inference. Existing compression methods assume a fixed budget and cannot produce nested subnetworks that work across multiple deployment budgets.
Method
The approach ranks expert feed-forward network channels by importance, trains each expert to learn discrete pruning actions, and gradually increases cost pressure to export nested action masks for different budgets. A single recovery fine-tuning at a mid pruning budget is used to restore quality and transfer the model to unseen budgets.
Results
The approach retains about 99.8% of base performance while pruning half of the expert parameters without fine-tuning, and the resulting subnetworks achieve memory savings and throughput improvements, enabling real-time budget switching.
Contributions
It proposes a method to generate nested, budget-aware subnetworks for MoE models and demonstrates that a single recovery fine-tuning can transfer performance across unseen budgets. The work also shows real memory and speed gains for deployment with dynamic budget switching.
Practical relevance
The method enables flexible, cost-aware deployment of large language models on devices with varying resources, reducing memory usage and improving inference speed.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction