Probabilistic inference of binary Markov random fields in spiking neural networks through mean-field approximation

Yajing Zheng, Shanshan Jia, Zhaofei Yu, Tiejun Huang, Jian K. Liu, Yonghong Tian

Abstract

The "probabilistic brain" hypothesis suggests that biological neural networks handle sensory uncertainty by performing Bayesian inference. However, mapping these complex mathematical operations onto the discrete dynamics of spiking neurons remains a challenge. This paper bridges this gap by proving that a recurrent spiking neural network (RSNN) can mathematically implement mean-field inference for any binary Markov Random Field (MRF). By deriving a differential equivalence between mean-field equations and RSNN dynamics, the authors demonstrate that neuronal firing rates can encode probability distributions. The proposed framework is robust across arbitrary network topologies and demonstrates superior performance in image denoising tasks compared to previous belief propagation-based models.

Introduction

How does the brain's "hardware"—networks of spiking neurons—implement the complex probabilistic reasoning required to navigate an uncertain world? While Markov Random Fields (MRFs) are a standard tool for modeling such reasoning, previous attempts to implement them in spiking neural networks (SNNs) often relied on the Belief Propagation (BP) algorithm. These BP-based models were frequently limited to specific structures like trees or required biologically unrealistic neuronal operations.

This research introduces a more general mapping using Mean-field Approximation. By translating the iterative process of probabilistic inference into a continuous-time system, the authors provide a biologically plausible mechanism for how simple neurons can collectively perform complex inference.

Methods

The authors employ a four-step approach to unify MRF inference with SNN dynamics:

  1. Mathematical Mapping: They begin with the mean-field inference equations for a binary MRF, where variables are represented as states of 1 or -1.
  2. Differential Transformation: A differential equation is derived to describe the evolution of these probabilities toward a steady state.
  3. SNN Equivalence: The authors prove that this differential equation is mathematically identical to the standard dynamic equations of a Recurrent Spiking Neural Network (RSNN).
  4. Encoding Scheme: In this framework, a neuron's firing rate represents the difference between the probabilities of its two possible states ($p(x_i=1) - p(x_i=-1)$). Synaptic weights directly encode the potential functions (constraints) of the MRF.

This approach reveals that the tanh activation function common in mean-field updates matches the steady-state firing rate response of a recurrent neuron, providing a natural bridge between the two domains.

Results

The model was evaluated using synthetic topologies (chains, loops, grids, and fully connected graphs) and real-world data from the NIST Special Database 19.

Convergence Across Topologies

In all tested architectures, the SNN's firing rates converged to the analytical mean-field solution rapidly. Unlike BP-based models, which often struggle with "loopy" graphs, this mean-field approach remained robust and accurate regardless of network complexity.

Convergence of mean relative error across various MRF topologies.

Image Denoising

The SNN was applied to the task of denoising handwritten digits and letters. It successfully restored noisy images, improving the Peak Signal-to-Noise Ratio (PSNR) from approximately 13.01 dB to 29.19 dB. This performance matched non-neural mean-field methods and outperformed previous BP-based neural networks, particularly when noise levels exceeded 0.3.

Image denoising performance on NIST handwritten characters.

Discussion

This work reinforces the principle that complex global functions can emerge from networks of simple spiking units. By using firing rates to encode probability differences, the model avoids the need for explicit multiplications or divisions, which are difficult to implement biologically.

Limitations and Future Directions

While promising, the current framework is limited to binary MRFs and assumes time-independent inputs. Future research should explore extending this mapping to multi-state variables and dynamic, time-varying sensory data. Additionally, scaling the model to the millions of neurons found in biological circuits will require further investigation into computational efficiency. Potential applications include more advanced computer vision tasks such as stereo matching and object recognition.

Summary updated

BibTeX
@article{zheng2020probabilistic,
  author = {Yajing Zheng and Shanshan Jia and Zhaofei Yu and Tiejun Huang and Jian K. Liu and Yonghong Tian},
  title = {{Probabilistic inference of binary Markov random fields in spiking neural networks through mean-field approximation}},
  journal = {Neural Networks},
  year = {2020},
  doi = {10.1016/j.neunet.2020.03.003},
}
Figure