Mixture-of-Experts with Expert Choice Routing

By Yan-Quan Zhou, Yanqi Zhou, Tao Lei, Han-Chu Liu, Nan Du, Yanping Huang, Vincent Y. Zhao, Andrew M. Dai, Zhifeng Chen, Quoc V. Le and 1 more. 2022

810 citations recorded by the source corpus.

Sparsely-activated Mixture-of-experts (MoE) models allow the number of parameters to greatly increase while keeping the amount of computation for a given token or a given sample unchanged. However, a poor expert routing strategy (e.g. one resulting in load imbalance) can cause certain experts to be under-trained, leading to an expert being under or over-specialized. Prior work allocates a fixed number of experts to each token using a top-k function regardless of the relative importance of different tokens. To address this, we propose a heterogeneous mixture-of-experts employing an expert choice method. Instead of letting tokens select the top-k experts, we have experts selecting the top-k tokens. As a result, each token can be routed to a variable number of experts and each expert can have a fixed bucket size. We systematically study pre-training speedups using the same computational resources of the Switch Transformer top-1 and GShard top-2 gating of prior work and find that our method improves training convergence time by more than 2x. For the same computational cost, our method demonstrates higher performance in fine-tuning 11 selected tasks in the GLUE and SuperGLUE benchmarks. For a smaller activation cost, our method outperforms the T5 dense model in 7 out of the 11 tasks.

Subfields: Computer Science Applications, Economics and Econometrics, Management Science and Operations Research, Model Architectures

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Computer Science Applications

  1. Marie-Anne Lachaux
  2. Yi Tay
  3. Donald Metzler
  4. Guillaume Lample
  5. D. Narayanan
  6. Neil Houlsby
  7. Mostafa Dehghani
  8. Dan Alistarh

In Economics and Econometrics

  1. Dan Alistarh
  2. Damai Dai
  3. Li Dong
  4. Carlos Riquelme
  5. Joan Puigcerver
  6. Guillaume Lample
  7. Adam Fisch
  8. Barret Zoph

In Management Science and Operations Research

  1. Han-Jia Ye
  2. De-chuan Zhan
  3. Da-Wei Zhou
  4. Damai Dai
  5. Marie-Anne Lachaux
  6. Teven Le Scao
  7. Matei A. Zaharia
  8. Yi Tay

In Model Architectures

  1. Yi Tay
  2. Mostafa Dehghani
  3. Donald Metzler
  4. J. Ainslie
  5. James Lee-Thorp
  6. Dara Bahri
  7. Furu Wei
  8. Neil Houlsby

Citations in the corpus