arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.02345cs.CLcs.AIcs.DCcs.LGcs.NE
收藏

打破MoE大语言模型三重困境:动态专家聚类与结构压缩

Breaking the MoE LLM Trilemma: Dynamic Expert Clustering with Structured Compression

Guangzhou University(广州大学);Institue of Automation Chinese Academy of Sciences(中国科学院自动化研究所);ByteDance Inc.(字节跳动公司);University of Science and Technology Beijing(北京科技大学)

Peijun Zhu, Ning Yang, Baoliang Tian, Jiayu Wei, Weihao Zhang, Haijun Zhang, Pin Lv

AI总结:

本文提出动态专家聚类与结构压缩框架,通过参数分解和分层路由策略,显著提升MoE大语言模型的效率和内存利用率。

摘要:

混合专家(MoE)大语言模型(LLMs)面临负载不均衡、参数冗余和通信开销的三重困境。我们介绍了一个基于动态专家聚类和结构压缩的统一框架,以解决这些问题。我们的方法采用一种在线聚类过程,通过参数和激活相似性的融合度量定期重新分组专家,这稳定了专家的使用。据我们所知,这是首个利用路由器的语义嵌入能力,在训练过程中动态重新配置模型架构以获得显著效率提升的框架之一。在每个聚类中,我们将专家权重分解为一个共享基矩阵和极低秩残差适配器,每组实现多达五倍的参数减少,同时保持专业性。这种结构使我们能够采用两阶段分层路由策略:令牌首先被分配到一个聚类,然后分配到其中的特定专家,大大减少了路由搜索空间和全对全通信的体积。此外,一种异构精度方案,将共享基存储在FP16中,残差因子存储在INT4中,结合动态卸载不活跃的聚类,将峰值内存消耗降低到与密集模型相当的水平。在GLUE和WikiText-103上评估,我们的框架在质量上与标准MoE模型相当,总参数减少约80%,吞吐量提高10%至20%,专家负载方差降低超过三倍。我们的工作表明,结构重组是实现可扩展、高效和内存有效的MoE LLMs的原理性路径。代码可在https://github.com/szdtzpj/Breaking_the_moe_trilemma获取。

英文摘要:

Mixture-of-Experts (MoE) Large Language Models (LLMs) face a trilemma of load imbalance, parameter redundancy, and communication overhead. We introduce a unified framework based on dynamic expert clustering and structured compression to address these issues cohesively. Our method employs an online clustering procedure that periodically regroups experts using a fused metric of parameter and activation similarity, which stabilizes expert utilization. To our knowledge, this is one of the first frameworks to leverage the semantic embedding capability of the router to dynamically reconfigure the model's architecture during training for substantial efficiency gains. Within each cluster, we decompose expert weights into a shared base matrix and extremely low-rank residual adapters, achieving up to fivefold parameter reduction per group while preserving specialization. This structure enables a two-stage hierarchical routing strategy: tokens are first assigned to a cluster, then to specific experts within it, drastically reducing the routing search space and the volume of all-to-all communication. Furthermore, a heterogeneous precision scheme, which stores shared bases in FP16 and residual factors in INT4, coupled with dynamic offloading of inactive clusters, reduces peak memory consumption to levels comparable to dense models. Evaluated on GLUE and WikiText-103, our framework matches the quality of standard MoE models while reducing total parameters by approximately 80%, improving throughput by 10% to 20%, and lowering expert load variance by a factor of over three. Our work demonstrates that structural reorganization is a principled path toward scalable, efficient, and memory-effective MoE LLMs. Code is available at https://github.com/szdtzpj/Breaking_the_moe_trilemma

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

↑