Skip to main content
QUICK REVIEW

[论文解读] Exploring Sparse Expert Models and Beyond

Yang An, Junyang Lin|arXiv (Cornell University)|May 31, 2021
Recommender Systems and TechniquesComputer Science参考文献 29被引用 14
一句话总结

本文提出专家原型化方法,将专家划分为原型,并采用Top-1路由机制,在保持计算成本恒定的前提下提升稀疏专家模型的性能。该方法在480张V100 GPU上实现了1.1万亿参数的模型,其收敛速度优于在2048个TPU核心上训练的SOTA模型,表明专家容量与路由稀疏性是影响性能的关键因素。

ABSTRACT

Mixture-of-Experts (MoE) models can achieve promising results with outrageous large amount of parameters but constant computation cost, and thus it has become a trend in model scaling. Still it is a mystery how MoE layers bring quality gains by leveraging the parameters with sparse activation. In this work, we investigate several key factors in sparse expert models. We observe that load imbalance may not be a significant problem affecting model quality, contrary to the perspectives of recent studies, while the number of sparsely activated experts $k$ and expert capacity $C$ in top-$k$ routing can significantly make a difference in this context. Furthermore, we take a step forward to propose a simple method called expert prototyping that splits experts into different prototypes and applies $k$ top-$1$ routing. This strategy improves the model quality but maintains constant computational costs, and our further exploration on extremely large-scale models reflects that it is more effective in training larger models. We push the model scale to over $1$ trillion parameters and implement it on solely $480$ NVIDIA V100-32GB GPUs, in comparison with the recent SOTAs on $2048$ TPU cores. The proposed giant model achieves substantial speedup in convergence over the same-size baseline.

研究动机与目标

  • 探究影响稀疏专家模型性能的关键因素,特别是负载均衡、专家容量与路由稀疏性。
  • 解决在保持计算成本恒定的前提下高效扩展MoE模型的挑战。
  • 通过一种新颖的路由与专家组织策略,提升超大规模模型的模型质量。
  • 证明在更少、更易获取的硬件(如V100 GPU)上训练万亿参数MoE模型的可行性与优势。

提出的方法

  • 提出专家原型化方法,将专家划分为独立的原型,并对每个原型应用Top-1路由,降低路由复杂度。
  • 采用k=1的Top-k路由机制,每种原型仅激活一个专家,保持计算成本恒定的同时提升模型表达能力。
  • 采用一种路由机制,根据输入为每个原型选择一个专家,实现在不同原型间的稀疏激活。
  • 仅使用480张NVIDIA V100-32GB GPU将模型扩展至超过1万亿参数,避免依赖大型TPU集群。
  • 通过消融实验评估专家容量C与路由稀疏性k对模型质量的影响。
  • 将所提模型与相同规模的基线模型及SOTA模型进行对比,验证其收敛速度与性能优势。

实验结果

研究问题

  • RQ1在MoE模型中,负载不平衡是否显著降低模型质量,与近期研究中的常见假设相反?
  • RQ2被稀疏激活的专家数量(k)与专家容量(C)如何影响稀疏专家模型的性能?
  • RQ3专家原型化是否能在不增加计算成本的前提下提升模型质量?
  • RQ4专家原型化在训练超大规模模型方面有多有效?
  • RQ5在相同规模下,所提方法是否相比标准MoE基线模型实现更快的收敛速度?

主要发现

  • 负载不平衡并非显著影响模型质量的主要问题,挑战了近期研究中的常见假设。
  • 被稀疏激活的专家数量(k)与专家容量(C)显著影响模型性能。
  • 专家原型化在保持计算成本恒定的前提下提升了模型质量,实现了高效扩展。
  • 该方法使在仅480张V100-32GB GPU上训练1.1万亿参数的MoE模型成为可能,性能优于在2048个TPU核心上训练的SOTA模型。
  • 所提模型相比同规模基线模型实现了显著的收敛加速,证明了训练效率的提升。

阅读本论文

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

在 Nubint 中阅读本论文

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