SLAYER: Spike Layer Error Reassignment in Time

Sumit Bam Shrestha, Garrick Orchard

TL;DR

SLAYER (Spike LAYer Error Reassignment) is a novel backpropagation framework for Spiking Neural Networks (SNNs) that overcomes the "non-differentiable spike" problem. By distributing error credit across both network layers and time, it enables the simultaneous learning of synaptic weights and axonal delays, achieving state-of-the-art accuracy on neuromorphic benchmarks.

The Challenge of Training SNNs

Artificial Neural Networks (ANNs) dominate modern AI, but they are power-hungry and often require massive computational resources. Spiking Neural Networks (SNNs) offer a biologically inspired, low-power alternative by communicating via discrete "spikes" rather than continuous values. However, SNNs are notoriously difficult to train.

The core issue lies in the spike function. In a standard ANN, differentiable activation functions (like ReLU or Sigmoid) are used to calculate gradients for backpropagation. In an SNN, a neuron fires a spike when its internal voltage hits a specific threshold—acting as a step function. Its derivative is zero everywhere except at the exact moment of firing, where it is undefined. This "dead neuron" or "zero gradient" problem makes standard backpropagation impossible. Furthermore, SNNs operate with a critical temporal dimension; a spike's effect depends heavily on when it happens, a factor many existing training methods fail to address.

The SLAYER Methodology

The authors introduce SLAYER, a framework that treats error backpropagation as a two-dimensional problem: spatial (across layers) and temporal (across time).

  1. Spike Response Model (SRM): The framework uses the SRM to model neurons. Incoming spikes are convolved with a kernel to change the membrane potential, while a refractory kernel handles the "cool-down" period after a neuron fires.
  2. Temporal Credit Assignment: Unlike "step-based" methods that only evaluate the current time step, SLAYER's derivative accounts for how an input spike at time $t$ influences the network's future state.
  3. Stochastic Approximation (Surrogate Gradient): To solve the non-differentiability problem, the authors model the probability of a spike state change. Instead of an undefined derivative, they use a smooth, exponentially decaying function ($\rho$) as a surrogate.
Surrogate gradient function ($\rho$) used to approximate the derivative of the spike state change.

This function is high when the membrane potential is near the firing threshold and low when it is far away, effectively "guessing" how a small change in voltage might have triggered (or prevented) a spike.

  1. Learning Axonal Delays: While most SNN trainers only update synaptic weights, SLAYER can also learn the axonal delay—the time it takes for a signal to travel between neurons. This is crucial for processing temporal data like audio or motion.

To make this practical, the authors released a CUDA-accelerated framework, enabling the training of deep SNNs (both fully connected and convolutional) on standard GPUs.

Key Insights: Error Reassignment in Time

The breakthrough insight of SLAYER is realizing that in SNNs, an error at time $T$ might be caused by a spike that occurred at time $T-10$. SLAYER’s formulation explicitly "reassigns" this credit backward through the temporal history of the neuron.

SLAYER training process showing epoch-wise spike alignment (left) and detailed temporal signals during forward and backward passes (right).

By treating the deterministic spike function as a stochastic process for the sake of the derivative, they create a smooth landscape for gradient descent to follow. Because the system is event-based, SLAYER only performs calculations when spikes occur, paving the way for massive power savings on specialized neuromorphic hardware.

Datasets and State-of-the-Art Results

The researchers evaluated SLAYER on four key benchmarks, achieving state-of-the-art (SOTA) results for pure SNN learning across the board:

  • MNIST: 99.36% accuracy, the best reported for a network trained entirely as an SNN (rather than converted from a pre-trained ANN).
  • NMNIST (Neuromorphic MNIST): 99.20% accuracy on this asynchronous spike data captured by a moving DVS camera, surpassing previous SOTA methods.
  • DVS Gesture: 93.64% accuracy on a dataset of 29 people performing 10 different hand gestures. Notably, SLAYER achieved this with significantly fewer neurons and layers than competing architectures like IBM’s TrueNorth.
  • TIDIGITS: 99.09% accuracy on this spoken digit dataset, proving highly competitive even against non-spiking traditional models (like HMM-GMM).

Limitations and Future Work

While SLAYER represents a significant leap forward, it does come with computational overhead. Calculating temporal credit assignment and learning delays increases computation time by about 8% and 2.5%, respectively.

Additionally, while SLAYER successfully handles "deep" networks, the datasets used (MNIST, TIDIGITS) are relatively small compared to modern computer vision benchmarks like ImageNet. Scaling to massive datasets remains an ongoing challenge for all SNN methods.

Currently, SLAYER is intended for offline training on GPUs. The ultimate goal is to use SLAYER to "compile" a network that can then be deployed onto low-power neuromorphic chips (like Intel’s Loihi or SpiNNaker) for ultra-efficient, real-world inference.

Summary updated

BibTeX
@inproceedings{shrestha2018slayer,
  author = {Sumit Bam Shrestha and Garrick Orchard},
  title = {{SLAYER: Spike Layer Error Reassignment in Time}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2018},
  url = {https://openreview.net/forum?id=ByWH4_-OZB},
}
Figure