近年来,混合专家(Mixture of Experts, MoE)Transformer因在模型容量和计算效率上的优势获得越来越多的关注。但已有研究表明,MoE Transformer在诸多下游任务上的表现弱于普通Transformer,这大幅降低了MoE模型的实用价值。为解释该问题,我们提出模型的预训练性能与迁移能力是其下游任务性能的共同决定因素;与普通模型相比,MoE模型的迁移能力更差,进而导致其下游任务表现不佳。为解决该问题,我们提出迁移能力蒸馏的概念,指出尽管普通模型性能较弱,但可作为迁移能力的有效教师模型;经普通模型引导的MoE模型可同时具备优秀的预训练性能与迁移能力,最终提升其下游任务表现。我们设计了具体的蒸馏方法,并在BERT架构上开展实验。实验结果显示MoE模型的下游性能获得显著提升,大量进一步证据也有力支撑了迁移能力蒸馏的概念。最后,我们尝试对迁移能力蒸馏进行解释,并从模型特征视角给出了若干见解。
英文摘要:
Recently, Mixture of Experts (MoE) Transformers have garnered increasing attention due to their advantages in model capacity and computational efficiency. However, studies have indicated that MoE Transformers underperform vanilla Transformers in many downstream tasks, significantly diminishing the practical value of MoE models. To explain this issue, we propose that the pre-training performance and transfer capability of a model are joint determinants of its downstream task performance. MoE models, in comparison to vanilla models, have poorer transfer capability, leading to their subpar performance in downstream tasks. To address this issue, we introduce the concept of transfer capability distillation, positing that although vanilla models have weaker performance, they are effective teachers of transfer capability. The MoE models guided by vanilla models can achieve both strong pre-training performance and transfer capability, ultimately enhancing their performance in downstream tasks. We design a specific distillation method and conduct experiments on the BERT architecture. Experimental results show a significant improvement in downstream performance of MoE models, and many further evidences also strongly support the concept of transfer capability distillation. Finally, we attempt to interpret transfer capability distillation and provide some insights from the perspective of model feature.
Merging Experts into One: Improving Computational Efficiency of Mixture of Experts
University of Maryland, College Park(马里兰大学帕克分校);The University of Sydney(悉尼大学);University of Chinese Academy of Sciences(中国科学院大学);JD Explore Academy(京东探索研究院)
SLIM: Let LLM Learn More and Forget Less with Soft LoRA and Identity Mixture
Inspur Genersoft Co. Ltd.(浪潮 Genersoft 有限公司);Inspur Group Co. Ltd.(浪潮集团有限公司);Interactive Entertainment Group, Tencent Inc(腾讯公司互动娱乐集团);Nanjing University of Information Science and Technology(南京信息工程大学);Northeastern University(东北大学)
OMoE: Diversifying Mixture of Low-Rank Adaptation by Orthogonal Finetuning
Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);The Key Laboratory of Cognition and Decision Intelligence for Complex Systems, Institute of Automation, Chinese Academy of Sciences(复杂系统认知与决策智能重点实验室);School of Artificial Intelligence, University of Chinese Academy of Sciences(中国科学院大学人工智能学院)
Mixture-of-Experts Meets Instruction Tuning:A Winning Combination for Large Language Models
Google(谷歌);University of California, Berkeley(加州大学伯克利分校);Massachusetts Institute of Technology(麻省理工学院);University of Massachusetts Amherst(马萨诸塞大学阿默斯特分校);The University of Texas at Austin(得克萨斯大学奥斯汀分校)
Multi-level context Modeling for consistent expert selection in Mixture-of-Experts
Tsinghua Shenzhen International Graduate School, Tsinghua University(清华大学深圳国际研究生院);School of AI, The Chinese University of Hong Kong (Shenzhen)(香港中文大学(深圳)人工智能学院)
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(清华大学)
ChartMoE: Mixture of Diversely Aligned Expert Connector for Chart Understanding
International Digital Economy Academy(国际数字经济学院);Tsinghua University(清华大学);Peking University(北京大学);Hong Kong University of Science and Technology (Guangzhou)(香港科技大学(广州))
School of Electronic and Electrical Engineering, Shanghai University of Engineering Science(电子电气工程学院,上海工程技术大学);Key Laboratory of Computational Neuroscience and Brain-Inspired Intelligence, Fudan University(计算神经科学与脑启发智能重点实验室,复旦大学)
MoPE: Mixture of Prompt Experts for Parameter-Efficient and Scalable Multimodal Fusion
Department of Computing, The Hong Kong Polytechnic University(计算系,香港理工大学);Research Institute of Multiple Agents and Embodied Intelligence, Pengcheng Laboratory(多智能体与具身智能研究院,鹏城实验室)
MoPD: Mixture-of-Prompts Distillation for Vision-Language Models
Department of Computer Science and Engineering, Southern University of Science and Technology(计算机科学与工程系,南方科技大学);School of Mathematical and Computer Sciences, University of Adelaide(数学与计算机科学学院,阿德莱德大学)