Skip to main content
QUICK REVIEW

[Paper Review] SEENN: Towards Temporal Spiking Early-Exit Neural Networks

Yuhang Li, Tamar Geller|arXiv (Cornell University)|Apr 2, 2023
Advanced Memory and Neural ComputingEngineering12 citations
TL;DR

SEENN proposes input-conditioned, temporal early-exit in Spiking Neural Networks (SNNs) with SEENN-I confidence-based exits and SEENN-II reinforcement-learning exits, achieving state-of-the-art accuracy with far fewer average timesteps on CIFAR, ImageNet, and related datasets, applicable to both direct-training and ANN-SNN conversion.

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.

Motivation & Objective

  • Motivate reducing the timesteps in SNNs without sacrificing accuracy by conditioning timesteps on input difficulty.
  • Introduce SEENN as a framework for spiking early-exit in SNNs and demonstrate two exit strategies.
  • Show compatibility of SEENN with both directly trained SNNs and ANN-SNN conversions.
  • Provide empirical evidence on standard vision datasets that SEENN improves accuracy-efficiency tradeoffs.

Proposed method

  • Model SNNs with a variable number of timesteps T per input, enabling early exit in the temporal dimension.
  • Define SEENN-I: use confidence score thresholding to determine when to output a prediction.
  • Define SEENN-II: learn a timestep-selection policy via reinforcement learning to minimize timesteps while maintaining accuracy.
  • In SEENN-II, train a small policy network to output a one-hot choice among candidate timesteps and optimize with policy gradients.
  • Train SEENN with Temporal Efficient Training (TET) loss to improve timestep-wise predictions and optionally jointly train the policy in SEENN-II.
  • Evaluate on both direct-training and ANN-SNN conversion setups across CIFAR-10/100, ImageNet, and CIFAR10-DVS.

Experimental results

Research questions

  • RQ1Can per-sample timestep adjustment reduce average inference time in SNNs without harming accuracy?
  • RQ2Do confidence-based thresholds and RL-based policies provide effective early-exit mechanisms across datasets and architectures?
  • RQ3Is SEENN compatible with both directly trained SNNs and ANN-SNN conversion, and what performance gains exist in each setting?
  • RQ4How does SEENN affect hardware metrics such as latency and energy for SNN inference?

Key findings

  • SEENN-I achieves 96.07% accuracy on CIFAR-10 with an average of 1.09 timesteps (vs higher timesteps in baseline).
  • SEENN-I achieves 96.38% accuracy on CIFAR-10 with an average of 1.20 timesteps and 96.44% with 1.34 timesteps on CIFAR-10, illustrating strong accuracy with few timesteps.
  • SEENN-II reaches comparable CIFAR-10 performance using around 1.08–1.21 timesteps on CIFAR-10/ResNet-19 variants and can outperform SEENN-I on CIFAR-100 in some cases (e.g., 0.7% higher accuracy on CIFAR-100).
  • On ImageNet, SEENN-I can attain similar accuracy with substantially fewer timesteps (e.g., ResNet-34: 2.28–2.35 timesteps achieving ~63.6–63.65% accuracy in direct training; SEENN-II further reduces T to around 1.79–1.79–2.40 depending on setup).
  • For CIFAR10-DVS, SEENN-I surpasses most baselines with only ~2.5 timesteps, and SEENN-II reaches ~82.6% accuracy with ~4.5 timesteps.
  • SEENN demonstrates compatibility with ANN-SNN conversion, delivering higher accuracy at reduced timesteps compared to prior conversion methods (e.g., CIFAR-10 with 1.4 timesteps achieving 93.63% vs 75.44% for a baseline conversion method).
  • SEENN can improve hardware efficiency by increasing throughput and reducing energy consumption, with SEENN-I providing simultaneous gains in speed and energy usage on GPU experiments.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.