Automatic Cross-Replica Sharding of Weight Update in Data-Parallel Training

By Yuanzhong Xu, HyoukJoong Lee, Dehao Chen, Hongjun Choi, Blake A. Hechtman, Shibo Wang. 2020

52 citations recorded by the source corpus.

In data-parallel synchronous training of deep neural networks, different devices (replicas) run the same program with different partitions of the training batch, but weight update computation is repeated on all replicas, because the weights do not have a batch dimension to partition. This can be a bottleneck for performance and scalability in typical language models with large weights, and models with small per-replica batch size which is typical in large-scale training. This paper presents an approach to automatically shard the weight update computation across replicas with efficient communication primitives and data formatting, using static analysis and transformations on the training computation graph. We show this technique achieves substantial speedups on typical image and language models on Cloud TPUs, requiring no change to model code. This technique helps close the gap between traditionally expensive (ADAM) and cheap (SGD) optimizers, as they will only take a small part of training step time and have similar peak memory usage. It helped us to achieve state-of-the-art training performance in Google's MLPerf 0.6 submission.

Subfields: Artificial Intelligence, Computer Vision and Pattern Recognition, Hardware and Architecture, Efficiency & Compression, Optimization & Training

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. Graham Neubig
  3. Quoc V. Le
  4. Mohit Bansal
  5. Jianfeng Gao
  6. Orhan Firat
  7. Furu Wei
  8. Michael Lewis

In Computer Vision and Pattern Recognition

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

In Hardware and Architecture

  1. Yanping Huang
  2. Myle Ott
  3. Sam Shleifer
  4. Chien-chin Huang
  5. HyoukJoong Lee
  6. D. Narayanan
  7. Bryan Catanzaro
  8. Mohammad Shoeybi

In Efficiency & Compression

  1. Matei A. Zaharia
  2. Mohammad Shoeybi
  3. Luke S. Zettlemoyer
  4. Bryan Catanzaro
  5. Yanping Huang
  6. M. Patwary
  7. D. Narayanan
  8. Yonghui Wu

In Optimization & Training

  1. Orhan Firat
  2. Mohammad Shoeybi
  3. Bryan Catanzaro
  4. Luke S. Zettlemoyer
  5. M. Patwary
  6. Yonghui Wu
  7. Ruoming Pang
  8. Yanping Huang

Citations in the corpus