Predictive Coding Approximates Backprop along Arbitrary Computation Graphs

Beren Millidge, Alexander Tschantz, Christopher L. Buckley
6/7/2020
cs.LGcs.NE

Official code: BerenMillidge/PredictiveCodingBackprop (179 stars, Python, last commit 2020-11-23).

Abstract

Backpropagation of error (backprop) is a powerful algorithm for training machine learning architectures through end-to-end differentiation. However, backprop is often criticised for lacking biological plausibility.

Show full abstract

Recently, it has been shown that backprop in multilayer-perceptrons (MLPs) can be approximated using predictive coding, a biologically-plausible process theory of cortical computation which relies only on local and Hebbian updates. The power of backprop, however, lies not in its instantiation in MLPs, but rather in the concept of automatic differentiation which allows for the optimisation of any differentiable program expressed as a computation graph. Here, we demonstrate that predictive coding converges asymptotically (and in practice rapidly) to exact backprop gradients on arbitrary computation graphs using only local learning rules. We apply this result to develop a straightforward strategy to translate core machine learning architectures into their predictive coding equivalents. We construct predictive coding CNNs, RNNs, and the more complex LSTMs, which include a non-layer-like branching internal graph structure and multiplicative interactions. Our models perform equivalently to backprop on challenging machine learning benchmarks, while utilising only local and (mostly) Hebbian plasticity. Our method raises the potential that standard machine learning algorithms could in principle be directly implemented in neural circuitry, and may also contribute to the development of completely distributed neuromorphic architectures.

View on arXivView PDF

Code Implementations(1)

Code for the paper "Predictive Coding Approximates Backprop along Arbitrary Computation Graphs"

17927Python, ShellMay 25, 20206 years ago

Similar Papers

Cite this paper

@article{millidge2020predictive,
  title  = {Predictive Coding Approximates Backprop along Arbitrary Computation Graphs},
  author = {Beren Millidge and Alexander Tschantz and Christopher L. Buckley},
  year   = {2020},
  eprint = {2006.04182},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2006.04182}
}

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/2006.04182.svg)](https://codeofpaper.com/paper/2006.04182)

Discussion