Training High-Performance Low-Latency Spiking Neural Networks by Differentiation on Spike Representation

Qingyan Meng, Mingqing Xiao, Shen Yan, Yisen Wang, Zhouchen Lin +1 more
5/1/2022
cs.NEcs.LG

Official code: qymeng94/DSR (52 stars, Python, last commit 2022-11-08).

Abstract

Spiking Neural Network (SNN) is a promising energy-efficient AI model when implemented on neuromorphic hardware. However, it is a challenge to efficiently train SNNs due to their non-differentiability.

Show full abstract

Most existing methods either suffer from high latency (i.e., long simulation time steps), or cannot achieve as high performance as Artificial Neural Networks (ANNs). In this paper, we propose the Differentiation on Spike Representation (DSR) method, which could achieve high performance that is competitive to ANNs yet with low latency. First, we encode the spike trains into spike representation using (weighted) firing rate coding. Based on the spike representation, we systematically derive that the spiking dynamics with common neural models can be represented as some sub-differentiable mapping. With this viewpoint, our proposed DSR method trains SNNs through gradients of the mapping and avoids the common non-differentiability problem in SNN training. Then we analyze the error when representing the specific mapping with the forward computation of the SNN. To reduce such error, we propose to train the spike threshold in each layer, and to introduce a new hyperparameter for the neural models. With these components, the DSR method can achieve state-of-the-art SNN performance with low latency on both static and neuromorphic datasets, including CIFAR-10, CIFAR-100, ImageNet, and DVS-CIFAR10.

View on arXivView PDF

Code Implementations(1)

qymeng94/DSROfficial100%

[CVPR 2022] Training High-Performance Low-Latency Spiking Neural Networks by Differentiation on Spike Representation

525PythonMar 10, 20224 years ago

Similar Papers

Cite this paper

@article{meng2022training,
  title  = {Training High-Performance Low-Latency Spiking Neural Networks by Differentiation on Spike Representation},
  author = {Qingyan Meng and Mingqing Xiao and Shen Yan and Yisen Wang and Zhouchen Lin and Zhi-Quan Luo},
  year   = {2022},
  eprint = {2205.00459},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2205.00459}
}

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/2205.00459.svg)](https://codeofpaper.com/paper/2205.00459)

Discussion