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 条
  • [21] Lewis M., 2019, Transactions of the Association for Computational Linguistics
  • [22] LESDroid - A Tool for Detecting Exported Service Leaks of Android Applications
    Ma, Jun
    Liu, Shaocong
    Jiang, Yanyan
    Tao, Xianping
    Xu, Chang
    Lu, Jian
    [J]. 2018 IEEE/ACM 26TH INTERNATIONAL CONFERENCE ON PROGRAM COMPREHENSION (ICPC 2018), 2018, : 244 - 254
  • [23] Merity S., 2016, Pointer sentinel mixture models
  • [24] Ng Nathan, 2020, P WMT
  • [25] openai, ChatGPT: optimizing language models for dialogue
  • [26] Pope Reiner, 2023, P MLSYS
  • [27] Radford A, 2019, OPENAI BLOG, V1, P9, DOI DOI 10.4018/978-1-5225-9348-5.CH006
  • [28] Rajbhandari Samyam, 2022, ARXIV
  • [29] Rajpurkar Pranav, 2016, SQuAD: 100,000+ Questions for Machine Comprehension of Text, DOI [10.18653/v1/D16-1264, DOI 10.18653/V1/D16-1264]
  • [30] Roller S, 2021, ADV NEUR IN, V34