arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2105.15082cs.LGcs.CL
收藏

M6-T:探索稀疏专家模型及其他

M6-T: Exploring Sparse Expert Models and Beyond

Alibaba Group(阿里巴巴集团)

An Yang, Junyang Lin, Rui Men, Chang Zhou, Le Jiang, Xianyan Jia, Ang Wang, Jie Zhang, Jiamang Wang, Yong Li, Di Zhang, Wei Lin, Lin Qu, Jingren Zhou, Hongxia Yang

摘要:

混合专家模型(Mixture-of-Experts,MoE)具有参数多而计算量小的优点,已成为模型缩放的一种趋势。然而,MoE层如何通过利用具有稀疏激活的参数来带来质量增益仍然是一个谜。在这项工作中,我们研究了稀疏专家模型中的几个关键因素。我们观察到,负载不平衡可能不是一个重要的问题,影响模型的质量,相反的观点,最近的研究,而稀疏激活的专家$k$和专家容量$C$在顶部- $k$路由的数量可以显着地在这种情况下,有所作为。此外,我们向前迈出了一步,提出了一个简单的方法,称为专家原型,专家分成不同的原型,并适用于$k$顶- $1$路由。这种策略提高了模型质量,但保持了恒定的计算成本,我们对超大规模模型的进一步探索反映出它在训练更大的模型时更有效。我们将模型规模扩大到超过$1$万亿参数,并仅在$480$ NVIDIA V100- 32 GB GPU上实现它,与最近在$2048$ TPU内核上的SOTA相比。所提出的巨型模型在相同大小的基线上实现了大幅加速收敛。

英文摘要:

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.

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

↑