Skip to main content
QUICK REVIEW

[Paper Review] DAPPLE: A Pipelined Data Parallel Approach for Training Large Models

Shiqing Fan, Yi Rong|arXiv (Cornell University)|Jul 2, 2020
Parallel Computing and Optimization TechniquesComputer Science36 references29 citations
TL;DR

DAPPLE is a synchronous training framework that combines data parallelism and pipeline parallelism to optimize training of large deep neural networks. It introduces an automated parallelization planner and a memory-efficient runtime scheduler, achieving up to 3.23× speedup over PipeDream and 1.6× throughput improvement over GPipe with 12% less memory usage.

ABSTRACT

It is a challenging task to train large DNN models on sophisticated GPU platforms with diversified interconnect capabilities. Recently, pipelined training has been proposed as an effective approach for improving device utilization. However, there are still several tricky issues to address: improving computing efficiency while ensuring convergence, and reducing memory usage without incurring additional computing costs. We propose DAPPLE, a synchronous training framework which combines data parallelism and pipeline parallelism for large DNN models. It features a novel parallelization strategy planner to solve the partition and placement problems, and explores the optimal hybrid strategy of data and pipeline parallelism. We also propose a new runtime scheduling algorithm to reduce device memory usage, which is orthogonal to re-computation approach and does not come at the expense of training throughput. Experiments show that DAPPLE planner consistently outperforms strategies generated by PipeDream's planner by up to 3.23x under synchronous training scenarios, and DAPPLE runtime outperforms GPipe by 1.6x speedup of training throughput and reduces the memory consumption of 12% at the same time.

Motivation & Objective

  • Address the challenge of training large DNN models that exceed single-GPU memory limits on heterogeneous GPU clusters.
  • Improve training efficiency and device utilization in synchronous training without sacrificing convergence.
  • Reduce memory consumption in pipelined training without relying on re-computation or storing multiple model parameter versions.
  • Automate the generation of optimal hybrid data and pipeline parallelism strategies for given model and hardware configurations.
  • Enable scalable, high-throughput training on systems with limited inter-server bandwidth, such as 25Gbps Ethernet.

Proposed method

  • Propose a synchronous pipeline planner that automatically determines optimal partitioning, replication, and placement of model layers across devices to minimize training iteration time.
  • Introduce a novel runtime scheduling algorithm that reduces peak memory usage by avoiding storage of intermediate activation results, orthogonal to re-computation.
  • Combine data parallelism (via stage-level replication) with pipeline parallelism to balance load and improve device utilization.
  • Design a hybrid strategy that dynamically selects the best combination of data and pipeline parallelism based on model structure and hardware constraints.
  • Implement a micro-batch scheduling scheme that enables pipelined execution while ensuring gradient synchronization across all micro-batches per global step.
  • Use a cost model in the planner to evaluate and select strategies that minimize end-to-end training time under synchronous constraints.

Experimental results

Research questions

  • RQ1How can optimal hybrid data and pipeline parallelism strategies be automatically generated for large DNN models under synchronous training?
  • RQ2Can a runtime scheduler reduce memory usage in pipelined training without increasing computation cost or requiring re-computation?
  • RQ3To what extent does DAPPLE improve training throughput and memory efficiency compared to GPipe and PipeDream in synchronous settings?
  • RQ4How does DAPPLE perform under low-bandwidth interconnects, such as 25Gbps Ethernet, in hierarchical GPU clusters?
  • RQ5What is the scalability of DAPPLE in terms of model size and number of GPUs, especially when model parameters exceed single-device memory capacity?

Key findings

  • DAPPLE’s planner achieves up to 3.23× speedup over strategies generated by PipeDream’s planner in synchronous training scenarios.
  • DAPPLE’s runtime scheduler improves training throughput by 1.6× compared to GPipe while reducing memory consumption by 12%.
  • DAPPLE supports BERT models up to 5.5 billion parameters on 8 V100 GPUs using re-computation, with linear scaling of maximum model size as layers increase.
  • On 25Gbps Ethernet, DAPPLE maintains smooth scalability and outperforms data parallelism (DP) variants, which suffer from performance degradation beyond 8 GPUs due to communication bottlenecks.
  • DAPPLE achieves high GPU utilization (up to 93%) and scales effectively even with longer pipelines, due to balanced distribution of model parameters and reduced cross-stage activation overhead.
  • The framework is insensitive to low inter-machine bandwidth, making it well-suited for large-scale clusters with heterogeneous interconnects.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.