TL;DR
This paper demonstrates that predictive coding (PC), a biologically plausible theory of brain function, is mathematically equivalent to backpropagation on arbitrary computation graphs. By showing that PC can implement automatic differentiation using only local, Hebbian-style updates, the authors bridge the gap between modern deep learning architectures (like CNNs and LSTMs) and the distributed, parallel nature of neural circuitry.
What Problem Does This Paper Address?
Backpropagation (backprop) is the workhorse of deep learning, but it faces significant criticism from neuroscientists for being "biologically implausible." Two major hurdles are the non-locality of information (neurons needing to know the state of distant output neurons) and the weight transport problem (the requirement for identical forward and backward connection weights).
While previous research showed that PC could approximate backprop in simple multilayer perceptrons (MLPs), the true power of backprop lies in its ability to optimize any differentiable program expressed as a computation graph. This paper asks: Can predictive coding scale to the complex, branching, and recurrent graphs used in state-of-the-art machine learning, and can it do so using only local learning rules?
Methods
The authors extend the framework of predictive coding to arbitrary Directed Acyclic Graphs (DAGs).
- Variational Inference: They derive PC as a process of minimizing Variational Free Energy (VFE) under a hierarchical Gaussian generative model. In this view, the brain is constantly trying to minimize the "prediction error" between its internal model and incoming data.
- Two-Phase Algorithm:
- Feedforward Sweep: The graph is run forward to generate initial predictions and errors.
- Backwards Iteration: Vertex activities and prediction errors are updated in parallel until they reach an equilibrium.
- Local Learning Rules: Crucially, the update for any given node only requires information from its immediate parents and children. If the functions are "parameter-linear" (like standard neural network layers), these updates become purely Hebbian.
Datasets
The authors evaluated their generalized predictive coding algorithm across several standard benchmarks:
- Numerical Test: A custom, highly nonlinear branching function used to verify gradient convergence.
- CNNs: Evaluated on SVHN, CIFAR-10, and CIFAR-100 for image classification.
- RNNs: A character-level name-origin classification task.
- LSTMs: Next-character prediction using the complete works of Shakespeare.
Key Insights and Ideas
- Equilibrium Equivalence: The paper's core theoretical contribution is proving that at the equilibrium point of the VFE minimization, the local prediction errors ($\epsilon_i^*$) are exactly equal to the backpropagated gradients ($\partial L / \partial v_i$) used in standard deep learning.
- The "Tension" Analogy: The authors describe backprop as loading "tension" at the output and propagating it backwards sequentially. In contrast, PC spreads this tension throughout the entire graph simultaneously until it settles into a state where every link reflects the correct gradient.
- Parallelism by Design: Unlike the sequential backward pass of backprop, PC allows all layers to update their states in parallel. This is a natural fit for distributed neuromorphic hardware and biological brains.
- Generality: The method works for complex structures like LSTMs, which involve multiplicative interactions and non-layer-like branching, proving that PC is a viable alternative to automatic differentiation.
Key Results
- Gradient Convergence: In numerical tests, PC gradients converged exponentially to the exact gradients computed by automatic differentiation.
- Performance Parity: PC-trained CNNs, RNNs, and LSTMs achieved performance virtually identical to their backprop-trained counterparts on all tested datasets.
- Robustness: The algorithm proved robust to high learning rates (up to 0.5) without diverging.
- Computational Trade-off: While PC is currently ~100-200x slower on serial hardware (like standard GPUs) due to the need for iterative convergence, the authors argue this cost would be mitigated on truly parallel neuromorphic architectures.
Limitations and Future Work
- Serial Bottleneck: The iterative nature of the backward phase makes PC computationally expensive on current hardware compared to the single-pass nature of backprop.
- Biological Plausibility of BPTT: While PC handles the unrolled graph of an RNN, the act of "unrolling" through time itself remains a point of biological contention that this paper does not fully resolve.
- Scaling to SOTA: The experiments focused on relatively small models to prove theoretical convergence. Future work is needed to scale these methods to massive architectures like ResNets or Transformers.
- Continuous Learning: The authors suggest exploring how PC handles continuous, non-i.i.d. data streams, which would be more representative of how biological brains actually learn.
Summary updated