Skip to main content
QUICK REVIEW

[论文解读] HyperMoE: Towards Better Mixture of Experts via Transferring Among Experts

Hao Zhao, Zihan Qiu|arXiv (Cornell University)|Feb 20, 2024
Mobile Crowdsensing and CrowdsourcingComputer Science被引用 5
一句话总结

HyperMoE 在专家混合(MoE)中通过共享超网络生成由未选中的专家信息条件化的 HyperExperts,实现跨专家知识转移,在稀疏路由下提升性能。

ABSTRACT

The Mixture of Experts (MoE) for language models has been proven effective in augmenting the capacity of models by dynamically routing each input token to a specific subset of experts for processing. Despite the success, most existing methods face a challenge for balance between sparsity and the availability of expert knowledge: enhancing performance through increased use of expert knowledge often results in diminishing sparsity during expert selection. To mitigate this contradiction, we propose HyperMoE, a novel MoE framework built upon Hypernetworks. This framework integrates the computational processes of MoE with the concept of knowledge transferring in multi-task learning. Specific modules generated based on the information of unselected experts serve as supplementary information, which allows the knowledge of experts not selected to be used while maintaining selection sparsity. Our comprehensive empirical evaluations across multiple datasets and backbones establish that HyperMoE significantly outperforms existing MoE methods under identical conditions concerning the number of experts.

研究动机与目标

  • 激发 MoE 中稀疏性与知识可用性之间的权衡,并解决提高专家使用率时稀疏性减弱的问题。
  • 提出 HyperMoE,一种基于 HyperNetwork 的 MoE 框架,利用未选专家的信息生成跨专家 HyperExperts。
  • 在保持稀疏的专家路由的同时,实现知识对所选专家的正向迁移。
  • 与强基线 MoE 相比,在多种 NLP 任务与骨干模型上展示出经验提升。

提出的方法

  • 引入 HyperMoE 架构,由共享的超网络根据未选专家信息生成 HyperExperts。
  • 定义 Selection Embedding,用于对每个标记编码未选专家的信息。
  • 使用瓶颈适配器风格的条件专家,其权重 D^τ_i 和 U^τ_i 由超网络 H_e(k^i_τ) 生成。
  • 并行将 HyperExpert 的输出与标准 MoE 路由结合,表示为 y_i = sum_r G(x_i)_r E_r(x_i) + Ŝ_i(x_i)。
  • 在变换器层之间共享超网络,以实现跨层信息流动与参数效率。

实验结果

研究问题

  • RQ1通过共享超网络实现跨专家信息转移,是否可以在不牺牲稀疏性的前提下提升专家知识的可用性?
  • RQ2以未选专家信息为条件的 HyperExperts 是否在多种 NLP 任务和骨干模型上带来可衡量的提升?
  • RQ3将 MoE 专家数量扩展时,HyperMoE 相对于 Switch Transformer 基线的表现如何?
  • RQ4消融研究揭示选择嵌入和超网络条件化在迁移效果中的作用?

主要发现

  • HyperMoE 在 GLUE 和 SuperGLUE 基准测试上优于 MoE 与 MoE-Share,平均提升分别为 0.48 和 0.84 点。
  • 在 NLG 任务(XSum、CNNDM、SQuAD、WikiText)上,HyperMoE 实现的 Rouge-2 或 Exact Match 分数高于基线。
  • 消融研究显示基于嵌入的条件化和超网络条件化有助于提升性能;移除嵌入或配置条件化错误会降低准确性。
  • 增加专家数量(base-8、base-16、base-32)相对于基线,HyperMoE 得到持续的提升。
  • 相比标准 MoE,HyperMoE 由于增加的 HyperExpert 组件,训练约慢 15%,推理约慢 10%,这表明在性能与成本之间有利的权衡。
  • 选择嵌入有效捕捉跨专家信息,未选专家嵌入提供强有力的条件信号。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。