StableMoE: Stable Routing Strategy for Mixture of Experts

Damai Dai, Li Dong, Shuming Ma, Bo Zheng, Zhifang Sui +2 more
4/18/2022
cs.LGcs.CL
moe

Official code: Hunter-DDM/stablemoe (52 stars, Python, MIT, last commit 2022-07-17).

Abstract

The Mixture-of-Experts (MoE) technique can scale up the model size of Transformers with an affordable computational overhead. We point out that existing learning-to-route MoE methods suffer from the routing fluctuation issue, i.e., the target expert of the same input may change along with training, but only one expert will be activated for the input during inference.

Show full abstract

The routing fluctuation tends to harm sample efficiency because the same input updates different experts but only one is finally used. In this paper, we propose StableMoE with two training stages to address the routing fluctuation problem. In the first training stage, we learn a balanced and cohesive routing strategy and distill it into a lightweight router decoupled from the backbone model. In the second training stage, we utilize the distilled router to determine the token-to-expert assignment and freeze it for a stable routing strategy. We validate our method on language modeling and multilingual machine translation. The results show that StableMoE outperforms existing MoE methods in terms of both convergence speed and performance.

View on arXivView PDF

Code Implementations(1)

MIT

Code for the ACL-2022 paper "StableMoE: Stable Routing Strategy for Mixture of Experts"

525Python, CudaMar 7, 20224 years agoMIT

Similar Papers

Cite this paper

@article{dai2022stablemoe,
  title  = {StableMoE: Stable Routing Strategy for Mixture of Experts},
  author = {Damai Dai and Li Dong and Shuming Ma and Bo Zheng and Zhifang Sui and Baobao Chang and Furu Wei},
  year   = {2022},
  eprint = {2204.08396},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2204.08396}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2204.08396.svg)](https://codeofpaper.com/paper/2204.08396)

Discussion