Recently, inspired by the concept of sparsity, Mixture-of-Experts (MoE) models have gained increasing popularity for scaling model size while keeping the number of activated parameters constant. In this study, we thoroughly investigate the sparsity of the dense LLaMA model by constructing MoE for both the attention (i.e., Attention MoE) and MLP (i.e., MLP MoE) modules in the transformer blocks. Specifically, we investigate different expert construction methods and granularities under the same activation conditions to analyze the impact of sparsifying the model. Additionally, to comprehensively evaluate the model's capabilities across various domains (e.g., conversation, code, math) after sparsification, we apply sparsity to the instructed large language models (LLMs) and construct instructed MoE models. To counteract the performance degradation resulting from increased sparsity, we design a two-stage post-training strategy to enhance model performance. Experiments on the LLaMA3 model demonstrate the potential effectiveness of this approach for future developments of instructed MoE models. The source codes and models are available at: \url{https://github.com/OpenSparseLLMs/LLaMA-MoE-v2}.
LLaMA-MoE: Building Mixture-of-Experts from LLaMA with Continual Pre-training
Soochow University(苏州大学);Shanghai AI Laboratory(上海人工智能实验室);Shanghai Jiao Tong University(上海交通大学);Fudan University(复旦大学);The Chinese University of Hong Kong(香港中文大学)
DIVE into MoE: Diversity-Enhanced Reconstruction of Large Language Models from Dense into Mixture-of-Experts
Institute of Information Engineering, Chinese Academy of Sciences(中国科学院信息工程研究所);School of Cyber Security, University of Chinese Academy of Sciences(中国科学院大学网络空间安全学院)
ExpertWeaver: Unlocking the Inherent MoE in Dense LLMs with GLU Activation Patterns
Zhejiang University(浙江大学);Shanghai AI Laboratory(上海人工智能实验室);Shanghai Innovation Institute(上海创新研究院);Fudan University(复旦大学);Chinese University of Hong Kong(中国香港大学)
Pruning via Causal Attribution Preserves Reasoning Performance in Large Language Models
Edison Academy Magnet School(爱迪生学院磁石学校);Massachusetts Institute of Technology(麻省理工学院);State University of New York College at Plattsburgh(纽约州立大学普拉茨堡学院);The University of Texas at Austin(德克萨斯大学奥斯汀分校);Independent Researcher(独立研究员)
Efficient Shapley Value-based Non-Uniform Pruning of Large Language Models
College of Computing and Data Science(计算与数据科学学院);Nanyang Technological University(南洋理工大学);School of Software(软件学院);Shandong University(山东大学);Department of Electrical and Computer Engineering(电气与计算机工程系);The University of British Columbia(不列颠哥伦比亚大学)
BESA: Pruning Large Language Models with Blockwise Parameter-Efficient Sparsity Allocation
The University of Hong Kong(香港大学);OpenGVLab, Shanghai AI Laboratory(上海人工智能实验室开放智能研究院);Simon Fraser University(西蒙菲莎大学);Southern University of Science and Technology(南方科技大学)
MoEfication: Transformer Feed-forward Layers are Mixtures of Experts
Tsinghua University(清华大学);Beijing National Research Center for Information Science and Technology(北京信息科学与技术国家研究中心);Tencent Inc(腾讯公司);International Innovation Center of Tsinghua University(清华大学国际创新中心);Institute for AI Industry Research (AIR), Tsinghua University(清华大学人工智能产业研究院(AIR));Beijing Academy of Artificial Intelligence(北京人工智能研究院);Jiangsu Collaborative Innovation Center for Language Ability(江苏语言能力协同创新中心)
SpeechMoE: Scaling to Large Acoustic Models with Dynamic Routing Mixture of Experts
Tencent AI Lab(腾讯人工智能实验室)
近年来,基于Transformer的混合专家算法(Mixture of Experts,MoE)在许多领域都取得了可喜的成果。这在很大程度上是由于该架构的以下优点:首先,基于MoE的Transformer可以增加模型容量,而不会增加训练和推理时的计算成本。此外,基于MoE的Transformer是一种动态网络,可以适应实际应用中输入实例复杂性的变化。在这项工作中,我们探讨了基于MoE的语音识别模型,命名为Speech MoE。为了进一步控制路由器激活的稀疏性,提高门值的多样性,我们分别提出了稀疏性L1损失和平均重要性损失。此外,一个新的路由器架构中使用的语音MoE,它可以同时利用信息从一个共享的嵌入式网络和不同的MoE层的分层表示。实验结果表明,与传统静态网络相比,SpeechMoE在计算成本相当的情况下,可以获得更低的字符出错率(CER),在四个评估数据集上的CER相对改善为7.0%-23.0%。