Mesh-TensorFlow: Deep Learning for Supercomputers

By Noam Shazeer, Youlong Cheng, Niki Parmar, Dustin Tran, Ashish Vaswani, Penporn Koanantakool, Peter G. Hawkins, HyoukJoong Lee, Mingsheng Hong, Cliff Young and 2 more. 2018

439 citations recorded by the source corpus.

Batch-splitting (data-parallelism) is the dominant distributed Deep Neural Network (DNN) training strategy, due to its universal applicability and its amenability to Single-Program-Multiple-Data (SPMD) programming. However, batch-splitting suffers from problems including the inability to train very large models (due to memory constraints), high latency, and inefficiency at small batch sizes. All of these can be solved by more general distribution strategies (model-parallelism). Unfortunately, efficient model-parallel algorithms tend to be complicated to discover, describe, and to implement, particularly on large clusters. We introduce Mesh-TensorFlow, a language for specifying a general class of distributed tensor computations. Where data-parallelism can be viewed as splitting tensors and operations along the "batch" dimension, in Mesh-TensorFlow, the user can specify any tensor-dimensions to be split across any dimensions of a multi-dimensional mesh of processors. A Mesh-TensorFlow graph compiles into a SPMD program consisting of parallel operations coupled with collective communication primitives such as Allreduce. We use Mesh-TensorFlow to implement an efficient data-parallel, model-parallel version of the Transformer sequence-to-sequence model. Using TPU meshes of up to 512 cores, we train Transformer models with up to 5 billion parameters, surpassing state of the art results on WMT'14 English-to-French translation task and the one-billion-word language modeling benchmark. Mesh-Tensorflow is available at this https URL .

Subfields: Computational Mathematics, Computer Vision and Pattern Recognition, Hardware and Architecture, 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 Computational Mathematics

  1. Yi Tay
  2. Donald Metzler
  3. Dan Alistarh
  4. Elias Frantar
  5. Tara N. Sainath
  6. Aitor Lewkowycz
  7. Kurt Keutzer
  8. Shaden Smith

In Computer Vision and Pattern Recognition

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

In Hardware and Architecture

  1. Yi Tay
  2. Quoc V. Le
  3. Donald Metzler
  4. Mohammad Shoeybi
  5. Bryan Catanzaro
  6. Jared Casper
  7. Vijay Anand Korthikanti
  8. Jie Tang

In Efficiency & Compression

  1. Yi Tay
  2. Dan Alistarh
  3. Kurt Keutzer
  4. Yuxiong He
  5. Barret Zoph
  6. Minjia Zhang
  7. Elias Frantar
  8. Quoc V. Le

Citations in the corpus