Decoupled Parallel Backpropagation with Convergence Guarantee

Zhouyuan Huo, Bin Gu, Qian Yang, Heng Huang

TL;DR

This paper introduces Decoupled Parallel Backpropagation (DDG), a method that breaks the "backward locking" bottleneck in neural network training. By using delayed gradients, DDG allows different modules of a deep network to be updated in parallel across multiple GPUs, achieving up to a 2x speedup on deep ResNets without sacrificing accuracy or theoretical convergence guarantees.

What Problem Does This Paper Address?

Standard backpropagation (BP) is inherently sequential. To update a specific layer, you must first complete the entire forward pass to get a prediction, and then wait for the error gradients to propagate backward from the output layer to that specific layer. This is known as backward locking.

In a multi-GPU setup, this means that while the "top" layers are calculating gradients, the "bottom" layers sit idle. As networks grow deeper (e.g., ResNet-110), the time spent waiting for these dependencies to resolve becomes the primary bottleneck in training. Previous attempts to solve this, like Decoupled Neural Interfaces (DNI), used "synthetic gradients" to guess the error, but these often lead to poor performance or instability in very deep architectures.

Methods

The authors propose Decoupled Parallel Backpropagation using Delayed Gradients (DDG). The core idea is to split a network into $K$ modules and allow them to operate asynchronously.

  • Delayed Gradients: Instead of waiting for the "fresh" gradient from the subsequent module, a module uses a "stale" gradient stored from a previous iteration.
  • Pipelining: While Module B is calculating the gradients for iteration $t$, Module A can simultaneously calculate its own updates for iteration $t$ using the gradient information it received from Module B during iteration $t-1$.
Diagram illustrating the DDG method with delayed gradients stored between modules.
  • Algorithms: The authors adapt this approach into two popular optimizers: SGD-DDG and Adam-DDG.
  • Convergence Guarantee: Unlike many heuristic-based parallelization methods, the authors provide a rigorous mathematical proof showing that DDG is guaranteed to converge to critical points for non-convex problems, provided the learning rate is appropriately managed.

Datasets

The researchers evaluated their method using standard computer vision benchmarks:

  • CIFAR-10: 60,000 32x32 color images in 10 classes.
  • CIFAR-100: Similar to CIFAR-10 but with 100 fine-grained classes.
  • Architectures: They tested on ResNet-8, ResNet-56, and ResNet-110 to demonstrate how the method scales with increasing depth.

Key Insights and Ideas

  • Stability through Reality: DNI fails because it tries to predict gradients using a separate neural network, which adds noise and complexity. DDG succeeds because it uses actual gradients—they just happen to be slightly old.
  • The "Aha" Moment on Convergence: The authors proved that the error introduced by using a stale gradient is bounded. As long as the weights don't change too drastically between iterations (controlled by the learning rate), the stale gradient remains a "good enough" direction for descent.
  • Depth is the Bottleneck: The paper highlights that for modern deep networks, the backward pass takes roughly twice as long as the forward pass. By parallelizing the backward pass, you tackle the most expensive part of the training loop.

Key Results

  • Speedup: On a ResNet-110 architecture distributed across 4 GPUs, DDG achieved a 2x speedup in training time compared to standard backpropagation.
  • Accuracy Preservation: DDG maintains nearly identical accuracy to standard BP. For example, on CIFAR-10 with ResNet-110, BP achieved 93.53% accuracy while DDG achieved 93.41%.
  • Robustness to Splitting: Competing methods like DNI become highly unstable as you increase the number of split points in the network. DDG remained stable even when the network was split into four distinct modules.
Training curves showing DDG maintaining stability with multiple split points, while DNI diverges.
  • GPU Efficiency: The method significantly improved "Volatile GPU Utility," keeping multiple processors active simultaneously rather than waiting in a sequential chain.

Limitations and Future Work

  • Communication Overhead: While DDG breaks the computation lock, modules still need to exchange activations and gradients. On systems with slow interconnects (like standard Ethernet vs. NVLink), this communication could eat into the speedup gains.
  • Memory Usage: To implement delayed gradients, the system must store stale gradients and activations in memory, which increases the memory footprint per GPU.
  • Extreme Parallelism: The paper focuses on splitting networks into a relatively small number of modules ($K=2$ to $4$). It remains to be seen how the "staleness" of gradients affects convergence if a network were split into dozens of parallel modules.
  • Future Directions: The authors suggest that this layer-wise parallelism could be combined with traditional filter-wise model parallelism for even greater scaling on massive clusters.

Summary updated

BibTeX
@inproceedings{huo2018decoupled,
  author = {Zhouyuan Huo and Bin Gu and Qian Yang and Heng Huang},
  title = {{Decoupled Parallel Backpropagation with Convergence Guarantee}},
  booktitle = {International Conference on Machine Learning},
  year = {2018},
  url = {https://openreview.net/forum?id=BJVc_j-dbH},
}
Figure