Skip to main content
QUICK REVIEW

[Paper Review] Pipelined Backpropagation at Scale: Training Large Models without Batches

Atli Kosson, Vitaliy Chiley|arXiv (Cornell University)|Mar 25, 2020
Advanced Neural Network ApplicationsComputer Science53 references9 citations
TL;DR

This paper proposes a fine-grained, asynchronous pipelined backpropagation training method for large deep learning models using batch size one, introducing Spike Compensation and Linear Weight Prediction to mitigate gradient staleness and weight inconsistency. It achieves accuracy comparable to standard SGD on CIFAR-10 and ImageNet with ResNets and VGGs, enabling efficient hardware utilization without batch parallelism overhead.

ABSTRACT

New hardware can substantially increase the speed and efficiency of deep neural network training. To guide the development of future hardware architectures, it is pertinent to explore the hardware and machine learning properties of alternative training algorithms. In this work we evaluate the use of small batch, fine-grained Pipelined Backpropagation, an asynchronous pipeline parallel training algorithm that has significant hardware advantages. We introduce two methods, Spike Compensation and Linear Weight Prediction, that effectively mitigate the downsides caused by the asynchronicity of Pipelined Backpropagation and outperform existing techniques in our setting. We show that appropriate normalization and small batch sizes can also aid training. With our methods, fine-grained Pipelined Backpropagation using a batch size of one can match the accuracy of SGD for multiple networks trained on CIFAR-10 and ImageNet. Simple scaling rules allow the use of existing hyperparameters for traditional training without additional tuning.

Motivation & Objective

  • To explore alternative training algorithms that better align with emerging hardware architectures favoring low-latency, fine-grained parallelism over traditional batch parallelism.
  • To address the instability of pipelined backpropagation caused by weight inconsistency and gradient staleness when training with small or single-batch sizes.
  • To enable high hardware efficiency and scalability in training large models by eliminating fill-and-drain overheads of pipeline parallelism.
  • To develop methods that stabilize training without requiring extensive hyperparameter tuning, using simple scaling rules.

Proposed method

  • Introduces Spike Compensation to correct for sudden, large gradient spikes caused by delayed weight updates in asynchronous pipelined training.
  • Proposes Linear Weight Prediction (LWP) to estimate future weight values based on recent gradients and momentum, reducing the impact of stale gradients.
  • Uses a micro-batch size of one to minimize weight inconsistency and gradient delay, enabling stable training at scale.
  • Applies normalization techniques such as Group Normalization or Online Normalization to replace Batch Normalization, which is ineffective at batch size one.
  • Employs simple scaling rules to maintain equivalent update magnitudes per effective batch size, allowing reuse of standard hyperparameters.
  • Validates the framework using multiple models (ResNet, VGG) and datasets (CIFAR-10, ImageNet), comparing against standard SGD and PyTorch implementations.

Experimental results

Research questions

  • RQ1Can pipelined backpropagation with batch size one achieve training stability and accuracy comparable to standard SGD?
  • RQ2How do gradient staleness and weight inconsistency affect training in fine-grained pipelined settings, and can they be effectively mitigated?
  • RQ3Can Spike Compensation and Linear Weight Prediction stabilize training without requiring extensive hyperparameter tuning?
  • RQ4How do normalization techniques like Group Normalization or Online Normalization perform in low-batch settings compared to Batch Normalization?
  • RQ5Can simple scaling rules transfer hyperparameters from standard SGD to pipelined training without re-tuning?

Key findings

  • Fine-grained pipelined backpropagation with batch size one and the proposed methods achieves test accuracy within 0.5% of standard SGD on ResNet-20 and ResNet-56 for CIFAR-10.
  • On ImageNet, the method achieves 92.48% top-1 accuracy with ResNet-56, matching the performance of standard SGD.
  • Spike Compensation and Linear Weight Prediction significantly reduce training instability caused by asynchronous weight updates and gradient staleness.
  • The combination of Spike Compensation and LWP${}^{ ext{v}}_{ ext{D}}$ outperforms LWP${}^{ ext{w}}_{ ext{D}}$, especially under small-batch conditions.
  • Normalization techniques like Group Normalization and Online Normalization effectively replace Batch Normalization in low-batch training, maintaining convergence stability.
  • Simple scaling rules allow direct reuse of standard SGD hyperparameters without re-tuning, enabling plug-and-play deployment on new hardware.

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.