Beyond Distillation: Task-level Mixture-of-Experts for Efficient Inference

By Sneha Kudugunta, Yanping Huang, Ankur Bapna, Maxim Krikun, Dmitry Lepikhin, Minh-Thang Luong, Orhan Firat. 2021

136 citations recorded by the source corpus.

Sparse Mixture-of-Experts (MoE) has been a successful approach for scaling multilingual translation models to billions of parameters without a proportional increase in training computation. However, MoE models are prohibitively large and practitioners often resort to methods such as distillation for serving. In this work, we investigate routing strategies at different granularity (token, sentence, task) in MoE models to bypass distillation. Experiments on WMT and a web-scale dataset suggest that task-level routing (task-MoE) enables us to extract smaller, ready-to-deploy sub-networks from large sparse models. On WMT, our task-MoE with 32 experts (533M parameters) outperforms the best performing token-level MoE model (token-MoE) by +1.0 BLEU on average across 30 language pairs. The peak inference throughput is also improved by a factor of 1.9x when we route by tasks instead of tokens. While distilling a token-MoE to a smaller dense model preserves only 32% of the BLEU gains, our sub-network task-MoE, by design, preserves all the gains with the same inference cost as the distilled student model. Finally, when scaling up to 200 language pairs, our 128-expert task-MoE (13B parameters) performs competitively with a token-level counterpart, while improving the peak inference throughput by a factor of 2.6x.

Subfields: Artificial Intelligence, 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. Barret Zoph
  3. Irwan Bello
  4. Mohit Bansal
  5. Luke S. Zettlemoyer
  6. William Fedus
  7. Joseph Dean
  8. Jianfeng Gao

In Computer Vision and Pattern Recognition

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

In Model Architectures

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

In Efficiency & Compression

  1. Irwan Bello
  2. Joseph Dean
  3. Barret Zoph
  4. William Fedus
  5. Noam Shazeer
  6. Yanping Huang
  7. Nan Du
  8. Sameer Kumar

Citations in the corpus