Multi-Compartment Variational Online Learning for Spiking Neural Networks

Hyeryung Jang, Osvaldo SimeonearXiv 2020 · arXiv

Introduction

Spiking Neural Networks (SNNs) represent a promising "green" alternative to traditional Artificial Neural Networks, offering high energy efficiency by mimicking the event-driven communication of biological brains. However, standard deterministic models, such as the Leaky Integrate-and-Fire (LIF) neuron, face significant challenges: their non-differentiable activation functions complicate training, and they lack a principled mechanism for quantifying uncertainty.

This paper introduces GEM-SNN, a novel online learning framework for probabilistic SNNs. By employing Generalized Expectation-Maximization (GEM) and multi-sample inference, the authors demonstrate that probabilistic SNNs can achieve more robust performance, provide reliable uncertainty estimates, and accelerate training through variance reduction in gradient estimation.

Network Architecture and Neuron Dynamics

The proposed framework operates on a network of spiking neurons partitioned into visible neurons ($\mathcal{X}$), which receive external inputs, and hidden neurons ($\mathcal{H}$), which process internal representations.

Overview of the probabilistic SNN architecture, distinguishing between visible neurons $\mathcal{X}$ and hidden neurons $\mathcal{H}$.

At the individual neuron level, the model incorporates multi-compartment dynamics. Each neuron $i$ processes incoming spikes from its pre-synaptic neighbors $\mathcal{P}_i$ through synaptic filters. These filtered signals are weighted and summed to determine the membrane potential. Additionally, a somatic filter captures the neuron's own firing history (self-memory), influencing its future probability of spiking.

The GEM-SNN Learning Framework

The core innovation of GEM-SNN lies in its multi-sample approach to training and inference. Instead of a single forward pass, the network generates $K$ independent realizations of hidden neuron activity.

Detailed schematic of the neuron model, illustrating the integration of pre-synaptic spikes through synaptic filters and the influence of somatic feedback.

Generalized Expectation-Maximization (GEM)

In probabilistic SNNs, the gradient of the log-likelihood is an expectation over the hidden neuron states. Traditional methods often rely on a single sample per time step, leading to noisy updates. GEM-SNN uses importance sampling with a causally conditioned proposal distribution to achieve an "online" update rule that remains computationally efficient.

Three-Factor Learning Rule

The resulting weight updates follow a hardware-friendly "three-factor" format. The update for a synapse from neuron $j$ to $i$ depends on a pre-synaptic trace (filtered activity), a post-synaptic error, and a global learning signal computed by a central processor (CP) that coordinates learning across the network.

Experimental Evaluation

The researchers evaluated GEM-SNN on neuromorphic datasets, including MNIST-DVS, where spikes are recorded from a Dynamic Vision Sensor, and a Structured Output Memorization task.

Key Results

  • Accuracy and Robustness: On binary classification tasks, increasing the number of inference samples ($K_I$) significantly boosted performance. For instance, accuracy improved from 90.9% (single sample) to 97.2% (20 samples).
  • Uncertainty Quantification: The distribution of "votes" across multiple samples provides a natural measure of aleatoric uncertainty. The model's Expected Calibration Error (ECE) decreased as more training samples were used, indicating that its confidence levels accurately reflect its true performance.
  • Convergence Speed: By reducing the variance of gradient estimates, the multi-sample approach led to smoother and faster convergence compared to single-sample baselines like Importance-Weighted SNN (IW-SNN).

Discussion and Future Work

While GEM-SNN offers significant advantages in reliability and training efficiency, it introduces a communication trade-off. The requirement for a central processor to broadcast importance weights can create bottlenecks in fully decentralized neuromorphic hardware. Furthermore, sequential sampling increases the temporal latency of decisions. Future directions include optimizing communication for decentralized architectures and extending the framework to more complex neural circuits.

Summary updated

Abstract

Spiking Neural Networks (SNNs) capture some of the efficiency of biological brains for inference and learning via the dynamic, online, event-driven processing of binary time series. Most existing learning algorithms for SNNs are based on deterministic neuronal models, such as leaky integrate-and-fire, and rely on heuristic approximations of backpropagation through time that enforce constraints such as locality. In contrast, probabilistic SNN models can be trained directly via principled online, local, update rules that have proven to be particularly effective for resource-constrained systems. This paper investigates another advantage of probabilistic SNNs, namely their capacity to generate independent outputs when queried over the same input. It is shown that the multiple generated output samples can be used during inference to robustify decisions and to quantify uncertainty -- a feature that deterministic SNN models cannot provide. Furthermore, they can be leveraged for training in order to obtain more accurate statistical estimates of the log-loss training criterion, as well as of its gradient. Specifically, this paper introduces an online learning rule based on generalized expectation-maximization (GEM) that follows a three-factor form with global learning signals and is referred to as GEM-SNN. Experimental results on structured output memorization and classification on a standard neuromorphic data set demonstrate significant improvements in terms of log-likelihood, accuracy, and calibration when increasing the number of samples used for inference and training.
BibTeX
@misc{jang2020multi,
  author = {Hyeryung Jang and Osvaldo Simeone},
  title = {{Multi-Compartment Variational Online Learning for Spiking Neural Networks}},
  year = {2020},
  eprint = {2007.11894},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2007.11894},
}
Figure