Memory-Efficient Pipeline-Parallel DNN Training
Deepak Narayanan, Amar Phanishayee, Kaiyu Shi, Xie Chen, Matei Zaharia

TL;DR
This paper introduces PipeDream-2BW, a memory-efficient pipeline parallelism system that accelerates large model training across multiple accelerators while maintaining accuracy.
Contribution
It presents a novel pipeline parallelism method with weight gradient coalescing and automatic model partitioning for efficient multi-accelerator training.
Findings
Achieves up to 20x speedup in training large GPT and BERT models.
Maintains similar accuracy to traditional training methods.
Reduces memory footprint during large model training.
Abstract
Many state-of-the-art ML results have been obtained by scaling up the number of parameters in existing models. However, parameters and activations for such large models often do not fit in the memory of a single accelerator device; this means that it is necessary to distribute training of large models over multiple accelerators. In this work, we propose PipeDream-2BW, a system that supports memory-efficient pipeline parallelism. PipeDream-2BW 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 respecting hardware constraints such as memory capacities of accelerators and interconnect topologies. PipeDream-2BW can…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
Taxonomy
TopicsTopic Modeling · Natural Language Processing Techniques · Parallel Computing and Optimization Techniques
MethodsLinear Layer · PipeDream-2BW · Cosine Annealing · Multi-Head Attention · Refunds@Expedia|||How do I get a full refund from Expedia? · Attention Dropout · Byte Pair Encoding · Weight Decay · WordPiece · Layer Normalization
