TensorX
返回文献探索

Paper · arXiv 2409.12136

GRIN: GRadient-INformed MoE

Liyuan Liu, Young Jin Kim, Shuohang Wang, Chen Liang, Yelong Shen, Hao Cheng, Xiaodong Liu, Masahiro Tanaka, Xiaoxia Wu, Wenxiang Hu, Vishrav Chaudhary, Zeqi Lin, Chenruidong Zhang, Jilong Xue, Hany Awadalla, Jianfeng Gao, Weizhu Chen

17 upvotesSeptember 18, 2024arXiv 预印本
AI 摘要

GRIN enhances MoE models by using sparse gradient estimation for expert routing, enabling better scaling and performance compared to dense models.

Mixture-of-ExpertsMoEsparse computationexpert routinggradient-based optimizationGRINautoregressive language modelingtop-2parameter-efficientMMLUHellaSwagHumanEvalMATH

Abstract

Mixture-of-Experts (MoE) models scale more effectively than dense models due to sparse computation through expert routing, selectively activating only a small subset of expert modules. However, sparse computation challenges traditional training practices, as discrete expert routing hinders standard backpropagation and thus gradient-based optimization, which are the cornerstone of deep learning. To better pursue the scaling power of MoE, we introduce GRIN (GRadient-INformed MoE training), which incorporates sparse gradient estimation for expert routing and configures model parallelism to avoid token dropping. Applying GRIN to autoregressive language modeling, we develop a top-2 16times3.8B MoE model. Our model, with only 6.6B activated parameters, outperforms a 7B dense model and matches the performance of a 14B dense model trained on the same data. Extensive evaluations across diverse tasks demonstrate the potential of GRIN to significantly enhance MoE efficacy, achieving 79.4 on MMLU, 83.7 on HellaSwag, 74.4 on HumanEval, and 58.9 on MATH.

北京市昌平区探索星信息技术及软件开发工作室

京ICP备2026059466号
GRIN: GRadient-INformed MoE | TensorX