Taming Sparsely Activated Transformer with Stochastic Experts

By Simiao Zuo, Xiaodong Liu, Jian Jiao, Young Jin Kim, Hany Hassan, Ruofei Zhang, Tuo Zhao, Jianfeng Gao. 2021

152 citations recorded by the source corpus.

Sparsely activated models (SAMs), such as Mixture-of-Experts (MoE), can easily scale to have outrageously large amounts of parameters without significant increase in computational cost. However, SAMs are reported to be parameter inefficient such that larger models do not always lead to better performance. While most on-going research focuses on improving SAMs models by exploring methods of routing inputs to experts, our analysis reveals that such research might not lead to the solution we expect, i.e., the commonly-used routing methods based on gating mechanisms do not work better than randomly routing inputs to experts. In this paper, we propose a new expert-based model, THOR (Transformer witH StOchastic ExpeRts). Unlike classic expert-based models, such as the Switch Transformer, experts in THOR are randomly activated for each input during training and inference. THOR models are trained using a consistency regularized loss, where experts learn not only from training data but also from other experts as teachers, such that all the experts make consistent predictions. We validate the effectiveness of THOR on machine translation tasks. Results show that THOR models are more parameter efficient in that they significantly outperform the Transformer and MoE models across various settings. For example, in multilingual translation, THOR outperforms the Switch Transformer by 2 BLEU scores, and obtains the same BLEU score as that of a state-of-the-art MoE model that is 18 times larger. Our code is publicly available at: https://github.com/microsoft/Stochastic-Mixture-of-Experts.

Subfields: Artificial Intelligence, Computer Science Applications, Computer Vision and Pattern Recognition, Model Architectures, Efficiency & Compression

How researchers see this paper

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

In Artificial Intelligence

  1. Quoc V. Le
  2. Luke S. Zettlemoyer
  3. Mohit Bansal
  4. Jianfeng Gao
  5. Barret Zoph
  6. Percy Liang
  7. Noah A. Smith
  8. Yoshua Bengio

In Computer Science Applications

  1. Nan Du
  2. Julian McAuley

In Computer Vision and Pattern Recognition

  1. Quoc V. Le
  2. Luc Van Gool
  3. Dacheng Tao
  4. Jitendra Malik
  5. Trevor Darrell
  6. Xiaogang Wang
  7. Ming-Hsuan Yang
  8. Alan L. Yuille

In Model Architectures

  1. Quoc V. Le
  2. Irwan Bello
  3. Barret Zoph
  4. Noam Shazeer
  5. Joseph Dean
  6. William Fedus
  7. Frank Hutter
  8. Yanping Huang

In Efficiency & Compression

  1. Irwan Bello
  2. Barret Zoph
  3. Joseph Dean
  4. William Fedus
  5. Yuxiong He
  6. Julian McAuley
  7. Canwen Xu
  8. Quoc V. Le

Citations in the corpus