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

Combining Sampling Methods with Attractor Dynamics in Spiking Models of Head-Direction Systems

Vojko Pjanovic, Jacob Zavatone-Veth, Paul Masset, Sander Keemink, Michele Nardin

This paper, recently published on bioRxiv, presents a theoretical breakthrough in how we understand neural computation. It reconciles two historically separate frameworks: sampling-based inference (how the brain handles uncertainty) and attractor dynamics (how the brain maintains stable representations).

TL;DR

The authors develop a spiking neural network (SNN) model of the head-direction system that performs Bayesian inference by "sampling" from probability distributions. By deriving new dynamics for Spike Coding Networks, they show how neurons can integrate noisy velocity signals while maintaining a stable "bump" of activity on a circular attractor, providing a unified framework for probabilistic computation in higher-order brain areas.

What Problem Does This Paper Address?

The brain constantly deals with "noisy" data. To navigate, an animal must integrate noisy estimates of its own angular velocity to keep track of its heading.

Neuroscientists have two main ways of explaining how the brain handles this:

  1. Sampling-based Inference: The brain represents a probability distribution by drawing samples over time. This is great for representing uncertainty but has mostly been studied in "early" sensory areas (like seeing a blurry shape).
  2. Attractor Dynamics: Neural circuits (like the head-direction system) create a "bump" of activity that stays stable even without input. This is the standard model for "higher" cognitive functions like memory and orientation.

The gap is that these two ideas are hard to mix. If a network is a rigid attractor, how can it be flexible enough to "sample" from a distribution? If it’s a stochastic sampler, how does it stay stable? This paper provides the mathematical "bridge" between these two worlds.

Methods

The researchers used a framework called Spike Coding Networks (SCNs). In an SCN, neurons fire spikes to greedily minimize the difference between a target signal and a neural readout.

To enable sampling, they implemented Langevin Dynamics within the SCN. Langevin sampling involves following the "slope" (gradient) of a probability distribution while adding a specific amount of noise.

Key technical innovations include: * Non-Gaussian Sampling: Most previous models only sampled from simple Gaussian (bell-curve) distributions. The authors derived the math to sample from a wide family of "exponential family" distributions with polynomial moments. * Multiplicative Interactions: They showed that to sample from complex distributions, neurons need nonlinear, multiplicative synaptic or dendritic interactions (e.g., the activity of neuron A times neuron B). * 2D Cartesian Attractor: Instead of modeling the head direction as a 1D angle (which has messy "wrap-around" math at 360°), they modeled it as $(x, y)$ coordinates. They then added a "soft" circular constraint—a mathematical "pull" that keeps the neural activity on a circle of radius $\rho$.

Datasets

As a theoretical and computational study, the paper does not use experimental datasets. Instead, it uses:

  • Simulated Poisson Spike Trains: To mimic the noisy input neurons provide to the head-direction system.
  • Synthetic Probability Distributions: Including bimodal (two-peaked) and 3D distributions to test the network's sampling accuracy.

Key Insights and Ideas

  • The "Wiggling" Bump: In traditional models, the head-direction "bump" moves smoothly. In this sampling model, the bump "wiggles" or "jumps." The size of these jumps corresponds to the level of uncertainty in the environment.
  • Correlated Noise is Functional: Usually, noise in the brain is seen as a nuisance. Here, the "noise" (specifically, correlated subthreshold voltage fluctuations) is the engine that allows the network to explore the probability distribution.
  • Synaptic Timescales: The model requires two timescales: fast connections to maintain the balance between excitation and inhibition, and slow connections (like NMDA receptors) to perform the actual sampling and integration.
  • Biological Realism: The model predicts that neurons with similar tuning should have specific patterns of subthreshold voltage correlations, a prediction that can be tested with modern "voltage imaging" techniques in fruit flies or mice.

Key Results

  • High Accuracy: The SNN successfully sampled from complex, non-Gaussian distributions (like bimodal peaks) that previous SCN models couldn't handle.
  • Robust Integration: The model could infer angular velocity from noisy Poisson inputs and update the head-direction estimate accurately over time.
  • Uncertainty Awareness: When the input was made noisier, the network's "bump" became more unstable and drifted more, naturally representing the animal's increasing uncertainty about its heading (resembling biological "dead reckoning" errors).
  • Small Network Efficiency: The system works even with a very small number of neurons (as few as 4-8), matching the small-scale circuits found in some insect brains.

Limitations and Future Work

  • Dendritic Complexity: The math for sampling very high-order distributions requires complex multiplicative interactions. It’s unclear if biological dendrites can implement the very high-order "math" required for extremely complex distributions.
  • Learning: The weights in this model are derived from theory. The authors note that a major next step is figuring out how a brain might learn these specific connection weights through plasticity.
  • Scaling: While they demonstrated 3D sampling, scaling this to the massive, high-dimensional distributions involved in complex planning or language remains an open challenge.

Primary Source: Pjanovic et al. (2025). Combining Sampling Methods with Attractor Dynamics in Spiking Models of Head-Direction Systems. bioRxiv.

Summary updated

BibTeX
@misc{pjanovic2025combining,
  author = {Vojko Pjanovic and Jacob Zavatone-Veth and Paul Masset and Sander Keemink and Michele Nardin},
  title = {{Combining Sampling Methods with Attractor Dynamics in Spiking Models of Head-Direction Systems}},
  year = {2025},
  url = {https://openreview.net/forum?id=BQRFU5xpUV},
}
Figure