SEENN: Towards Temporal Spiking Early-Exit Neural Networks

Yuhang Li, Tamar Geller, Youngeun Kim, Priyadarshini Panda
4/2/2023
cs.NEcs.LG

No official code found. Best implementation: Intelligent-Computing-Lab-Panda/SEENN (19 stars, MIT, last commit 2024-11-18).

Abstract

Spiking Neural Networks (SNNs) have recently become more popular as a biologically plausible substitute for traditional Artificial Neural Networks (ANNs). SNNs are cost-efficient and deployment-friendly because they process input in both spatial and temporal manner using binary spikes. However, we observe that the information capacity in SNNs is affected by the number of timesteps, leading to an accuracy-efficiency tradeoff. In this work, we study a fine-grained adjustment of the number of timesteps in SNNs. Specifically, we treat the number of timesteps as a variable conditioned on different input samples to reduce redundant timesteps for certain data. We call our method Spiking Early-Exit Neural Networks (SEENNs). To determine the appropriate number of timesteps, we propose SEENN-I which uses a confidence score thresholding to filter out the uncertain predictions, and SEENN-II which determines the number of timesteps by reinforcement learning. Moreover, we demonstrate that SEENN is compatible with both the directly trained SNN and the ANN-SNN conversion. By dynamically adjusting the number of timesteps, our SEENN achieves a remarkable reduction in the average number of timesteps during inference. For example, our SEENN-II ResNet-19 can achieve 96.1% accuracy with an average of 1.08 timesteps on the CIFAR-10 test dataset. Code is shared at https://github.com/Intelligent-Computing-Lab-Yale/SEENN.

View on arXivView PDF

Code Implementations(1)

MIT

Pytorch implementation of SEENN (Spiking Early Exit Neural Networks) (NeurIPS 2023)

193C++, CudaSep 25, 20231 years agoMIT

Similar Papers

Cite this paper

@article{li2023seenn,
  title  = {SEENN: Towards Temporal Spiking Early-Exit Neural Networks},
  author = {Yuhang Li and Tamar Geller and Youngeun Kim and Priyadarshini Panda},
  year   = {2023},
  eprint = {2304.01230},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2304.01230v2},
  journal = {NEURIPS 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/2304.01230.svg)](https://codeofpaper.com/paper/2304.01230)

Discussion