Fully Decoupled Neural Network Learning Using Delayed Gradients

Huiping Zhuang, Yi Wang, Qinglai Liu, Zhiping Lin

TL;DR

Fully Decoupled training using Delayed Gradients (FDG) breaks the forward, backward, and update "lockings" of standard backpropagation, enabling true asynchronous parallel training across multiple GPUs. By introducing a novel gradient shrinking process to combat stale gradients, FDG achieves near-linear speedups without requiring any extra trainable parameters or sacrificing model accuracy.

What Problem Does This Paper Address?

Standard backpropagation (BP) is inherently sequential. A network cannot compute a layer's activations until the previous layer finishes (forward locking), cannot compute gradients until the subsequent layer completes (backward locking), and cannot update weights until the entire forward-backward pass is done (update locking).

When training deep networks across multiple GPUs using model parallelism, these lockings force most processors to sit idle, waiting for data to arrive. Existing decoupling methods attempt to solve this but fall short: Backward-Unlocking methods still suffer from forward locking, while Local Error Learning methods break the lockings but introduce heavy auxiliary neural networks, adding millions of extra parameters to train. FDG aims to achieve full decoupling with zero parameter overhead.

Methods

The authors propose Fully Decoupled Neural Network Learning Using Delayed Gradients (FDG), which consists of two core components:

  1. Network Splitting & Asynchronous Execution: The network is divided into $K$ distinct modules, each assigned to a different worker (GPU). Instead of waiting for the latest updates, each module executes its forward and backward passes simultaneously using delayed activations from the upstream module and delayed gradients from the downstream module.
  2. Gradient Shrinking (GS): Utilizing delayed gradients introduces "staleness," which can degrade model performance. To counteract this, FDG multiplies the backpropagated gradients by a shrinking factor $\beta$ ($0 < \beta \le 1$) before updating the module's weights. This effectively dampens the step size of stale updates, stabilizing the optimization path.
Illustration of the FDG asynchronous pipeline compared to sequential backpropagation.

Datasets

The method was evaluated on standard image classification benchmarks:

  • CIFAR-10 & CIFAR-100: 32x32 color images across 10 and 100 classes, respectively.
  • Tiny-ImageNet: 64x64 color images across 200 classes.
  • ImageNet: Used specifically to evaluate acceleration performance on large-scale data.

Key Insights and Ideas

  • True Parallelism via Delay: By accepting slightly outdated information from neighboring modules, FDG allows all layers of a neural network to compute at the same time.
  • Regularization via Shrinking: Stale gradients typically cause optimization to overshoot local minima. The authors show that scaling these gradients down via Gradient Shrinking acts as an implicit regularizer, often allowing the decoupled network to match or even exceed the accuracy of standard BP.
  • Zero-Parameter Overhead: Unlike alternative local learning methods, FDG requires no auxiliary networks or extra loss functions, preserving the original model architecture entirely.
Intuitive interpretation of how gradient shrinking prevents overshooting from stale gradients.

Key Results

  • Improved Accuracy: On CIFAR-10, a ResNet-56 trained with FDG ($\beta=0.5$) achieved a top-1 error rate of 5.90%, outperforming standard BP (6.19%).
  • Extreme Depth & Width: FDG successfully trained very wide networks (WRN-28-10) and extremely deep networks (ResNet-1202) without convergence issues.
  • Substantial Speedups: For WRN-28-10 on CIFAR-10, FDG delivered a 1.88× speedup with 2 modules, 2.72× with 3 modules, and 3.20× with 4 modules, demonstrating high GPU utilization compared to alternative pipeline methods.

Limitations and Future Work

  • Communication Bottlenecks: On large-scale datasets like ImageNet, transferring large activation and gradient tensors between GPUs introduces significant overhead. Without high-speed hardware interconnects (like NVLink), this communication cost reduces the ideal linear speedup.
  • Load Balancing: The current implementation assumes an even split of layers across modules. However, different layer types have varying computational complexities.

Future work will focus on developing automated module-splitting strategies to ensure equal computational loads across workers, alongside more efficient communication protocols.

Summary updated

BibTeX
@article{zhuang2022fully,
  author = {Huiping Zhuang and Yi Wang and Qinglai Liu and Zhiping Lin},
  title = {{Fully Decoupled Neural Network Learning Using Delayed Gradients}},
  journal = {IEEE Trans. Neural Networks Learn. Syst.},
  year = {2022},
  doi = {10.1109/tnnls.2021.3069883},
}
Figure