Introduction
Predictive Coding (PC) is a prominent biologically inspired alternative to Backpropagation (BP). While BP relies on global error signals, PC utilizes local prediction errors at each layer, making it more compatible with known cortical architectures. However, standard PC typically relies on point estimates for weights, neglecting the epistemic uncertainty crucial for robust decision-making. This paper introduces Bayesian Predictive Coding (BPC), extending PC into a fully Bayesian framework that quantifies uncertainty while maintaining local, Hebbian update rules.
Methodology
BPC extends the hierarchical Gaussian generative model of standard PC by placing a Matrix Normal Wishart prior over the network's weights and precisions. The learning process follows an Expectation-Maximization (EM) structure:
- Inference (E-step): Hidden states (neural activities) are updated via gradient descent to minimize local prediction errors, a process known as "settling."
- Learning (M-step): Leveraging the conjugacy of the chosen distributions, BPC employs closed-form update rules for the weights.
These updates are strictly local (Hebbian), meaning the change in a synaptic weight depends only on the activity of the pre- and post-synaptic neurons. This locality is a key requirement for biological plausibility and efficient implementation on neuromorphic hardware.
Experimental Results
The authors evaluated BPC against standard PC, BP, and Bayes by Backprop (BBB) across classification and regression tasks.
Convergence and Accuracy
A defining characteristic of BPC is its rapid convergence in full-batch settings. By utilizing closed-form updates instead of iterative gradient steps for weights, BPC reaches optimal performance significantly faster than its counterparts.
On the MNIST dataset, BPC achieves competitive accuracy, typically within 0.3% of BP. In synthetic tasks like Two Moons and the Energy regression dataset, BPC's closed-form updates allow it to converge almost instantly compared to the gradual descent of BP and PC.
Uncertainty Quantification
BPC's primary advantage is its ability to represent uncertainty. In regression benchmarks, BPC was compared to Bayes by Backprop (BBB), a standard in Bayesian Deep Learning. BPC consistently achieved superior Log Predictive Density (LPD) and lower Root Mean Square Error (RMSE) with fewer training epochs.
Qualitative analysis on synthetic regression tasks demonstrates BPC's capacity to distinguish between aleatoric uncertainty (inherent data noise) and epistemic uncertainty (lack of data in specific regions), as shown in the uncertainty visualizations above.
Discussion and Limitations
BPC successfully bridges Bayesian deep learning with neuroscience-inspired models. However, challenges remain regarding computational overhead and scalability. The iterative "settling" process for hidden states makes BPC slower per-iteration than BP. Additionally, the memory requirements for full Matrix Normal Wishart distributions at each layer may necessitate low-rank approximations for larger architectures like Transformers. Future work will explore these approximations and the potential for BPC to learn disentangled representations.
Summary updated