Accumulated Decoupled Learning: Mitigating Gradient Staleness in Inter-Layer Model Parallelization

Huiping Zhuang, Zhiping Lin, Kar-Ann ToharXiv 2020

Introduction

Training massive deep neural networks (DNNs) is computationally expensive. While data parallelism is widely adopted, model parallelism—splitting the network across multiple workers—is often constrained by the sequential nature of backpropagation (BP). In standard BP, layers are "locked": a layer cannot perform its backward pass until the layers above it have completed theirs. "Decoupled learning" attempts to break these locks to allow asynchronous operation. However, this introduces "gradient staleness," where a module's weights have changed by the time it receives a gradient from an upper module. This staleness typically limits effective model splitting to just 2–4 modules before convergence suffers.

Accumulated Decoupled Learning (ADL)

Accumulated Decoupled Learning (ADL) is a novel technique designed to overcome these limitations. The core innovation is the integration of Gradient Accumulation (GA) within a decoupled framework. Instead of immediate weight updates upon receiving a stale gradient, ADL accumulates gradients over $M$ steps before updating.

Staleness Mitigation Mechanism

ADL removes forward, backward, and update lockings, enabling all modules to process different data batches in parallel. The authors demonstrate that increasing the accumulation steps ($M$) mathematically reduces the "Level of Staleness" (LoS). The accumulated gradient provides a more stable and less outdated signal for weight updates.

This figure illustrates how increasing the GA steps (M) from 2 to 4 reduces the batch index delay (d) between forward and backward passes, effectively lowering staleness.

Experimental Evaluation

The researchers evaluated ADL across several standard benchmarks and deep architectures, including CIFAR-10 (ResNet-18 to ResNet-1202) and ImageNet (ResNet-18 to ResNet-101). ADL successfully scales model parallelism to 10 modules, a significant improvement over previous state-of-the-art methods. Empirical results show that even small values of $M$ (e.g., 2 or 4) lead to a dramatic reduction in staleness (up to 75% reduction in LoS) without the generalization issues typically seen with very large batch sizes.

Results and Discussion

ADL achieved substantial speedups compared to standard backpropagation, reaching a 6.30x speedup on ResNet-1202 (CIFAR-10) and a 3.32x speedup on ResNet-101 (ImageNet). Crucially, ADL maintains or slightly improves upon the accuracy of the global BP baseline. For example, on ImageNet with ResNet-50 split into 4 modules, ADL achieved a 23.37% Top-1 error, compared to 23.65% for standard BP.

Learning curves showing that ADL (red and purple lines) converges much faster in terms of wall-clock time compared to standard BP (black) and other decoupled methods.

Compared to other decoupled methods like DDG, DGL, and FR, ADL consistently demonstrated faster convergence and superior accuracy across various time-scales.

Conclusion and Limitations

ADL provides a robust framework for inter-layer model parallelization by effectively mitigating gradient staleness. However, its efficiency is sensitive to workload balancing; uneven distribution of layers across GPUs can create bottlenecks. Additionally, the accumulation step $M$ introduces a new hyperparameter for tuning. Future work may address automated workload balancing and communication overhead in distributed environments.

Summary updated

BibTeX
@misc{zhuang2020accumulated,
  author = {Huiping Zhuang and Zhiping Lin and Kar-Ann Toh},
  title = {{Accumulated Decoupled Learning: Mitigating Gradient Staleness in Inter-Layer Model Parallelization}},
  year = {2020},
  eprint = {2012.03747},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2012.03747},
}
Figure