arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.16077cs.LGcs.CL
收藏

CartesianMoE:通过混合专家模型中的笛卡尔积路由促进专家间知识共享

CartesianMoE: Boosting Knowledge Sharing among Experts via Cartesian Product Routing in Mixture-of-Experts

Institute of Information Engineering, Chinese Academy of Sciences(中国科学院信息工程研究所);University of Chinese Academy of Sciences(中国科学院大学);Tsinghua University(清华大学)

Zhenpeng Su, Xing Wu, Zijia Lin, Yizhe Xiong, Minxuan Lv, Guangyuan Ma, Hui Chen, Songlin Hu, Guiguang Ding

AI总结:

针对 MoE 专家知识共享不足且性能依赖路由准确性的问题,本文提出 CartesianMoE,借鉴集体矩阵分解以笛卡尔积式“乘法”路由增强共享,并在困惑度、下游任务和路由鲁棒性上优于已有 MoE。

摘要:

近来,大语言模型(LLM)因其在各类下游任务中的卓越表现而受到社区广泛关注。根据著名的扩展定律,扩大稠密 LLM 的规模可以增强其能力,但也会显著增加计算复杂度。混合专家(MoE)模型通过允许模型规模增长而不显著提高训练或推理成本来解决这一问题。然而,MoE 模型在专家间知识共享方面面临挑战,使其性能在某种程度上对路由准确性较为敏感。为解决该问题,先前工作引入了共享专家,并以“加法”方式将其输出与 top K 路由专家的输出相结合。本文受用于学习数据间共享知识的集体矩阵分解启发,提出 CartesianMoE,以更接近“乘法”的方式在专家间实现更有效的知识共享。大量实验结果表明,在构建 LLM 时,CartesianMoE 在困惑度和下游任务性能两方面均优于先前的 MoE 模型。我们还发现 CartesianMoE 实现了更好的专家路由鲁棒性。

英文摘要:

Large language models (LLM) have been attracting much attention from the community recently, due to their remarkable performance in all kinds of downstream tasks. According to the well-known scaling law, scaling up a dense LLM enhances its capabilities, but also significantly increases the computational complexity. Mixture-of-Experts (MoE) models address that by allowing the model size to grow without substantially raising training or inference costs. Yet MoE models face challenges regarding knowledge sharing among experts, making their performance somehow sensitive to routing accuracy. To tackle that, previous works introduced shared experts and combined their outputs with those of the top $K$ routed experts in an ``addition'' manner. In this paper, inspired by collective matrix factorization to learn shared knowledge among data, we propose CartesianMoE, which implements more effective knowledge sharing among experts in more like a ``multiplication'' manner. Extensive experimental results indicate that CartesianMoE outperforms previous MoE models for building LLMs, in terms of both perplexity and downstream task performance. And we also find that CartesianMoE achieves better expert routing robustness.

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

↑