NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Predictive Coding beyond Gaussian Distributions

Luca Pinchetti, Tommaso Salvatori, Yordan Yordanov, Beren Millidge, Yuhang Song, Thomas Lukasiewicz

Abstract

Predictive Coding (PC) has long been proposed as a biologically plausible, decentralized alternative to Backpropagation (BP). However, PC has historically failed to scale to modern deep learning architectures like Transformers. This work identifies the rigid assumption of Gaussian error distributions as the primary cause of this failure. By generalizing the PC framework to handle arbitrary probability distributions via Kullback–Leibler (KL) divergence, the authors demonstrate that PC can successfully train complex architectures, including Transformers and Variational Autoencoders (VAEs), achieving performance parity with BP.

Introduction: Breaking the Gaussian Glass Ceiling

Predictive Coding (PC) is inspired by the brain's hypothesized mechanism for processing information through hierarchical prediction. Unlike Backpropagation (BP), which requires a global feedback signal, PC operates through local error minimization. Despite its theoretical appeal, PC has struggled to keep up with the state-of-the-art in machine learning. A recent study presented at NeurIPS 2022, "Predictive Coding beyond Gaussian Distributions," bridges this gap by replacing traditional Gaussian assumptions with a generalized framework, bringing neuroscience-inspired learning into the era of Large Language Models.

The Problem: The Gaussian Bottleneck

Standard deep learning relies on BP, which creates a computational bottleneck because updates to early layers must wait for signals from the final layer. PC addresses this by making learning "local": each layer predicts the activity of the next, and learning occurs by minimizing local prediction errors.

However, standard PC assumes these errors follow a Gaussian distribution, which is mathematically equivalent to minimizing Mean Squared Error (MSE). While sufficient for simple models, this assumption fails for modern architectures. For instance, softmax layers—critical for classification and Transformers—introduce dependencies between neurons that a Gaussian model cannot capture. This "Gaussian trap" has historically restricted PC to toy problems.

Methods: Generalizing Predictive Coding

The authors introduce a generalized energy function, $PC_{\mathcal{F}_{KL}}$, to overcome these limitations.

  1. From MSE to KL-Divergence: The core innovation is replacing MSE with Kullback–Leibler (KL) divergence. This allows each layer to be modeled by any distribution (e.g., Categorical for softmax layers), accommodating the complex dependencies of modern neural networks.
  2. Consistent Node Interpretation: Previous PC implementations suffered from a subtle inconsistency where neurons were treated as samples in one context and distributions in another. The new framework consistently treats neurons as parameters of a distribution.
The transition from standard PC to the generalized KL-divergence framework, showing the new interpretation of neural activity $\phi_l$.
  1. Local EM-like Updates: Learning follows an Expectation-Maximization (EM) style approach. In the "inference" phase (E-step), internal states are updated to minimize local error. In the "weight update" phase (M-step), synaptic weights are adjusted based on these optimized states.

Key Results and Performance

The generalized PC framework was evaluated across image classification, generative modeling, and language modeling.

  • Transformers: In a headline result on the 1B Word Benchmark, standard Gaussian PC achieved a poor test perplexity of 590.08. In contrast, $PC_{\mathcal{F}_{KL}}$ reached 175.90, closely approaching BP’s 162.64.
  • Classification: On MNIST and CIFAR-10, $PC_{\mathcal{F}_{KL}}$ matched BP's accuracy, even in architectures where standard PC failed due to non-Gaussian activation functions.
Performance comparison on MNIST and CIFAR-10 classification tasks, showing $PC_{\mathcal{F}_{KL}}$ matching BP performance while standard PC ($PC_{\mathcal{F}}$) lags behind.
  • Generative Modeling: The framework successfully trained VAEs by learning the variance of the latent space, a task standard PC could not handle effectively.

Discussion and Future Outlook

The realization that the Gaussian assumption was the primary bottleneck for PC is a significant milestone. By showing that Transformers can be trained via PC, the authors bridge the gap between state-of-the-art AI and neuroscience-inspired algorithms. Furthermore, the local nature of PC updates suggests potential for massive parallelism on specialized neuromorphic hardware.

However, challenges remain. PC requires storing both predictions and neural activities, doubling memory requirements compared to BP. It also involves iterative inference steps before weight updates, which can be computationally expensive on current GPUs. Future work will likely focus on scaling to even larger models and optimizing the method for analog hardware where its local learning rules can be fully exploited.

Summary updated

BibTeX
@inproceedings{pinchetti2022predictive,
  author = {Luca Pinchetti and Tommaso Salvatori and Yordan Yordanov and Beren Millidge and Yuhang Song and Thomas Lukasiewicz},
  title = {{Predictive Coding beyond Gaussian Distributions}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=Ryy7tVvBUk},
}
Figure