PipeDream: generalized pipeline parallelism for DNN training

By D. Narayanan, Aaron Harlap, Amar Phanishayee, Vivek Seshadri, Nikhil R. Devanur, G. R. Ganger, Phillip B. Gibbons, Matei A. Zaharia. 2019

1,228 citations recorded by the source corpus.

DNN training is extremely time-consuming, necessitating efficient multi-accelerator parallelization. Current approaches to parallelizing training primarily use intra-batch parallelization, where a single iteration of training is split over the available workers, but suffer from diminishing returns at higher worker counts. We present PipeDream, a system that adds inter-batch pipelining to intra-batch parallelism to further improve parallel training throughput, helping to better overlap computation with communication and reduce the amount of communication when possible. Unlike traditional pipelining, DNN training is bi-directional, where a forward pass through the computation graph is followed by a backward pass that uses state and intermediate data computed during the forward pass. Naïve pipelining can thus result in mismatches in state versions used in the forward and backward passes, or excessive pipeline flushes and lower hardware efficiency. To address these challenges, PipeDream versions model parameters for numerically correct gradient computations, and schedules forward and backward passes of different minibatches concurrently on different workers with minimal pipeline stalls. PipeDream also automatically partitions DNN layers among workers to balance work and minimize communication. Extensive experimentation with a range of DNN tasks, models, and hardware configurations shows that PipeDream trains models to high accuracy up to 5.3X faster than commonly used intra-batch parallelism techniques.

Subfields: Artificial Intelligence, Computer Vision and Pattern Recognition, Electrical and Electronic Engineering, 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. Quoc V. Le
  2. Jianfeng Gao
  3. Luke S. Zettlemoyer
  4. Mohit Bansal
  5. Yoshua Bengio
  6. Graham Neubig
  7. Percy Liang
  8. Furu Wei

In Computer Vision and Pattern Recognition

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

In Electrical and Electronic Engineering

  1. Khaled Ben Letaief
  2. Yuanming Shi
  3. Pieter Abbeel
  4. Quoc V. Le
  5. Tal Ben-Nun
  6. Oriol Vinyals
  7. Simon Osindero
  8. Aurelia Guy

In Efficiency & Compression

  1. Quoc V. Le
  2. Yuxiong He
  3. Samyam Rajbhandari
  4. Matei A. Zaharia
  5. Mohammad Shoeybi
  6. Bryan Catanzaro
  7. Jeff Rasley
  8. Olatunji Ruwase

In Optimization & Training

  1. Quoc V. Le
  2. Torsten Hoefler
  3. Tal Ben-Nun
  4. Yuxiong He
  5. Samyam Rajbhandari
  6. Bryan Catanzaro
  7. Olatunji Ruwase
  8. Karen Simonyan

Citations in the corpus