Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

ReMoE: Fully Differentiable Mixture-of-Experts with ReLU Routing

About

Sparsely activated Mixture-of-Experts (MoE) models are widely adopted to scale up model capacity without increasing the computation budget. However, vanilla TopK routers are trained in a discontinuous, non-differentiable way, limiting their performance and scalability. To address this issue, we propose ReMoE, a fully differentiable MoE architecture that offers a simple yet effective drop-in replacement for the conventional TopK+Softmax routing, utilizing ReLU as the router instead. We further propose methods to regulate the router's sparsity while balancing the load among experts. ReMoE's continuous nature enables efficient dynamic allocation of computation across tokens and layers, while also exhibiting domain specialization. Our experiments demonstrate that ReMoE consistently outperforms vanilla TopK-routed MoE across various model sizes, expert counts, and levels of granularity. Furthermore, ReMoE exhibits superior scalability with respect to the number of experts, surpassing traditional MoE architectures. The implementation based on Megatron-LM is available at https://github.com/thu-ml/ReMoE.

Ziteng Wang, Jun Zhu, Jianfei Chen• 2024

Related benchmarks

TaskDatasetResultRank
Commonsense ReasoningHellaSwag
Accuracy30.26
1891
Commonsense ReasoningWinoGrande
Accuracy51.62
1085
Question AnsweringARC Challenge
Accuracy20.22
906
Commonsense ReasoningPIQA
Accuracy63.55
751
Question AnsweringARC-E
Accuracy46.68
416
Reading ComprehensionBoolQ
Accuracy54.16
279
Language ModelingLAMBADA
Accuracy35.94
268
Reading ComprehensionRACE
Accuracy29.38
151
Question AnsweringOpenBookQA
Normalized Accuracy26
102
Language ModelingOpenWebText
Perplexity29.6
91
Showing 10 of 21 rows

Other info

Follow for update