Align, then memorise: the dynamics of learning with feedback alignment

Maria Refinetti, Stéphane d'Ascoli, Ruben Ohana, Sebastian Goldt
11/24/2020
stat.MLcond-mat.dis-nncs.LG

Official code: sdascoli/dfa-dynamics (14 stars, Jupyter Notebook, last commit 2021-05-18).

Abstract

Direct Feedback Alignment (DFA) is emerging as an efficient and biologically plausible alternative to the ubiquitous backpropagation algorithm for training deep neural networks. Despite relying on random feedback weights for the backward pass, DFA successfully trains state-of-the-art models such as Transformers.

Show full abstract

On the other hand, it notoriously fails to train convolutional networks. An understanding of the inner workings of DFA to explain these diverging results remains elusive. Here, we propose a theory for the success of DFA. We first show that learning in shallow networks proceeds in two steps: an alignment phase, where the model adapts its weights to align the approximate gradient with the true gradient of the loss function, is followed by a memorisation phase, where the model focuses on fitting the data. This two-step process has a degeneracy breaking effect: out of all the low-loss solutions in the landscape, a network trained with DFA naturally converges to the solution which maximises gradient alignment. We also identify a key quantity underlying alignment in deep linear networks: the conditioning of the alignment matrices. The latter enables a detailed understanding of the impact of data structure on alignment, and suggests a simple explanation for the well-known failure of DFA to train convolutional neural networks. Numerical experiments on MNIST and CIFAR10 clearly demonstrate degeneracy breaking in deep non-linear networks and show that the align-then-memorise process occurs sequentially from the bottom layers of the network to the top.

View on arXivView PDF

Code Implementations(1)

143Jupyter Notebook, PythonNov 18, 20205 years ago

Similar Papers

Cite this paper

@article{refinetti2020align,
  title  = {Align, then memorise: the dynamics of learning with feedback alignment},
  author = {Maria Refinetti and Stéphane d'Ascoli and Ruben Ohana and Sebastian Goldt},
  year   = {2020},
  eprint = {2011.12428},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2011.12428}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2011.12428.svg)](https://codeofpaper.com/paper/2011.12428)

Discussion