FlexMoE:面向灵活MoE部署的一次性多预算专家剪枝框架
FlexMoE: Learning One-for-All Multi-Budget Expert Pruning for Flexible MoE Deployment
FlexMoE 是一个训练后一次性框架,可将大型预训练 MoE 模型转换为适配多预算的可部署子网络族,单次动作训练即可产出跨预算的剪枝掩码。在 Qwen2-57B-A14B 上,它剪掉 50% routed-expert 参数仍保留约 99.8% 基座性能,且无需恢复微调。剪枝子网络带来实际内存下降与端到端吞吐提升,内核协同设计支持运行时切换预算而无需重载 checkpoint。
arXiv:2606.27866v2 Announce Type: replace Abstract: Mixture-of-Experts (MoE) language models scale model capacity through sparse expert activation, yet deployment still requires storing and serving all experts. Moreover, deployment budgets can vary substantially across devices, users, and workloads. Existing MoE compression methods typically optimize a separate compressed model for each target budget. We introduce FlexMoE, a post-training one-for-all framework that converts a large pretrained MoE model into a multi-budget family of smaller deployable subnetworks. FlexMoE first ranks expert FFN channels by importance to construct a sliceable weight space shared across budgets, and then learns expert-wise discrete retention actions under gradually increasing cost pressure, allowing a single action-training run to produce reliable pruning masks across budgets. Moreover, only a single mid-budget fine-tune can further recover degraded performance and yields a shared recovered model that transfers to other unseen budgets, avoiding repeated per-budget recovery and separated checkpoint storage. Across tested MoE LLMs with diverse architectures and scales, FlexMoE consistently outperforms strong MoE compression baselines. In particular, on Qwen2-57B-A14B, it retains ~99.8% of base performance while pruning 50% of routed-expert parameters even without recovery fine-tuning. For deployment, pruned subnetworks deliver real memory reduction and end-to-end throughput gains, while our kernel co-design enables runtime budget switching without checkpoint reloading and delivers substantial inference acceleration.
来源:arXiv (AI + Vision + Imaging) · arxiv.org