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

Distributed Sampling-based Bayesian Inference in Coupled Neural Circuits

Wenhao Zhang, Tai Sing Lee, Brent Doiron, Si Wu

Abstract

The brain performs probabilistic inference to interpret the external world, but the underlying neuronal mechanisms remain not well understood. The stimulus structure of natural scenes exists in a high-dimensional feature space, and how the brain represents and infers the joint posterior distribution in this rich, combinatorial space is a challenging problem. There is added difficulty when considering the neuronal mechanics of this representation, since many of these features are computed in parallel by distributed neural circuits. Here, we present a novel solution to this problem. We study continuous attractor neural networks (CANNs), each representing and inferring a stimulus attribute, where attractor coupling supports sampling-based inference on the multivariate posterior of the high-dimensional stimulus features. Using perturbative analysis, we show that the dynamics of coupled CANNs realizes Langevin sampling on the stimulus feature manifold embedded in neural population responses. In our framework, feedforward inputs convey the likelihood, reciprocal connections encode the stimulus correlational priors, and the internal Poisson variability of the neurons generate the correct random walks for sampling. Our model achieves high-dimensional joint probability representation and Bayesian inference in a distributed manner, where each attractor network infers the marginal posterior of the corresponding stimulus feature. The stimulus feature can be read out simply with a linear decoder based only on local activities of each network. Simulation experiments confirm our theoretical analysis. The study provides insight into the fundamental neural mechanisms for realizing efficient high-dimensional probabilistic inference.

Introduction

The "Bayesian Brain" hypothesis posits that our nervous system interprets sensory information by combining it with prior expectations to calculate a posterior probability distribution. However, natural stimuli are high-dimensional, involving features like orientation, color, and motion. Representing every possible combination of these features using dedicated neurons would lead to a "combinatorial explosion," exceeding the brain's capacity.

Instead, the brain processes these features in parallel across distributed circuits. This paper addresses the fundamental question: How do these separate circuits coordinate to represent a single, coherent joint posterior distribution? The authors propose a biologically plausible mechanism where coupled neural circuits implement Langevin sampling, a stochastic process that allows the brain to explore complex probability landscapes through distributed activity.

Methods: Langevin Sampling in Neural Circuits

The authors utilize Continuous Attractor Neural Networks (CANNs) as the primary building blocks. In a CANN, neurons are tuned to specific stimulus features and form a stable "bump" of activity through local excitation and global inhibition.

The key innovation is a perturbative analysis showing that the collective dynamics of coupled CANNs mathematically mirror Langevin sampling. In this framework:

  • Feedforward inputs represent the likelihood of a stimulus.
  • Reciprocal connections between networks encode the priors (correlations between features).
  • Internal Poisson-like variability (neuronal noise) provides the stochastic drive for the "random walk" required for sampling.
  • Divisive normalization ensures the stability of the neural activity.
Neural implementation of sampling-based inference in a single attractor network.

This mapping allows the network to represent the "precision matrix" (the inverse of the covariance) of the prior through synaptic weights. Crucially, even as joint inference occurs across the entire system, the "best guess" for any single feature can be read out locally from its specific network using a simple linear population vector decoder.

Results and Validation

The model was validated through numerical simulations, comparing the sampling behavior of the networks against analytical Bayesian solutions. The results demonstrate that the dynamics of coupled CANNs are equivalent to Langevin sampling on a stimulus manifold.

Distributed representation and inference in coupled attractor networks.

Key findings include:

  1. Linear Scaling: The architecture scales linearly with the number of stimulus features, avoiding the combinatorial explosion.
  2. Theoretical Alignment: Simulations of multi-dimensional feature spaces (up to 10D) confirmed that the networks' equilibrium distributions perfectly matched theoretical Bayesian posteriors.
  3. Temporal Dynamics: The model predicts that the speed of sampling depends on neuronal time constants and input intensity, matching observed cross-correlation patterns.

Discussion

This study demonstrates that internal neuronal noise is not merely a nuisance but an essential computational resource for probabilistic inference. By treating noise as the engine for Langevin sampling, the model explains how the brain can be modular yet behave as a unified Bayesian integrator.

While Langevin sampling is efficient on the feature manifold, it can be slow in extremely high dimensions. Future work may explore mechanisms like short-term synaptic plasticity or anti-symmetric connections (similar to Hamiltonian Monte Carlo) to accelerate state transitions and improve sampling efficiency for rapid perceptual decision-making.

Summary updated

BibTeX
@misc{zhang2020distributed,
  author = {Wenhao Zhang and Tai Sing Lee and Brent Doiron and Si Wu},
  title = {{Distributed Sampling-based Bayesian Inference in Coupled Neural Circuits}},
  year = {2020},
  doi = {10.1101/2020.07.20.212126},
  howpublished = {bioRxiv},
}
Figure