Optimizing Multi-GPU Parallelization Strategies for Deep Learning Training

Saptadeep Pal, Eiman Ebrahimi, Arslan Zulfiqar, Yaosheng Fu, Victor Zhang, Szymon Migacz, David W. Nellans, Puneet Gupta

This paper, a collaboration between UCLA and NVIDIA researchers, tackles a fundamental wall in scaling deep learning training: the point where simply adding more data-parallel workers starts to hurt more than it helps.

TL;DR

As deep learning models scale to massive GPU clusters, standard Data Parallelism (DP) suffers from diminishing returns due to communication overhead and "statistical efficiency loss" from oversized batches. This paper introduces an analytical framework and a tool called DLPlacer to identify the optimal "tipping point" where switching to a hybrid strategy—combining DP with Model Parallelism (MP)—yields significantly faster end-to-end training times (up to 26.5% faster at scale).

What Problem Does This Paper Address?

In the race for faster training, the industry's default move is Data Parallelism (DP): give every GPU a copy of the model and a different slice of data. However, DP has two major "scalability taxes":

  1. Communication Overhead: As you add GPUs, the time spent synchronizing gradients across the network increases.
  2. Statistical Efficiency Loss: To keep GPUs busy, DP scaling usually increases the global batch size. Beyond a certain point, larger batches require more epochs (passes through the data) to reach the same target accuracy.

Eventually, you reach a point where adding a 65th GPU doesn't just provide less than 1/64th improvement—it might actually make the total training time longer. The authors seek to find exactly when to stop scaling DP and start using Model Parallelism (MP) (splitting the model itself across GPUs) to improve throughput without increasing the batch size.

Methods

The researchers propose a three-pronged approach:

  • Analytical Decomposition: They break down total training time ($C$) into three variables: $C = T \times S \times E$, where $T$ is the time per step, $S$ is the number of steps per epoch, and $E$ is the number of epochs to converge. This allows them to mathematically model how different parallelization strategies affect the final clock time.
  • Hybrid Parallelization: Instead of choosing DP or MP, they use both. They group GPUs into "workers." Each worker consists of multiple GPUs running a model-parallel version of the network, and these workers then interact via data parallelism.
  • DLPlacer: A novel tool based on Integer Linear Programming (ILP). It takes a model’s Data Flow Graph (DFG) and the hardware’s topology (like NVLink bandwidth) to automatically decide which operations should live on which GPU. It specifically aims to minimize the "critical path" of execution by keeping dependent operations on the same device when communication costs are too high.

Datasets

The authors evaluated their strategies using three heavy-hitting models and their respective standard datasets:

  • Inception-v3: Trained on ImageNet for image recognition.
  • GNMT (Google Neural Machine Translation): Trained on the WMT’16 German-English dataset.
  • BigLSTM: A large-scale language model trained on the 1 Billion Word dataset.

Key Insights and Ideas

  • The "Tipping Point" is Real: Every model has a unique scale where DP efficiency collapses. For BigLSTM, this happened as early as 16 GPUs; for GNMT, it was closer to 64.
  • MP as a Batch-Size Stabilizer: The "aha moment" is that MP allows you to increase compute power (reducing $T$) without increasing the global batch size. This bypasses the statistical efficiency loss ($E$) that plagues pure DP scaling.
  • Placement is Hard for Humans: Manual "expert" placement of operations for Inception-v3 yielded a 21% speedup. DLPlacer found an optimized placement that achieved a 32% speedup by better managing the trade-off between concurrent execution and communication latency.
  • Communication vs. Computation: On modern hardware like NVIDIA’s V100 with NVLink, the ratio of communication overhead to computation is much higher than on older chips. This makes the "smart" placement provided by DLPlacer even more critical.

Key Results

The hybrid strategy consistently outperformed pure DP at high GPU counts:

  • Inception-v3: Projected 26.5% speedup over DP-only at 256 GPUs.
  • BigLSTM: Achieved a 22% speedup at just 32 GPUs.
  • GNMT: Projected an 8% speedup at 256 GPUs.
  • DLPlacer Accuracy: The tool’s predicted speedups were remarkably accurate, falling within 6% of actual measurements on real hardware.

Limitations and Future Work

  • Granularity of Splitting: DLPlacer currently works at the level of high-level operations (like a full Convolution layer). The authors note that "finer-grained" splitting (e.g., splitting a single layer's channels across GPUs) could yield even higher gains but requires deeper integration with deep learning frameworks.
  • Optimistic Scaling Assumptions: For their projections, the authors assumed a "scaling efficiency" of 1 for DP (meaning zero communication overhead for gradient syncing). In reality, DP is usually less efficient, meaning the relative gains from their hybrid approach would likely be even higher in practice.
  • Hyperparameter Sensitivity: The "tipping point" depends on how well hyperparameters (like learning rate) are tuned for large batches. While the authors followed best practices, breakthroughs in large-batch training could shift these results.

Summary updated

BibTeX
@inproceedings{pal2019optimizing,
  author = {Saptadeep Pal and Eiman Ebrahimi and Arslan Zulfiqar and Yaosheng Fu and Victor Zhang and Szymon Migacz and David W. Nellans and Puneet Gupta},
  title = {{Optimizing Multi-GPU Parallelization Strategies for Deep Learning Training}},
  booktitle = {IEEE Micro},
  year = {2019},
  url = {https://openreview.net/forum?id=VKBTnO5hZT},
}

Loading related content...

Figure