Sample as You Infer: Predictive Coding With Langevin Dynamics
Not on the map. Why?
Abstract (arXiv)
We present a novel algorithm for parameter learning in generic deep generative models that builds upon the predictive coding (PC) framework of computational neuroscience. Our approach modifies the standard PC algorithm to bring performance on-par and exceeding that obtained from standard variational auto-encoder (VAE) training. By injecting Gaussian noise into the PC inference procedure we re-envision it as an overdamped Langevin sampling, which facilitates optimisation with respect to a tight evidence lower bound (ELBO). We improve the resultant encoder-free training method by incorporating an encoder network to provide an amortised warm-start to our Langevin sampling and test three different objectives for doing so. Finally, to increase robustness to the sampling step size and reduce sensitivity to curvature, we validate a lightweight and easily computable form of preconditioning, inspired by Riemann Manifold Langevin and adaptive optimizers from the SGD literature. We compare against VAEs by training like-for-like generative models using our technique against those trained with standard reparameterisation-trick-based ELBOs. We observe our method out-performs or matches performance across a number of metrics, including sample quality, while converging in a fraction of the number of SGD training iterations.
Key facts. Cited by 11 papers in the map (data through 7 Oct 2026). First posted on arXiv 22 Nov 2023.
Builds on
0 of 0 references.
No references here yet.
Built on by
Citing papers per year: 2024: 5; 2025: 3; 2026: 3.
11 papers.
- 2024Benchmarking Predictive Coding Networks -- Made Simplecited by 29
- 2024Predictive Coding Networks and Inference Learning: Tutorial and Surveycited by 7
- 2025Bidirectional predictive codingcited by 5
- 2025ePC: Fast and Deep Predictive Coding in Digital Simulationcited by 4
- 2024Divide-and-Conquer Predictive Coding: a structured Bayesian inference algorithmcited by 3
- 2026Faster Predictive Coding Networks via Better Initializationcited by 3
- 2025Bayesian Predictive Codingcited by 2
- 2024JPC: Flexible Inference for Predictive Coding Networks in JAXcited by 1
- 2026Why the Brain Consolidates: Predictive Forgetting for Optimal Generalisationcited by 1
- 2026K-Way Energy Probes for Metacognition Reduce to Softmax in Discriminative Predictive Coding Networkscited by 1
- 2024When in Doubt, Think Slow: Iterative Reasoning with Latent Imaginationcited by 0
- 2026K-Way Energy Probes for Metacognition Reduce to Softmax in Discriminative Predictive Coding Networks13 Apr 2026
- 2026Why the Brain Consolidates: Predictive Forgetting for Optimal Generalisation5 Mar 2026
- 2026Faster Predictive Coding Networks via Better Initialization28 Jan 2026
- 2025Bidirectional predictive coding29 May 2025
- 2025ePC: Fast and Deep Predictive Coding in Digital Simulation26 May 2025
- 2025Bayesian Predictive Coding31 Mar 2025
- 2024JPC: Flexible Inference for Predictive Coding Networks in JAX4 Dec 2024
- 2024Divide-and-Conquer Predictive Coding: a structured Bayesian inference algorithm11 Aug 2024
- 2024Predictive Coding Networks and Inference Learning: Tutorial and Survey4 Jul 2024
- 2024Benchmarking Predictive Coding Networks -- Made Simple1 Jul 2024
- 2024When in Doubt, Think Slow: Iterative Reasoning with Latent Imagination23 Feb 2024