Abstract
Accumulating evidence suggests the canonical cortical circuit, consisting of excitatory (E) and diverse classes of inhibitory (I) interneurons, implements Bayesian posterior sampling. However, most of the identified circuits’ sampling algorithms are simpler than the nonlinear circuit dynamics, suggesting complex circuits may implement more advanced algorithms. Through comprehensive theoretical analyses, we discover the canonical circuit innately implements natural gradient Bayesian sampling, which is an advanced sampling algorithm that adaptively adjusts the sampling step size based on the local geometry of stimulus posteriors measured by Fisher information. Specifically, the nonlinear circuit dynamics can implement natural gradient Langevin and Hamiltonian sampling of uni- and multi-variate stimulus posteriors, and these algorithms can be switched by interneurons. We also find that the non-equilibrium circuit dynamics when transitioning from the resting to evoked state can further accelerate natural gradient sampling, and analytically identify the neural circuit’s annealing strategy. Remarkably, we identify the approximated computational strategies employed in the circuit dynamics, which even resemble the ones widely used in machine learning. Our work provides an overarching connection between canonical circuit dynamics and advanced sampling algorithms, deepening our understanding of the circuit algorithms of Bayesian sampling.
Introduction: The Efficiency Gap in the Bayesian Brain
The "Bayesian Brain" hypothesis posits that the brain represents information as probability distributions to navigate an ambiguous world. To perform inference, the brain must "sample" from these distributions. While previous models demonstrated that simple neural loops could perform basic sampling (e.g., Langevin or Hamiltonian dynamics), they struggled to explain the inherent complexity and nonlinearity of cortical circuits.
A major challenge is efficiency: simple sampling methods are slow when probability landscapes are "sharp" or "flat." In machine learning, this is addressed using natural gradients, which warp the search space based on its local geometry (Fisher Information) to optimize the search path. This research investigates whether the biological complexity of the cortex is a feature designed to implement these high-speed, adaptive sampling algorithms.
Methods: Mapping Circuit Dynamics to Advanced Algorithms
The study employs a Continuous Attractor Network (CAN) model to represent a cortical "hypercolumn." This model integrates:
- Excitatory (E) neurons: Form a "bump" of activity representing a stimulus feature.
- PV Interneurons: Provide global, divisive normalization.
- SOM Interneurons: Provide local, subtractive inhibition.
Using perturbative analysis, the researchers reduced high-dimensional nonlinear equations into a low-dimensional manifold defined by two variables: the position of the neural activity bump (the sample value) and the height of the bump (the controller). They then mathematically mapped these dynamics onto the formal equations for Natural Gradient Langevin and Hamiltonian sampling.
Key Insights: Fisher Information and Neural "Height"
The most significant discovery is that the total activity level—the "height" of the neural bump—encodes Fisher Information. While calculating Fisher Information is computationally intensive in traditional machine learning, it emerges naturally in the brain as a byproduct of the circuit's power level.
- Adaptive Step Size: The circuit adaptively adjusts its sampling step size based on uncertainty. When the bump is high (high confidence/low uncertainty), the step size is small; when the bump is low, the step size increases to explore the space faster.
- Interneuron "Upgrades": The circuit is modular. A basic E-PV circuit performs Langevin sampling (a random walk). Adding SOM neurons "upgrades" the system to Hamiltonian sampling, introducing "momentum" and oscillations that accelerate exploration of the probability space.
- Biological Regularization: In machine learning, a small constant ($\alpha$) is often added to prevent division by zero. The researchers found that recurrent excitatory connections ($w_{EE}$) serve this exact function, stabilizing the natural gradient calculation.
Key Results: Scalability and Annealing
- Mathematical Equivalence: The position of the neural bump ($z_E$) follows a stochastic differential equation identical to Natural Gradient Langevin Sampling (NGLS).
- Neural Annealing: During the transition from a "resting" to an "evoked" state upon stimulus onset, the sampling step size is naturally larger. This effectively performs "simulated annealing," preventing the system from getting trapped in local minima (incorrect interpretations).
- Multivariate Scalability: When coupling multiple circuits for complex features, the brain employs a diagonal approximation of the Fisher Information Matrix—a common shortcut in scalable machine learning to manage high-dimensional data efficiently.
Limitations and Future Directions
While the model provides a powerful framework, several areas remain for exploration:
- VIP Neurons: The current model excludes VIP neurons, which may act as a "gain knob" to further modulate sampling speed.
- Non-Uniform Priors: The model assumes a uniform prior (a "blank slate"). Future research should investigate how non-uniform recurrent connections might store complex internal beliefs or biases.
- Spiking Networks: Translating these rate-based findings into discrete spiking networks is a critical next step for biological realism.
Summary updated