Memory-Efficient Pipeline-Parallel DNN Training

By D. Narayanan, Amar Phanishayee, Kaiyu Shi, Xie Chen, Matei A. Zaharia. 2020

299 citations recorded by the source corpus.

Many state-of-the-art results in domains such as NLP and computer vision have been obtained by scaling up the number of parameters in existing models. However, the weight parameters and intermediate outputs of these large models often do not fit in the main memory of a single accelerator device; this means that it is necessary to use multiple accelerators to train large models, which is challenging to do in a time-efficient way. In this work, we propose PipeDream-2BW, a system that performs memory-efficient pipeline parallelism, a hybrid form of parallelism that combines data and model parallelism with input pipelining. Our system uses a novel pipelining and weight gradient coalescing strategy, combined with the double buffering of weights, to ensure high throughput, low memory footprint, and weight update semantics similar to data parallelism. In addition, PipeDream-2BW automatically partitions the model over the available hardware resources, while being cognizant of constraints such as compute capabilities, memory capacities, and interconnect topologies, and determines when to employ existing memory-savings techniques, such as activation recomputation, that trade off extra computation for lower memory footprint. PipeDream-2BW is able to accelerate the training of large language models with up to 2.5 billion parameters by up to 6.9x compared to optimized baselines.

Subfields: Artificial Intelligence, 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 Artificial Intelligence

  1. Luke S. Zettlemoyer
  2. Quoc V. Le
  3. Graham Neubig
  4. Mohit Bansal
  5. Jianfeng Gao
  6. Percy Liang
  7. Yejin Choi
  8. Noah A. Smith

In Hardware and Architecture

  1. Yi Tay
  2. Mohammad Shoeybi
  3. Bryan Catanzaro
  4. Jared Casper
  5. Vijay Anand Korthikanti
  6. Jie Tang
  7. Xiao Liu
  8. Lawrence C. McAfee

In Efficiency & Compression

  1. Yuxiong He
  2. Samyam Rajbhandari
  3. Matei A. Zaharia
  4. Mohammad Shoeybi
  5. Yi Tay
  6. Bryan Catanzaro
  7. Joseph Dean
  8. Jeff Rasley

Citations in the corpus