ST-MoE: Designing Stable and Transferable Sparse Expert Models

Barret Zoph, Irwan Bello, Sameer Kumar, Nan Du, Yanping Huang +3 more
2/17/2022
cs.CLcs.LG

Official code: tensorflow/mesh (1,627 stars, Apache-2.0, last commit 2023-11-17).

Abstract

Scale has opened new frontiers in natural language processing -- but at a high cost. In response, Mixture-of-Experts (MoE) and Switch Transformers have been proposed as an energy efficient path to even larger and more capable language models. But advancing the state-of-the-art across a broad set of natural language tasks has been hindered by training instabilities and uncertain quality during fine-tuning. Our work focuses on these issues and acts as a design guide. We conclude by scaling a sparse model to 269B parameters, with a computational cost comparable to a 32B dense encoder-decoder Transformer (Stable and Transferable Mixture-of-Experts or ST-MoE-32B). For the first time, a sparse model achieves state-of-the-art performance in transfer learning, across a diverse set of tasks including reasoning (SuperGLUE, ARC Easy, ARC Challenge), summarization (XSum, CNN-DM), closed book question answering (WebQA, Natural Questions), and adversarially constructed tasks (Winogrande, ANLI R3).

View on arXivView PDF

Code Implementations(1)

tensorflow/meshOfficial100%
Apache-2.0

Mesh TensorFlow: Model Parallelism Made Easier

1,627255Shell, PythonSep 20, 20182 years agoApache-2.0

Cite this paper

@article{zoph2022stmoe,
  title  = {ST-MoE: Designing Stable and Transferable Sparse Expert Models},
  author = {Barret Zoph and Irwan Bello and Sameer Kumar and Nan Du and Yanping Huang and Jeff Dean and Noam Shazeer and William Fedus},
  year   = {2022},
  eprint = {2202.08906},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2202.08906}
}

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/2202.08906.svg)](https://codeofpaper.com/paper/2202.08906)

Discussion