Towards Interpretable Deep Local Learning with Successive Gradient Reconciliation

Yibo Yang, Xiaojie Li, Motasem Alfarra, Hasan Abed Al Kader Hammoud, Adel Bibi, Philip Torr, Bernard Ghanem

Abstract

Deep neural network training is currently constrained by the memory demands of global Back-propagation (BP), which requires storing activations for the entire network until the backward pass is complete. Local learning offers a potential solution by partitioning networks into independently trainable modules, yet it historically suffers from a performance gap due to "discordance" between layers. This paper discusses Successive Gradient Reconciliation (SGR), a novel local learning strategy that aligns the objectives of neighboring modules. By mathematically reconciling local gradients, SGR achieves performance competitive with global BP on large-scale benchmarks like ImageNet while reducing memory consumption by over 40%.

1. Introduction

The scalability of modern deep learning is fundamentally limited by the "update locking" mechanism of Back-propagation (BP). To compute gradients, BP requires a complete forward pass followed by a backward pass, necessitating the storage of intermediate activations across all layers. As models grow in depth and parameter count, this memory overhead becomes a significant bottleneck, often requiring extensive multi-GPU setups to accommodate large batch sizes or high-resolution data.

Local learning aims to alleviate this by breaking the network into autonomous modules that update using local loss functions. However, these modules often lack coordination; a layer might optimize for its local task in a way that discards information necessary for subsequent layers. This "discordance" has traditionally prevented local learning from matching the accuracy of global BP, especially as networks increase in depth.

2. Successive Gradient Reconciliation (SGR)

The Successive Gradient Reconciliation (SGR) framework addresses the discordance problem by introducing a mathematical "handshake" between adjacent modules. Instead of training in total isolation, SGR ensures that the local objective of one layer is reconciled with the requirements of the preceding layer, mimicking the chain rule of global BP without its memory overhead.

2.1 The Reconciliation Mechanism

The core of SGR involves two primary components:

  1. Gradient Alignment: For any given module, the system calculates the gradient of the current module's local loss and the gradient of the previous module's loss with respect to the same intermediate features.
  2. The SGR Loss Function: A regularization term—specifically Mean Squared Error (MSE)—is applied to minimize the distance between these two gradients. This forces the current layer to optimize its local task while remaining aligned with the directional progress of the network's earlier stages.

2.2 Gradient Isolation and BP-Free Training

Crucially, SGR maintains "gradient isolation." Information only flows one step back to reconcile gradients, preventing the need for a global backward pass. The authors further demonstrate that SGR can operate in "BP-free" environments using Equiangular Tight Frames (ETF). ETFs serve as fixed, mathematically optimized local classifiers that guide learning without requiring internal back-propagation within the module, further streamlining the training process and enhancing biological plausibility.

3. Experimental Evaluation

The efficacy of SGR was evaluated on standard computer vision benchmarks, including CIFAR-10, CIFAR-100, and ImageNet-1K, across various architectures such as ResNets and modern Vision Transformers (ViT and Swin).

3.1 Memory Efficiency

SGR demonstrates significant hardware advantages. On the ImageNet dataset, the method reduced memory consumption by more than 40% compared to standard BP. A notable example is the Swin-Small transformer, where memory requirements dropped from 42.6 GB to 22.8 GB. This reduction potentially allows large-scale models to be trained on hardware that was previously insufficient.

3.2 Accuracy and Convergence

Despite the local nature of the updates, SGR maintains high performance. On ResNet-50 (ImageNet), SGR achieved a top-1 accuracy of 75.42%, coming remarkably close to the global BP baseline of 76.55% and outperforming existing local learning state-of-the-art methods like InfoPro. Furthermore, the authors provide a theoretical proof showing that minimizing the distance between local gradients provides a bound on the final layer's error. This explains why SGR remains stable even in extremely deep architectures, such as VGG-57, where standard BP might struggle with vanishing gradients.

4. Discussion and Future Work

While SGR represents a major step forward for local learning, a small performance gap (roughly 1-2%) remains on the largest datasets. Additionally, the requirement for extra gradient calculations for reconciliation results in a slightly longer training time per iteration compared to standard BP, though it remains faster than many competing local learning algorithms.

The implications for the future are significant. SGR’s compatibility with Transformers suggests it could be adapted for the fine-tuning of Large Language Models (LLMs). By reducing the memory footprint of tuning models like Llama or GPT, SGR could democratize access to state-of-the-art AI research, enabling sophisticated model development on limited hardware resources.

Summary updated

BibTeX
@inproceedings{yang2024towards,
  author = {Yibo Yang and Xiaojie Li and Motasem Alfarra and Hasan Abed Al Kader Hammoud and Adel Bibi and Philip Torr and Bernard Ghanem},
  title = {{Towards Interpretable Deep Local Learning with Successive Gradient Reconciliation}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=1ZJLNLZIpk},
}
Figure