Direct training high-performance deep spiking neural networks: a review of theories and methods

Chenlin Zhou, Han Zhang, Liutao Yu, Yumin Ye, Zhaokun Zhou, Liwei Huang, Zhengyu Ma, Xiaopeng Fan, Huihui Zhou, Yonghong Tian

Abstract

Spiking Neural Networks (SNNs) represent a biologically inspired paradigm for energy-efficient computing, utilizing discrete binary spikes instead of continuous values. Historically, SNNs faced challenges in training due to the non-differentiable nature of spiking functions. This review examines the recent advancements in direct training methods, specifically surrogate gradients, which have enabled SNNs to achieve performance levels comparable to traditional artificial neural networks (ANNs) on large-scale benchmarks like ImageNet. We discuss neuron models, architectural innovations like Spikformers, and efficient training algorithms such as Online Training Through Time (OTTT).

Introduction

Traditional artificial neural networks (ANNs) are computationally expensive and power-hungry, largely due to their reliance on high-precision floating-point multiply-accumulate (MAC) operations. Spiking Neural Networks (SNNs) offer a biologically inspired alternative: they communicate using discrete "spikes" (0s and 1s), allowing hardware to replace expensive multiplications with simple additions (AC operations).

However, SNNs have historically been difficult to train. Because the spiking mechanism—typically a Heaviside step function—is non-differentiable, standard backpropagation cannot be applied directly. Early workarounds, such as converting pre-trained ANNs to SNNs, often suffered from high latency and poor performance on temporal data. This review explores the recent shift toward direct training, where mathematical approximations enable the training of deep SNNs from scratch for complex tasks like ImageNet classification and object tracking.

Methods and Architectures

Surrogate Gradients and Neuron Models

The core of modern high-performance SNNs lies in bypassing the non-differentiability of spikes. Researchers use Surrogate Gradients (SG) during the backward pass of training. While the neuron still spikes discretely in the forward pass, the backward pass uses a smooth, differentiable approximation (e.g., Sigmoid or Arctan derivative) to calculate gradients.

The spiking neuron model (a) and surrogate activation functions with their corresponding gradients (b).

Beyond the classic Leaky Integrate-and-Fire (LIF) model, new variants like Parametric LIF (PLIF) and KLIF introduce learnable parameters for membrane time constants and firing thresholds, allowing the network to adapt its temporal dynamics during training.

Spiking Architectures

A major breakthrough is the Spikformer (Spiking Transformer), which replaces standard self-attention with Spiking Self-Attention (SSA). SSA uses sparse spike-form Query, Key, and Value tensors, ensuring the entire attention mechanism remains multiplication-free and energy-efficient. Furthermore, residual connections are critical for scaling; Pre-activation shortcuts have been identified as the most effective for maintaining energy efficiency by avoiding unnecessary integer-float multiplications.

Training Algorithms

While Backpropagation Through Time (BPTT) is the standard for training SNNs, it is memory-intensive as it requires storing states across all time steps. Online Training Through Time (OTTT) has emerged as a viable alternative, reducing memory overhead by updating weights at each time step rather than waiting for the end of a sequence.

Comparison of gradient propagation in Backpropagation Through Time (BPTT) and Online Training Through Time (OTTT).

Performance and Results

SNNs are now closing the performance gap with ANNs. Recent models like QKFormer have achieved a milestone of 85.65% top-1 accuracy on ImageNet using only 4 time steps. In terms of efficiency, the Spikingformer demonstrated a 43% reduction in energy consumption compared to its predecessor. Some Spike-Driven Self-Attention models reported up to 87.2× lower computation energy than vanilla attention. Additionally, residual designs have allowed directly trained SNNs to scale up to 482 layers on CIFAR-10 without the degradation problems seen in earlier models.

Discussion and Future Directions

Despite significant progress, several hurdles remain. Training complexity via BPTT is still high, and most energy efficiency claims remain theoretical, based on operation counts rather than physical measurements on neuromorphic hardware. There is also a lack of standardization across neuromorphic chips (e.g., Intel’s Loihi vs. IBM’s TrueNorth), complicating model portability. Future work is expected to expand SNNs into generative tasks and complex robotics control, moving beyond simple classification.

Summary updated

BibTeX
@inproceedings{zhou2024direct,
  author = {Chenlin Zhou and Han Zhang and Liutao Yu and Yumin Ye and Zhaokun Zhou and Liwei Huang and Zhengyu Ma and Xiaopeng Fan and Huihui Zhou and Yonghong Tian},
  title = {{Direct training high-performance deep spiking neural networks: a review of theories and methods}},
  booktitle = {Frontiers in Neuroscience},
  year = {2024},
  doi = {10.3389/fnins.2024.1383844},
}
Figure