Enabling Spike-based Backpropagation in State-of-the-art Deep Neural Network Architectures

Chankyu Lee, Syed Shakib Sarwar, Kaushik RoyarXiv 2019

TL;DR

Spiking Neural Networks (SNNs) offer significant energy efficiency for edge computing but are difficult to train due to the non-differentiable nature of spike generation. This research introduces a spike-based backpropagation method using a pseudo-derivative for Leaky Integrate-and-Fire (LIF) neurons. This approach enables direct training of deep architectures like VGG and ResNet, achieving state-of-the-art accuracy with up to 35x faster inference than traditional conversion methods.

What Problem Does This Paper Address?

Deep learning models are powerful but energy-intensive, complicating deployment on resource-constrained edge devices. SNNs provide a biologically inspired, low-power alternative by communicating via sparse, discrete events called spikes.

However, training deep SNNs is challenging because standard backpropagation requires gradients. The spike generation function in a Leaky Integrate-and-Fire (LIF) neuron is a step function: a neuron either fires or it doesn't. This creates a non-differentiable discontinuity where the gradient is either zero or infinity, effectively breaking gradient descent.

LIF neuron dynamics and spike generation.

Historically, researchers used "ANN-SNN conversion," training standard Artificial Neural Networks (ANNs) and then converting them. This method ignores temporal dynamics and requires thousands of time-steps during inference. The authors address this by directly training deep SNNs on spike events to achieve high accuracy and low latency.

Methods

To enable end-to-end backpropagation, the authors introduced several key techniques:

  • Pseudo-Derivative for LIF Neurons: They approximate the derivative of the LIF neuron's activation using a "straight-through estimator" combined with a novel leak correctional term. This term compensates for the exponential decay of the membrane potential over time.
  • Deep Spiking Architectures: Standard architectures were adapted into "Spiking VGG" and "Spiking ResNet" blocks. Spiking skip connections were implemented to mitigate the vanishing gradient problem in deeper networks.
Spiking VGG and Residual blocks.
  • Spiking Dropout: To preserve regularization benefits in the temporal domain, the authors modified dropout so the random mask remains frozen for the entire time window of a single forward pass, rather than changing at every time-step.

Datasets

The models were evaluated on standard vision benchmarks and a native neuromorphic dataset:

  • MNIST, SVHN, and CIFAR-10: Static images were converted into Poisson-distributed spike trains.
  • N-MNIST (Neuromorphic MNIST): Captured using a Dynamic Vision Sensor (DVS) camera, providing native event stream data.

Key Insights and Ideas

  • Temporal Tailoring: Direct training allows optimization for short time windows (~100 time-steps), whereas converted ANNs often require over 3000 steps to reach peak accuracy.
  • Depth and Residual Connections: Increasing depth improves representational capacity. While non-residual SNNs degrade after ~7 layers, residual connections allow deeper networks (e.g., ResNet11) to maintain high performance.
  • Compounding Sparsity: Spike activity decreases in deeper layers. Since SNN hardware only computes during spikes, energy benefits increase with network depth.

Key Results

  • State-of-the-Art Accuracy: The method achieved top results for direct spike-based training: 99.59% on MNIST, 99.09% on N-MNIST, 96.21% on SVHN, and 90.95% on CIFAR-10 (ResNet11).
  • Inference Speedup: Direct training yielded a 5x to 35x speedup over conversion methods by reducing the required time-steps.
  • Energy Efficiency: SNNs utilize simple Accumulate (AC) operations instead of the expensive Multiply-Accumulate (MAC) operations used in ANNs. Spiking ResNet11 is estimated to be 7x to 15x more energy-efficient than its ANN equivalent.

Limitations and Future Work

  • Hardware Validation: Reported energy savings are theoretical. Real-world efficiency must be tested on specialized neuromorphic hardware like Intel Loihi, as standard GPUs may face memory traffic bottlenecks with asynchronous spikes.
  • Shallow Network Performance: In "iso-spike" conditions, conversion methods can occasionally outperform direct training in shallower networks, though direct training is superior for deep architectures.

Summary updated

BibTeX
@misc{lee2019enabling,
  author = {Chankyu Lee and Syed Shakib Sarwar and Kaushik Roy},
  title = {{Enabling Spike-based Backpropagation in State-of-the-art Deep Neural Network Architectures}},
  year = {2019},
  eprint = {1903.06379},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1903.06379},
}
Figure