Towards Memory- and Time-Efficient Backpropagation for Training Spiking Neural Networks

Qingyan Meng, Mingqing Xiao, Shen Yan, Yisen Wang, Zhouchen Lin, Zhi-Quan Luo

Towards Memory- and Time-Efficient Backpropagation for Training Spiking Neural Networks

Introduction

Spiking Neural Networks (SNNs) represent a promising frontier in neuromorphic computing, offering high energy efficiency by mimicking biological neural communication via discrete spikes. However, training deep SNNs remains a significant challenge. The standard approach, Backpropagation Through Time (BPTT), treats SNNs as Recurrent Neural Networks (RNNs), requiring the storage of all intermediate states across all time steps $T$. This leads to $O(T)$ complexity in both memory and computation, making large-scale training on datasets like ImageNet extremely resource-intensive.

Spatial Learning Through Time (SLTT)

To address these bottlenecks, this work introduces Spatial Learning Through Time (SLTT). The core innovation lies in the mathematical decomposition of the SNN gradient into spatial components (flowing across layers) and temporal components (flowing through time steps). By analyzing the spectral norm of these components, the authors demonstrate that temporal gradients contribute minimally to the final gradient direction, a phenomenon termed "temporal redundancy."

Figure 3: Computational graph of SLTT. The red arrows indicate the temporal gradient paths that are ignored to achieve constant memory complexity.

By omitting these redundant temporal routes, SLTT enables "online" gradient calculation at each time step. This reduces the memory requirement from $O(T)$ to $O(1)$, effectively decoupling memory consumption from the temporal horizon of the network. Furthermore, the authors introduced SLTT-K, which accelerates training by performing backpropagation on only a subset $K$ of randomly sampled time steps, significantly reducing the computational overhead of the backward pass.

Architecture and Stability

Because SLTT calculates gradients online, it is incompatible with standard Temporal Batch Normalization. To maintain training stability and signal propagation, the authors utilized Scaled Weight Standardization (sWS) and Normalization-Free ResNets (NF-ResNets). These architectural adjustments ensure that the network remains robust even without calculating statistics across the temporal dimension.

Key Results and Efficiency

The proposed method was evaluated on static benchmarks (CIFAR-10, ImageNet-1K) and neuromorphic datasets (DVS-Gesture, DVS-CIFAR10). On ImageNet, SLTT achieved a state-of-the-art accuracy of 69.26% using an NF-ResNet-101 architecture.

Figure 1: Comparison of GPU memory cost and training time between SLTT and BPTT as time steps increase. SLTT maintains constant memory usage regardless of the temporal horizon.

As illustrated in Figure 1, SLTT provides dramatic efficiency gains. Compared to standard BPTT, it reduces GPU memory usage by over 70% and training time by over 50% on ImageNet. On neuromorphic benchmarks like DVS-CIFAR10, SLTT reached 83.10% accuracy, significantly outperforming previous online learning methods.

Conclusion

SLTT provides a scalable framework for training deep SNNs by identifying and removing temporal redundancies in the gradient. By achieving $O(1)$ memory complexity and significant speedups without sacrificing accuracy, this method paves the way for training larger SNNs and potentially implementing on-chip learning for future neuromorphic hardware.

Summary updated

BibTeX
@inproceedings{meng2023towards,
  author = {Qingyan Meng and Mingqing Xiao and Shen Yan and Yisen Wang and Zhouchen Lin and Zhi-Quan Luo},
  title = {{Towards Memory- and Time-Efficient Backpropagation for Training Spiking Neural Networks}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2023},
}
Figure