GShard: Scaling Giant Models with Conditional Computation and Automatic Sharding

By Dmitry Lepikhin, HyoukJoong Lee, Yuanzhong Xu, Dehao Chen, Orhan Firat, Yanping Huang, Maxim Krikun, Noam Shazeer, Z. Chen. 2020

2,182 citations recorded by the source corpus.

Neural network scaling has been critical for improving the model quality in many real-world machine learning applications with vast amounts of training data and compute. Although this trend of scaling is affirmed to be a sure-fire approach for better model quality, there are challenges on the path such as the computation cost, ease of programming, and efficient implementation on parallel devices. GShard is a module composed of a set of lightweight annotation APIs and an extension to the XLA compiler. It provides an elegant way to express a wide range of parallel computation patterns with minimal changes to the existing model code. GShard enabled us to scale up multilingual neural machine translation Transformer model with Sparsely-Gated Mixture-of-Experts beyond 600 billion parameters using automatic sharding. We demonstrate that such a giant model can efficiently be trained on 2048 TPU v3 accelerators in 4 days to achieve far superior quality for translation from 100 languages to English compared to the prior art.

Subfields: Artificial Intelligence, Computer Vision and Pattern Recognition, 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. Quoc V. Le
  3. Mohit Bansal
  4. Jianfeng Gao
  5. Graham Neubig
  6. Percy Liang
  7. Noah A. Smith
  8. Yejin Choi

In Computer Vision and Pattern Recognition

  1. Luc Van Gool
  2. Dacheng Tao
  3. Trevor Darrell
  4. Xiaogang Wang
  5. Ming-Hsuan Yang
  6. Jitendra Malik
  7. Andrew Zisserman
  8. Yi Yang

In Large Language Models

  1. Luke S. Zettlemoyer
  2. Furu Wei
  3. Hinrich Schütze
  4. Jianfeng Gao
  5. Yejin Choi
  6. Noah A. Smith
  7. Li Dong
  8. Mohit Bansal

In Efficiency & Compression

  1. Quoc V. Le
  2. Dan Alistarh
  3. Barret Zoph
  4. Luke S. Zettlemoyer
  5. Elias Frantar
  6. Joseph Dean
  7. William Fedus
  8. Tim Dettmers

Citations in the corpus