剪枝与蒸馏混合专家模型为稠密语言模型
Pruning and Distilling Mixture-of-Experts into Dense Language Models
Pruning and Distilling Mixture-of-Experts into Dense Language Models
@misc{kim2026pruning,
title = {Pruning and Distilling Mixture-of-Experts into Dense Language Models},
author = {Junhyuck Kim and Jihun Yun and Haechan Kim and Gyeongman Kim and Joonghyun Bae and Jaewoong Cho},
year = {2026},
eprint = {2605.28207},
archivePrefix = {arXiv},
primaryClass = {cs.CL},
url = {https://arxiv.org/abs/2605.28207}
}
Kim, J., Yun, J., Kim, H., Kim, G., Bae, J., & Cho, J. (2026). Pruning and Distilling Mixture-of-Experts into Dense Language Models [Preprint]. arXiv. https://doi.org/10.48550/arXiv.2605.28207
KIM J, YUN J, KIM H, et al. Pruning and Distilling Mixture-of-Experts into Dense Language Models[EB/OL]. (2026-05-27)[2026-11-29]. https://arxiv.org/abs/2605.28207.
摘要
混合专家(MoE)架构已成为前沿语言模型的主导范式,但其要求将所有专家参数加载至内存,导致其在内存受限的部署场景中吸引力下降。现有的压缩方法虽减少了专家数量,但输出仍为 MoE 模型,保留了这一根本性局限。我们提出了首个将训练好的 MoE 模型系统性地转换为标准全稠密架构的框架:对专家进行评分、筛选与分组,随后将其拼接为稠密前馈神经网络(FFN),并通过从 MoE 教师模型的知识蒸馏进行优化。我们在 Qwen3-30B-A3B 模型上评估了 7 种评分方法、5 种分组方法及 2 种幅度缩放方法,在多种专家数量配置下生成了 350 种组合。研究发现,评分方法的选择影响最为显著,我们提出的新颖多样性感知评分方法在 Qwen3-30B-A3B、DeepSeek-V2-Lite 和 GPT-OSS-20B 模型上均优于先前方法。在参数数量匹配的控制性对比中,MoE 转稠密方法在约 40 亿 token 的知识蒸馏后,训练墙钟速度提升 1.6 倍,且平均下游任务准确率较稠密转稠密剪枝方法高出 6.3 个百分点。
Mixture-of-Experts (MoE) is now the dominant architecture for frontier language models, yet it requires all expert parameters to be loaded in memory, making it less preferable for memory-constrained deployment. Existing compression methods reduce the number of experts but the output remains an MoE model with the same fundamental limitation. We present the first systematic framework for converting a trained MoE into a standard fully dense architecture: experts are scored, selected, and grouped, then concatenated into a dense FFN and refined by knowledge distillation from the MoE teacher. We evaluate 7 scoring, 5 grouping, and 2 magnitude scaling methods across a range of selected expert counts on Qwen3-30B-A3B, yielding 350 configurations. We find that the choice of scoring method is the most impactful, with our novel diversity-aware scoring consistently outperforming prior methods on Qwen3-30B-A3B, DeepSeek-V2-Lite, and GPT-OSS-20B. Under a controlled comparison at matched parameter count, MoE-to-dense outperforms dense-to-dense pruning by +6.3 pp in average downstream accuracy after 4B-token distillation at 1.6x faster training wall-clock speed.