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

Curvature-Sensitive Predictive Coding with Approximate Laplace Monte Carlo

Umais Zahid, Qinghai Guo, Karl J. Friston, Zafeirios FountasarXiv 2023 · DOI

Introduction

Predictive Coding (PC) is a prominent theory in cognitive neuroscience, positing that the brain maintains an internal model of the world by constantly minimizing "prediction errors" between sensory input and internal expectations. While PC offers a biologically plausible alternative to standard backpropagation, it has historically lagged behind modern generative models like Variational Autoencoders (VAEs) in terms of sample quality and marginal likelihood.

The authors of this paper identify a critical mathematical omission in standard PC: the neglect of curvature (the Hessian matrix) in the probability landscape. Standard PC typically relies on Maximum A Posteriori (MAP) estimates, which effectively assumes infinite certainty about hidden states. This leads to "sharp" landscapes that hinder training stability and fail to capture the inherent diversity of data distributions.

Methodology: Laplace Monte Carlo

To address this, the authors propose Laplace Monte Carlo (LMC) and its computationally efficient variant, Approximate LMC (ALMC). This framework treats PC as a form of Variational Bayes under the Laplace approximation.

Instead of a single point estimate, ALMC samples from a Gaussian posterior where the precision is determined by the Hessian of the negative log-joint probability. To overcome the $O(N^2)$ memory cost of computing a full Hessian in deep networks, the authors introduce a novel block-diagonal approximation. This method considers curvature only within individual layers, ensuring the resulting matrix is Positive Semi-Definite (PSD) and computationally tractable.

Comparison of the actual distribution, the full LMC, and the block-diagonal approximation (ALMC). The Hessian matrices (b, c) illustrate the transition from a full to a layer-wise block-diagonal structure.

Experimental Results

The researchers evaluated ALMC against standard PC across several benchmarks, including MNIST, CIFAR10, SVHN, and CelebA.

Quantitative and Qualitative Performance

ALMC consistently outperformed standard PC in terms of Bits Per Dimension (BPD), indicating a superior fit to the underlying data distribution. The inclusion of the log-determinant of the Hessian acts as a natural regularizer, preventing the model from becoming over-confident and encouraging the discovery of broader, more robust solutions.

Qualitatively, the improvement is striking. While standard PC often collapses into producing "average" or uniform samples, ALMC captures the full diversity of the training set, including variations in hair color, backgrounds, and facial features in datasets like CelebA.

Qualitative comparison of generated samples on the CelebA dataset. ALMC (left) captures significantly more diversity in facial features and backgrounds compared to the more uniform outputs of standard PC (right).

Furthermore, latent space interpolations in ALMC models are more semantically meaningful, suggesting that the curvature-sensitive objective helps organize the internal representation more effectively.

Discussion and Future Work

By re-introducing curvature information, this work bridges a significant gap between neuroscience-inspired models and high-performance machine learning. The "volume" of uncertainty accounted for by the Laplace-optimal posterior prevents mode collapse and improves training stability.

However, challenges remain. Even with block-diagonal approximations, ALMC incurs higher memory overhead than standard PC due to Jacobian computations. Additionally, the Hessian can be unstable during the very early stages of training. Future research will likely focus on more robust initialization strategies and scaling these methods to larger, state-of-the-art architectures.

Summary updated

BibTeX
@misc{zahid2023curvature,
  author = {Umais Zahid and Qinghai Guo and Karl J. Friston and Zafeirios Fountas},
  title = {{Curvature-Sensitive Predictive Coding with Approximate Laplace Monte Carlo}},
  year = {2023},
  eprint = {2303.04976},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2303.04976},
}
Figure