arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2310.09762cs.CLcs.AI
收藏

利用正交优化器实现语言模型专家混合表示的多样化

Diversifying the Mixture-of-Experts Representation for Language Models with Orthogonal Optimizer

Hong Kong Polytechnic University(香港理工大学);School of Computer Science, Wuhan University(武汉大学计算机学院);The University of Sydney(悉尼大学);Sun Yat-sen University(中山大学);Tencent IEG(腾讯互动娱乐事业群);Nanyang Technological University(南洋理工大学)

Boan Liu, Liang Ding, Li Shen, Keqin Peng, Yu Cao, Dazhao Cheng, Dacheng Tao

AI总结:

针对专家混合模型中专家表示同质化问题,提出正交专家优化器OMoE及交替训练策略,通过增强表示多样性和专家交互,在多个基准任务上显著提升微调性能。

摘要:

专家混合(MoE)已成为深度学习中一项极为成功的技术,其基于分而治之的原则,在不显著增加额外计算成本的情况下最大化模型容量。即使在大规模语言模型(LLMs)时代,MoE 仍然发挥着至关重要的作用,一些研究者指出 GPT-4 采用了 MoE 结构以确保多样化的推理结果。然而,MoE 容易受到性能退化的影响,尤其体现在专家之间表示不平衡和同质化的问题上。以往的研究广泛探讨了不平衡问题,但同质化表示的挑战仍未得到解决。在本研究中,我们揭示了同质化表示问题,即 MoE 中的专家未能实现专业化并缺乏多样性,导致它们的表示具有令人沮丧的高相似性(在一个表现良好的 MoE 模型中高达 99%)。该问题限制了 MoE 的表达能力,并且我们认为这违背了其初衷。为了解决这一问题,我们提出了一种简单而高效的解决方案:OMoE,一种正交专家优化器。此外,我们引入了一种交替训练策略,鼓励每个专家沿着与其他专家所张成的子空间正交的方向进行更新。我们的算法通过两种关键方式促进 MoE 训练:首先,它显式地增强了表示的多样性;其次,它在正交权重计算过程中隐式地促进了专家之间的交互。通过大量实验,我们证明了所提出的优化算法在 GLUE 基准、SuperGLUE 基准、问答任务和命名实体识别任务上微调 MoE 模型的性能得到了显著提升。

英文摘要:

The Mixture of Experts (MoE) has emerged as a highly successful technique in deep learning, based on the principle of divide-and-conquer to maximize model capacity without significant additional computational cost. Even in the era of large-scale language models (LLMs), MoE continues to play a crucial role, as some researchers have indicated that GPT-4 adopts the MoE structure to ensure diverse inference results. However, MoE is susceptible to performance degeneracy, particularly evident in the issues of imbalance and homogeneous representation among experts. While previous studies have extensively addressed the problem of imbalance, the challenge of homogeneous representation remains unresolved. In this study, we shed light on the homogeneous representation problem, wherein experts in the MoE fail to specialize and lack diversity, leading to frustratingly high similarities in their representations (up to 99\% in a well-performed MoE model). This problem restricts the expressive power of the MoE and, we argue, contradicts its original intention. To tackle this issue, we propose a straightforward yet highly effective solution: OMoE, an orthogonal expert optimizer. Additionally, we introduce an alternating training strategy that encourages each expert to update in a direction orthogonal to the subspace spanned by other experts. Our algorithm facilitates MoE training in two key ways: firstly, it explicitly enhances representation diversity, and secondly, it implicitly fosters interaction between experts during orthogonal weights computation. Through extensive experiments, we demonstrate that our proposed optimization algorithm significantly improves the performance of fine-tuning the MoE model on the GLUE benchmark, SuperGLUE benchmark, question-answering task, and name entity recognition tasks.

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

↑