Natural gradient Bayesian sampling automatically emerges in canonical cortical circuits

Zimei Chen, Yi Ren, Eryn Sale, Ying Nian Wu, Wenhao Zhang · Submission to ICLR 2026 · Rejected

TL;DR

This paper reveals that canonical cortical circuits—the fundamental building blocks of the brain—naturally implement "Natural Gradient" Bayesian sampling. By mapping nonlinear neural dynamics to Fisher Information, the authors show how the brain adaptively adjusts its inference speed based on uncertainty, utilizing computational "tricks" remarkably similar to those used in modern machine learning optimizers.

What Problem Does This Paper Address?

The "Bayesian Brain" hypothesis suggests that our minds handle the world's inherent uncertainty by sampling from probability distributions (posteriors). While previous research identified how simple neural motifs might perform basic sampling (like Langevin dynamics), a massive gap remained: biological neural circuits are far more complex and nonlinear than these simple models suggest.

The authors ask: Is this biological complexity just "noise," or does it serve a higher computational purpose? Specifically, they investigate whether the nonlinear interactions between excitatory (E) neurons and various inhibitory (I) interneurons (like PV and SOM cells) allow the brain to perform more sophisticated, efficient inference—specifically Natural Gradient (NG) sampling, which adjusts its step size based on the local geometry of the information space.

Methods

The researchers employed a combination of theoretical analysis and numerical simulation:

  • Continuous Attractor Neural Networks (CANN): They modeled a canonical cortical circuit consisting of E neurons and two classes of interneurons (PV for divisive normalization and SOM for subtractive inhibition).
  • Dimensionality Reduction: Using perturbation analysis, they projected the high-dimensional, nonlinear dynamics of the circuit onto two dominant "modes": the position of the neural activity bump (representing the stimulus sample) and the height of that bump.
  • Algorithmic Mapping: They analytically derived how these neural dynamics map onto the mathematical framework of Natural Gradient Langevin and Hamiltonian sampling.
  • Proof-of-Concept VAE: To test the biological model in a machine learning context, they embedded the canonical circuit as a latent space sampler within a Variational Autoencoder (VAE).

Datasets

  • MNIST: The classic handwritten digit dataset was used to evaluate the circuit's performance as a latent space sampler in a deep generative model.
  • Synthetic Stimuli: The authors used simulated 1D and 2D Gaussian stimulus distributions to verify their analytical derivations regarding Fisher Information and sampling convergence.

Key Insights and Ideas

  • Bump Height as Fisher Information: The most striking finding is that the height of the neural population's activity bump directly encodes Fisher Information (FI). In ML, FI tells us the "curvature" of the probability space; here, higher neural activity signifies higher certainty, which automatically shrinks the sampling step size for more precise inference.
  • Biological Regularization: In NG algorithms, a small constant ($\alpha$) is often added to prevent numerical instability when inverting the FI matrix. The authors found that the recurrent excitatory weights in the brain perform this exact role, acting as a natural regularizer.
  • Diagonal Approximation: When dealing with multiple variables, the brain appears to use a "diagonal approximation" of the Fisher Information Matrix. This is the same trade-off between accuracy and computational efficiency used in scalable ML optimizers like Adam.
  • Intrinsic Annealing: When a stimulus first appears, the circuit is in a "non-equilibrium" state. The authors discovered that the way neural activity ramps up acts as a built-in annealing strategy, allowing the brain to explore the space quickly at first and then settle into a precise estimate.
  • Interneuron Switching: The circuit can switch between Langevin sampling (random walk-like) and Hamiltonian sampling (oscillation-like) simply by modulating the gain of SOM interneurons.

Key Results

  • Mathematical Equivalence: The authors successfully derived the standard forms of NG Langevin and Hamiltonian sampling directly from the nonlinear equations of cortical circuits.
  • Faster Convergence: Simulations showed that the circuit's non-equilibrium dynamics significantly accelerate sampling compared to standard equilibrium methods.
  • VAE Integration: The "bio-inspired" sampler successfully reconstructed MNIST digits. Crucially, it maintained its NG properties: as image contrast (certainty) increased, the sampling precision increased and the step size decreased, just as the theory predicted.
  • Experimental Alignment: The model’s prediction—that neural response magnitude is inversely proportional to the sampling step size—aligns with existing experimental data from hippocampal place cells.

Limitations and Future Work

  • Missing VIP Neurons: The current model excludes VIP interneurons, which the authors suspect act as a high-level "knob" to adjust sampling speed and momentum in real-time.
  • Uniform Priors: The model currently assumes a "flat" or uniform prior (the brain starts with no bias). Real-world inference often involves strong priors, which would require breaking the circuit's symmetry—a topic for future research.
  • Gaussian Assumption: The current derivation focuses on Gaussian posteriors. While they touched on the "von Mises" case (for circular data like orientation), extending this to arbitrary, complex distributions remains a challenge.
  • Diffeomorphism: To handle non-Gaussian data, the authors suggest the brain might use a decoder network to map simple internal samples to complex external representations, a hypothesis they plan to explore further.

Summary updated

BibTeX
@misc{chen2026natural,
  author = {Zimei Chen and Yi Ren and Eryn Sale and Ying Nian Wu and Wenhao Zhang},
  title = {{Natural gradient Bayesian sampling automatically emerges in canonical cortical circuits}},
  year = {2026},
  url = {https://openreview.net/forum?id=0XjUSPBVfW},
  howpublished = {OpenReview},
  note = {Submitted to ICLR 2026},
}
Figure