Efficient Large Scale Language Modeling with Mixtures of Experts

By Mikel Artetxe, Shruti Bhosale, Naman Goyal, Todor Mihaylov, Myle Ott, Sam Shleifer, Xi Victoria Lin, Jingfei Du, Srini Iyer, Ramakanth Pasunuru and 14 more. 2021

248 citations recorded by the source corpus.

Mixture of Experts layers (MoEs) enable efficient scaling of language models through conditional computation. This paper presents a detailed empirical study of how autoregressive MoE language models scale in comparison with dense models in a wide range of settings: in- and out-of-domain language modeling, zero- and few-shot priming, and full-shot fine-tuning. With the exception of fine-tuning, we find MoEs to be substantially more compute efficient. At more modest training budgets, MoEs can match the performance of dense models using $\sim$4 times less compute. This gap narrows at scale, but our largest MoE model (1.1T parameters) consistently outperforms a compute-equivalent dense model (6.7B parameters). Overall, this performance gap varies greatly across tasks and domains, suggesting that MoE and dense models generalize differently in ways that are worthy of future study. We make our code and models publicly available for research use.

Subfields: Artificial Intelligence, General Social Sciences, Large Language Models, 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. Luke S. Zettlemoyer
  2. Mohit Bansal
  3. Jianfeng Gao
  4. Hannaneh Hajishirzi
  5. Percy Liang
  6. Graham Neubig
  7. Quoc V. Le
  8. Yejin Choi

In General Social Sciences

  1. Barret Zoph
  2. Stella Biderman
  3. Ramakanth Pasunuru
  4. Dmytro Okhonko
  5. Jason Wei
  6. Gargi Ghosh
  7. Joo Seong Jeong
  8. Ves Stoyanov

In Large Language Models

  1. Luke S. Zettlemoyer
  2. Furu Wei
  3. Hannaneh Hajishirzi
  4. Hinrich Schütze
  5. Yejin Choi
  6. Michael Lewis
  7. Yi Tay
  8. Li Dong

In Efficiency & Compression

  1. Dan Alistarh
  2. Elias Frantar
  3. Luke S. Zettlemoyer
  4. Barret Zoph
  5. Joseph Dean
  6. William Fedus
  7. Julian McAuley
  8. Canwen Xu

Citations in the corpus