Understanding Synthetic Gradients and Decoupled Neural Interfaces

Wojciech Marian Czarnecki, Grzegorz Swirszcz, Max Jaderberg, Simon Osindero, Oriol Vinyals, Koray Kavukcuoglu

Abstract: When training neural networks, the use of Synthetic Gradients (SG) allows layers or modules to be trained without update locking - without waiting for a true error gradient to be backpropagated - resulting in Decoupled Neural Interfaces (DNIs). This unlocked ability of being able to update parts of a neural network asynchronously and with only local information was demonstrated to work empirically in Jaderberg et al (2016). However, there has been very little demonstration of what changes DNIs and SGs impose from a functional, representational, and learning dynamics point of view. In this paper, we study DNIs through the use of synthetic gradients on feed-forward networks to better understand their behaviour and elucidate their effect on optimisation. We show that the incorporation of SGs does not affect the representational strength of the learning system for a neural network, and prove the convergence of the learning system for linear and deep linear models. On practical problems we investigate the mechanism by which synthetic gradient estimators approximate the true loss, and, surprisingly, how that leads to drastically different layer-wise representations. Finally, we also expose the relationship of using synthetic gradients to other error approximation techniques and find a unifying language for discussion and comparison.

Introduction

Standard backpropagation is constrained by sequential dependencies known as "locking." Layers must wait for forward passes to complete (forward locking), for the loss to be evaluated (update locking), and for gradients to propagate back from the output (backward locking). Synthetic Gradients (SG), introduced by Jaderberg et al. (2016), address these bottlenecks by using local modules to predict gradients, enabling Decoupled Neural Interfaces (DNIs) where layers update asynchronously. This paper provides a deep theoretical and empirical analysis of SG behavior, proving convergence in linear cases and exploring how these approximations alter internal network representations.

The Architecture of Decoupled Neural Interfaces

To overcome update and backward locking, a DNI inserts a Synthetic Gradient module at a specific layer. This module predicts the gradient that would normally be received from higher layers, allowing the lower layers to update immediately without waiting for the full backpropagation chain.

Comparison of standard backpropagation (a) and Decoupled Neural Interfaces with Synthetic Gradients (b).

The authors analyze these interfaces through mathematical proofs and empirical visualizations. They demonstrate that other biologically inspired learning rules, such as Feedback Alignment (FA) and Direct Feedback Alignment (DFA), can be interpreted as specific, non-trainable instances of the SG framework.

Methodology and Datasets

The study utilizes a multi-pronged approach to understand the "under-the-hood" mechanics of DNIs:

  • Mathematical Analysis: Examining critical points and providing formal convergence proofs for linear and deep linear models.
  • Representational Analysis: Using Representation Dissimilarity Matrices (RDMs) to compare internal feature structures between SG-trained and standard networks.
  • Implicit Loss Visualization: Reconstructing the loss surfaces perceived by SG modules to understand the optimization landscape.

Experiments were conducted on artificial 2D and 100D datasets (linear, noisy linear, and random) to test optimization limits, as well as on MNIST using deep ReLU networks (up to 50 layers) with batch normalization.

Representational Divergence and Learning Dynamics

A core finding of the paper is that while SG-trained networks can achieve functional parity with standard backpropagation, their internal representations diverge significantly. In standard networks, representations evolve smoothly across layers. In contrast, SG-trained networks often exhibit a sharp "jump" in representation style at the layer where the SG module is introduced.

Visualization of representational similarity over training iterations for single and multi-layer SG configurations.

Furthermore, the choice of SG architecture matters. For instance, linear SG modules effectively assume a quadratic local loss surface. While this "smooths" the optimization landscape and can lead to faster initial convergence in very deep networks, it struggles with non-quadratic surfaces like the log-loss used in logistic regression.

Key Results and Conclusion

The paper establishes that SG-based training is guaranteed to converge to the global optimum for shallow and deep linear models minimizing Mean Squared Error. It also highlights the "conspiring" effect: when SG errors backpropagate into the main network, the system stabilizes by making gradients easier to predict, though this can reduce the benefits of full decoupling.

While general convergence proofs for non-linear architectures remain future work, this research clarifies that SGs are not merely regularizers but fundamental shifts in learning dynamics. By unifying various gradient approximation techniques under a single framework, the authors provide a robust foundation for future developments in asynchronous and biologically plausible neural network training.

Summary updated

Abstract

When training neural networks, the use of Synthetic Gradients (SG) allows layers or modules to be trained without update locking - without waiting for a true error gradient to be backpropagated - resulting in Decoupled Neural Interfaces (DNIs). This unlocked ability of being able to update parts of a neural network asynchronously and with only local information was demonstrated to work empirically in Jaderberg et al (2016). However, there has been very little demonstration of what changes DNIs and SGs impose from a functional, representational, and learning dynamics point of view. In this paper, we study DNIs through the use of synthetic gradients on feed-forward networks to better understand their behaviour and elucidate their effect on optimisation. We show that the incorporation of SGs does not affect the representational strength of the learning system for a neural network, and prove the convergence of the learning system for linear and deep linear models. On practical problems we investigate the mechanism by which synthetic gradient estimators approximate the true loss, and, surprisingly, how that leads to drastically different layer-wise representations. Finally, we also expose the relationship of using synthetic gradients to other error approximation techniques and find a unifying language for discussion and comparison.
BibTeX
@inproceedings{czarnecki2017understanding,
  author = {Wojciech Marian Czarnecki and Grzegorz Swirszcz and Max Jaderberg and Simon Osindero and Oriol Vinyals and Koray Kavukcuoglu},
  title = {{Understanding Synthetic Gradients and Decoupled Neural Interfaces}},
  booktitle = {International Conference on Machine Learning},
  year = {2017},
  url = {https://openreview.net/forum?id=HJbXhjZOWS},
}
Figure