arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2110.07431cs.CL
收藏

一种更有效、更经济的稀疏激活模型

Towards More Effective and Economic Sparsely-Activated Model

Huawei(华为);School of Computer Science, Fudan University(复旦大学计算机科学技术学院);Hong Kong University of Science and Technology(香港科技大学);Gaoling School of Artificial Intelligence, Renmin University of China(中国人民大学高瓴人工智能学院)
Hao Jiang, Ke Zhan, Jianwei Qu, Yongkang Wu, Zhaoye Fei, Xinyu Zhang, Lei Chen, Zhicheng Dou, Xipeng Qiu, Zikai Guo, Ruofei Lai, Jiawen Wu, Enrui Hu, Yinxia Zha… 展开作者

Hao Jiang, Ke Zhan, Jianwei Qu, Yongkang Wu, Zhaoye Fei, Xinyu Zhang, Lei Chen, Zhicheng Dou, Xipeng Qiu, Zikai Guo, Ruofei Lai, Jiawen Wu, Enrui Hu, Yinxia Zhang, Yantao Jia, Fan Yu, Zhao Cao

摘要:

稀疏激活模型通过大规模的参数和相对较低的计算代价在自然语言处理中取得了巨大的成功,并逐渐成为训练和实现超大型模型的可行技术。由于通信代价的限制,在训练和推理过程中,很难激活多个专家。因此,以前的工作通常一次只激活一个专家,以减轻额外的通信成本。这种路由机制限制了模型性能的上限。在本文中,我们首先研究了一个现象,即增加激活的专家的数量可以提高模型的性能与更高的稀疏率。为了在不增加计算成本的情况下增加激活专家的数量,我们提出了SAM(开关和混合)路由,一种有效的分层路由机制,在同一设备(GPU)中激活多个专家。我们的方法揭示了极大的稀疏模型的训练和实验证明,我们的模型可以实现显着的性能增益,极大的效率提高。

英文摘要:

The sparsely-activated models have achieved great success in natural language processing through large-scale parameters and relatively low computational cost, and gradually become a feasible technique for training and implementing extremely large models. Due to the limit of communication cost, activating multiple experts is hardly affordable during training and inference. Therefore, previous work usually activate just one expert at a time to alleviate additional communication cost. Such routing mechanism limits the upper bound of model performance. In this paper, we first investigate a phenomenon that increasing the number of activated experts can boost the model performance with higher sparse ratio. To increase the number of activated experts without an increase in computational cost, we propose SAM (Switch and Mixture) routing, an efficient hierarchical routing mechanism that activates multiple experts in a same device (GPU). Our methods shed light on the training of extremely large sparse models and experiments prove that our models can achieve significant performance gain with great efficiency improvement.

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

↑