Skip to main content
QUICK REVIEW

[Paper Review] Interlocking Backpropagation: Improving depthwise model-parallelism

Aidan N. Gomez, Oscar Key|arXiv (Cornell University)|Oct 8, 2020
Advanced Neural Network ApplicationsComputer Science8 references5 citations
TL;DR

This paper proposes interlocking backpropagation, a hybrid training strategy that improves depthwise model-parallelism by inserting auxiliary classification heads at regular intervals in deep networks, restricting gradient flow to enhance compute efficiency. It achieves significantly faster training than end-to-end backpropagation while recovering most of the performance lost in purely local learning, outperforming both in training efficiency and test accuracy on ResNets and Transformers under fixed time constraints.

ABSTRACT

The number of parameters in state of the art neural networks has drastically increased in recent years. This surge of interest in large scale neural networks has motivated the development of new distributed training strategies enabling such models. One such strategy is model-parallel distributed training. Unfortunately, model-parallelism can suffer from poor resource utilisation, which leads to wasted resources. In this work, we improve upon recent developments in an idealised model-parallel optimisation setting: local learning. Motivated by poor resource utilisation in the global setting and poor task performance in the local setting, we introduce a class of intermediary strategies between local and global learning referred to as interlocking backpropagation. These strategies preserve many of the compute-efficiency advantages of local optimisation, while recovering much of the task performance achieved by global optimisation. We assess our strategies on both image classification ResNets and Transformer language models, finding that our strategy consistently out-performs local learning in terms of task performance, and out-performs global learning in training efficiency.

Motivation & Objective

  • To address poor resource utilization in global model-parallel training and degraded performance in local learning.
  • To develop a middle-ground strategy between local and global backpropagation that preserves compute efficiency and improves task performance.
  • To evaluate the trade-off between training speed and model accuracy in large-scale distributed training.
  • To provide a generic, open-source framework for studying interlocking backpropagation strategies.

Proposed method

  • Introduces n-wise interlocking backpropagation, where auxiliary classification heads are added at regular intervals in deep networks to create local training signals.
  • Restricts gradient flow between modules to prevent full backward pass dependencies, enabling earlier weight updates.
  • Uses local losses from auxiliary heads to train each module independently, reducing idle time and communication bottlenecks.
  • Employs a fixed-time training perspective to evaluate performance, favoring strategies with faster step times.
  • Applies the method to ResNets and Transformer-based language models, training with Adam and measuring perplexity.
  • Uses micro-batch processing and TPU-based distributed training to scale experiments across multiple accelerators.

Experimental results

Research questions

  • RQ1Can a hybrid training strategy between local and global learning improve both training efficiency and model performance in depthwise model-parallelism?
  • RQ2How does interlocking backpropagation compare to end-to-end and 1-wise local learning in terms of training speed and test accuracy?
  • RQ3To what extent can auxiliary classification heads recover performance lost in purely local training?
  • RQ4Does interlocking backpropagation scale effectively to large models like Transformers under fixed time constraints?

Key findings

  • 2-wise interlocking backpropagation reduces training step time to less than half of standard end-to-end training while achieving similar test perplexity on 4-module Transformer models.
  • Under fixed time constraints, interlocking backpropagation outperforms end-to-end training in model performance, as it enables more weight updates in the same time.
  • On CIFAR-10 and CIFAR-100, 2-wise interlocking outperforms both end-to-end and 1-wise training in test accuracy, despite faster training.
  • For Transformer language models, interlocking backpropagation closes much of the performance gap between 1-wise and end-to-end training, though it does not surpass end-to-end in perplexity.
  • The method demonstrates that varying the n-parameter of n-wise interlocking provides a smooth trade-off between compute efficiency and modeling performance.
  • The open-source framework at https://github.com/oscarkey/interlocking-backprop enables reproducible study of this class of optimization algorithms.

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.