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

Qingyan Meng, Mingqing Xiao, Shen Yan, Yisen Wang, Zhouchen Lin +1 more
2/1/2023

No official code found. Best implementation: qymeng94/SLTT (44 stars, last commit 2023-08-02).

Abstract

Spiking Neural Networks (SNNs) are promising energy-efficient models for neuromorphic computing. For training the non-differentiable SNN methods, 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. Our code is available at https://github.com/qymeng94/SLTT.

View on arXivView PDF

Code Implementations(1)

qymeng94/SLTTCommunity61%

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

444PythonJun 9, 20233 years ago

Similar Papers

Cite this paper

@article{meng2023towards,
  title  = {Towards Memory- and Time-Efficient Backpropagation for Training Spiking Neural Networks},
  author = {Qingyan Meng and Mingqing Xiao and Shen Yan and Yisen Wang and Zhouchen Lin and Zhimin Luo},
  year   = {2023},
  eprint = {2302.14311},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2302.14311},
  journal = {ICCV 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2302.14311.svg)](https://codeofpaper.com/paper/2302.14311)

Discussion