XMoE: Sparse Models with Fine-grained and Adaptive Expert Selection

Aug 11, 2024·
Yuanhang Yang
,
Shiyi Qi
Wenchao GU
Wenchao GU
,
Chaozheng Wang
,
Cuiyun Gao
,
Zenglin Xud
· 0 min read
Abstract
Sparse models, including sparse Mixture-of-Experts (MoE) models, have emerged as an effective approach for scaling Transformer models. However, they often suffer from computational inefficiency since a significant number of parameters are unnecessarily involved in computations by multiplying values by zero or low activation values. To address this issue, we present XMoE, a novel MoE designed to enhance both the efficacy and efficiency of sparse MoE models. XMoE leverages small experts and a threshold-based router to enable tokens to selectively engage only essential parameters. Our extensive experiments on language modeling and machine translation tasks demonstrate that enhances model performance and can decrease the computation load at MoE layers by over 50% without sacrificing performance. Furthermore, we present the versatility of by applying it to dense models, enabling sparse computation during inference. We provide a comprehensive analysis and make our code available at https://anonymous. 4open. science/r/XMoE.
Type
Publication
In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics