Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

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

About

Spiking Neural Networks (SNNs) are promising energy-efficient models for neuromorphic computing. For training the non-differentiable SNN models, the backpropagation through time (BPTT) with surrogate gradients (SG) method has achieved high performance. However, this method suffers from considerable memory cost and training time during training. In this paper, we propose the Spatial Learning Through Time (SLTT) method that can achieve high performance while greatly improving training efficiency compared with BPTT. First, we show that the backpropagation of SNNs through the temporal domain contributes just a little to the final calculated gradients. Thus, we propose to ignore the unimportant routes in the computational graph during backpropagation. The proposed method reduces the number of scalar multiplications and achieves a small memory occupation that is independent of the total time steps. Furthermore, we propose a variant of SLTT, called SLTT-K, that allows backpropagation only at K time steps, then the required number of scalar multiplications is further reduced and is independent of the total time steps. Experiments on both static and neuromorphic datasets demonstrate superior training efficiency and performance of our SLTT. In particular, our method achieves state-of-the-art accuracy on ImageNet, while the memory cost and training time are reduced by more than 70% and 50%, respectively, compared with BPTT.

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

Related benchmarks

TaskDatasetResultRank
Image ClassificationCIFAR-100 (test)--
3518
Image ClassificationCIFAR-10 (test)--
3381
Image ClassificationCIFAR-10
Accuracy94.44
875
Image ClassificationCIFAR-100
Accuracy74.38
691
Image ClassificationImageNet (val)--
300
Image ClassificationCIFAR-10
Accuracy94.44
246
ClassificationCIFAR10-DVS--
164
Image ClassificationCIFAR10-DVS (test)
Accuracy77.17
101
Neuromorphic Image ClassificationDVS-CIFAR10
Accuracy82.2
37
Few-Shot Class-Incremental LearningImageNet mini
Session 8 Harmonic Mean32.58
20
Showing 10 of 12 rows

Other info

Follow for update