arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2203.01104cs.CLcs.AIcs.LGquant-ph
收藏

参数有效的混合专家模型结构用于预训练语言模型

Parameter-Efficient Mixture-of-Experts Architecture for Pre-trained Language Models

Renmin University of China(中国人民大学);Beijing Academy of Artificial Intelligence(北京智源人工智能研究院)

Ze-Feng Gao, Peiyu Liu, Wayne Xin Zhao, Zhong-Yi Lu, Ji-Rong Wen

摘要:

近年来,专家混合(Mixture-of-Experts,简称MoE)体系结构在提高大规模语言模型的模型容量方面取得了显著的成功。然而,MoE需要包含比正在扩展的基础模型多得多的参数。在本文中,我们建议建立一个参数有效的MoE架构,通过共享专家之间的信息。我们采用矩阵乘积算子(MPO,量子多体物理学中的张量分解)重构专家层的参数矩阵,并通过在不同专家之间共享中心张量(包含核心信息)的参数,同时通过不同专家的辅助张量(补充中心张量)实现特异性,从而提高预训练语言模型的模型容量。为了解决不平衡的优化问题,我们进一步设计了梯度掩模策略的MPO为基础的MoE架构。基于T5和GPT-2的大量实验表明,预训练语言模型的性能和效率得到了提高(与Switch Transformers相比,总参数减少了27.2倍,模型性能优越)。我们的代码可在https://github.com/RUCAIBox/MPOE上公开获取。

英文摘要:

Recently, Mixture-of-Experts (short as MoE) architecture has achieved remarkable success in increasing the model capacity of large-scale language models. However, MoE requires incorporating significantly more parameters than the base model being extended. In this paper, we propose building a parameter-efficient MoE architecture by sharing information among experts. We adopt the matrix product operator (MPO, a tensor decomposition from quantum many-body physics) to reconstruct the parameter matrix in the expert layer and increase model capacity for pre-trained language models by sharing parameters of the central tensor (containing the core information) among different experts while enabling the specificity through the auxiliary tensors (complementing the central tensor) of different experts. To address the unbalanced optimization issue, we further design the gradient mask strategy for the MPO-based MoE architecture. Extensive experiments based on T5 and GPT-2 show improved performance and efficiency of the pre-trained language model (27.2x reduction in total parameters for the superior model performance, compared with the Switch Transformers). Our code is publicly available at https://github.com/RUCAIBox/MPOE.

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

↑