arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2504.07807cs.CL
收藏

面向混合专家大语言模型的聚类驱动专家剪枝

Cluster-Driven Expert Pruning for Mixture-of-Experts Large Language Models

Beihang University(北京航空航天大学);University of Washington(华盛顿大学);Nanyang Technological University(南洋理工大学);Xiaohongshu Inc.(小红书公司);Tsinghua University(清华大学)

Hongcheng Guo, Juntao Yao, Boyang Wang, Junjia Du, Shaosheng Cao, Donglin Di, Shun Zhang, Zhoujun Li

AI总结:

针对MoE大模型专家冗余问题,提出两阶段聚类驱动剪枝框架C-Prune,先层内聚类再全局剪枝,实验证明其优于现有方法。

摘要:

混合专家(MoE)架构已成为通过任务特定专家的稀疏激活来扩展大语言模型(LLM)的一种有前景的范式。尽管其在推理过程中具有计算效率,但MoE模型(例如GPT-4)庞大的总体参数规模给实际部署带来了关键挑战。当前的剪枝方法通常未能解决MoE系统的两个固有特征:1)层内专家同质性,即同一MoE层内的专家表现出功能冗余;2)层间相似性模式,即较深的层往往包含逐渐更加同质化的专家。为了解决这些问题,我们提出了聚类驱动专家剪枝(C-Prune),这是一个用于MoE LLM自适应任务特定压缩的新型两阶段框架。C-Prune通过逐层专家聚类进行操作,利用参数相似性度量将每个MoE层内功能相似的专家分组,随后进行全局聚类剪枝,通过一个统一的、考虑跨层同质性的重要性评分机制,消除所有层中的冗余聚类。我们在多个MoE模型和基准上通过大量实验验证了C-Prune。结果表明,C-Prune在有效减小模型规模的同时,优于现有的MoE剪枝方法。

英文摘要:

Mixture-of-Experts (MoE) architectures have emerged as a promising paradigm for scaling large language models (LLMs) with sparse activation of task-specific experts. Despite their computational efficiency during inference, the massive overall parameter footprint of MoE models (e.g., GPT-4) introduces critical challenges for practical deployment. Current pruning approaches often fail to address two inherent characteristics of MoE systems: 1).intra-layer expert homogeneity where experts within the same MoE layer exhibit functional redundancy, and 2). inter-layer similarity patterns where deeper layers tend to contain progressively more homogeneous experts. To tackle these issues, we propose Cluster-driven Expert Pruning (C-Prune), a novel two-stage framework for adaptive task-specific compression of MoE LLMs. C-Prune operates through layer-wise expert clustering, which groups functionally similar experts within each MoE layer using parameter similarity metrics, followed by global cluster pruning, which eliminates redundant clusters across all layers through a unified importance scoring mechanism that accounts for cross-layer homogeneity. We validate C-Prune through extensive experiments on multiple MoE models and benchmarks. The results demonstrate that C-Prune effectively reduces model size while outperforming existing MoE pruning methods.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑