Adaptive Gating in Mixture-of-Experts based Language Models

被引:0
作者
Li, Jiamin [1 ]
Su, Qiang [1 ]
Yang, Yitao [2 ]
Jiang, Yimin
Wang, Cong [1 ]
Xu, Hong [2 ]
机构
[1] City Univ Hong Kong, Hong Kong, Peoples R China
[2] Chinese Univ Hong Kong, Hong Kong, Peoples R China
来源
2023 CONFERENCE ON EMPIRICAL METHODS IN NATURAL LANGUAGE PROCESSING, EMNLP 2023 | 2023年
关键词
D O I
暂无
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
Large language models, such as OpenAI's Chat-GPT, have demonstrated exceptional language understanding capabilities in various NLP tasks. Sparsely activated mixture-of-experts (MoE) has emerged as a promising solution for scaling models while maintaining a constant number of computational operations. Existing MoE model adopts a fixed gating network where each token is computed by the same number of experts. However, this approach contradicts our intuition that the tokens in each sequence vary in terms of their linguistic complexity and, consequently, require different computational costs. Little is discussed in prior research on the trade-off between computation per token and model performance. This paper introduces adaptive gating in MoE, a flexible training strategy that allows tokens to be processed by a variable number of experts based on expert probability distribution. The proposed framework preserves sparsity while improving training efficiency. Additionally, curriculum learning is leveraged to further reduce training time. Extensive experiments on diverse NLP tasks show that adaptive gating reduces at most 22.5% training time while maintaining inference quality. Moreover, we conduct a comprehensive analysis of the routing decisions and present our insights when adaptive gating is used.
引用
收藏
页码:3577 / 3587
页数:11
相关论文
共 41 条
  • [11] Fedus William, 2021, Switch transformers: Scaling to trillion parameter models with simple and efficient sparsity
  • [12] Gale Trevor, 2022, ARXIV
  • [13] Google Bard, Google bard
  • [14] Hazimeh H, 2021, ADV NEUR IN, V34
  • [15] Hermann Karl Moritz, 2015, Advances in neural information processing systems, V28
  • [16] Kim H. J., 2022, arXiv
  • [17] Kim Young Jin, 2021, ARXIV
  • [18] Komatsuzaki Aran, 2022, ARXIV
  • [19] Kwon Yoohwan, 2023, ICASSP
  • [20] Lepikhin Dmitry, 2020, ARXIV