Abstract
The "Bayesian Brain Hypothesis" suggests that biological systems perform inference by maintaining and updating probabilistic beliefs. However, a significant gap remains between the continuous mathematical frameworks of Bayesian inference and the discrete, event-driven nature of spiking neural networks (SNNs). This paper presents a framework for implementing Gaussian Belief Propagation (GBP) within SNNs by mapping Forney-style Factor Graphs (FFGs) to populations of leaky integrate-and-fire (LIF) neurons. We demonstrate that these architectures can accurately perform complex inference tasks, such as Kalman filtering and Bayesian linear regression, with performance closely matching exact analytical solutions.
Introduction: The Bayesian Brain Gap
Central to modern neuroscience is the idea that the brain acts as an inference engine, constantly reconciling internal predictions with incoming sensory data. This process is often modeled using Bayesian frameworks, where "prediction errors" drive the update of internal models. Despite the elegance of this theory, implementing it in a biologically plausible way is challenging. Traditional Bayesian algorithms are designed for synchronous, high-precision hardware, whereas biological neurons communicate via asynchronous, discrete electrical spikes.
Previous attempts to bridge this gap have often been limited to simple binary variables. This research extends the frontier to continuous-variable tasks—essential for real-world navigation and signal processing—by representing Gaussian messages within a spiking framework.
Methodology
The authors bridge the gap by combining Forney-style Factor Graphs (FFGs) with Leaky Integrate-and-Fire (LIF) neuron models. The framework relies on three foundational pillars:
1. Population Coding
To represent a Gaussian distribution (defined by a mean $\mu$ and variance $\sigma^2$), the system uses a population of $N$ neurons. Each neuron is assigned a "preferred" spatial location; its firing rate represents the probability density at that location. This allows the network to represent uncertainty explicitly through the distribution of activity across the population.
2. Node-to-Network Mapping
The core of Gaussian Belief Propagation involves specific mathematical operations: equality (branching), addition, and scaling. The researchers designed specific SNN architectures for each:
- Equality Nodes: These nodes must compute a precision-weighted mean of incoming messages. They were implemented using networks trained via Spike-Timing-Dependent Plasticity (STDP), allowing the network to "learn" the correct weights to combine inputs.
- Addition Nodes: In the sum-product algorithm, addition corresponds to a convolution of probability distributions. The authors developed a novel Convolutional Spiking Neural Network (CSNN) where neural thresholds effectively act as the convolution kernel.
- Multiplication (Scaling) Nodes: These are implemented through a simple spatial re-indexing of the neuron population labels.
3. Simulation Environment
All models were validated using the Brian2 spiking neural network simulator, testing the nodes both in isolation and as part of larger, integrated systems.
Key Results
The SNN-based implementation proved to be highly accurate when compared to standard "exact" mathematical solutions across two primary benchmarks:
Kalman Filtering
In a synthetic 1D car-tracking task involving noisy movement and observations over 10 time steps, the SNN's posterior mean at the final step was 24.804. This is remarkably close to the standard Kalman Filter's analytical result of 24.419. Crucially, the SNN also accurately tracked the theoretical uncertainty (variance), demonstrating that the spikes carry information about confidence levels.
Bayesian Linear Regression
The framework was applied to a linear model with Gaussian noise. The SNN successfully estimated regression weights ($w_0 \approx 1.72, w_1 \approx 0.88$) that were nearly identical to those produced by standard message passing ($w_0 \approx 1.74, w_1 \approx 0.87$). Unlike classical matrix-based methods, the SNN approach naturally supports online updates, refining its beliefs as data arrives sequentially.
Discussion and Future Work
This work demonstrates that factor graphs are a natural fit for neural networks because both rely on local message exchanges rather than global, centralized computations. By showing that biological learning rules like STDP can "discover" the math of Gaussian updates, the authors provide a plausible path for how the brain might implement Bayesian inference.
However, several challenges remain. The current encoding mechanism introduces latency, and the system requires pre-defined spatial ranges for the population codes. Future research will focus on extending the framework to non-linear models and deploying these networks on neuromorphic hardware, such as Intel’s Loihi, to realize the energy-efficiency benefits of event-driven computation in real-world applications.
Summary updated