Abstract
Spiking Neural Networks (SNNs) have emerged as a biologically plausible and energy-efficient alternative to traditional Artificial Neural Networks (ANNs), leveraging binary spikes and temporal processing. However, a significant efficiency bottleneck exists: SNNs typically utilize a fixed number of timesteps for all inputs, creating a rigid accuracy-efficiency tradeoff. We introduce Spiking Early-Exit Neural Networks (SEENN), a framework that dynamically adjusts the number of timesteps based on input complexity. We propose two variants: SEENN-I, which employs confidence score thresholding, and SEENN-II, which utilizes reinforcement learning to determine optimal exit points. Our approach is compatible with both directly trained SNNs and ANN-to-SNN conversions. Experimental results demonstrate that SEENN significantly reduces inference latency; for instance, SEENN-II achieves 96.1% accuracy on CIFAR-10 with an average of only 1.08 timesteps.
Introduction
Unlike standard ANNs that process data in a single spatial pass, SNNs operate over a temporal dimension ($T$). While this temporal depth allows SNNs to achieve high performance on neuromorphic hardware, it introduces a "one-size-fits-all" inefficiency. In traditional SNN architectures, an easy-to-classify image (e.g., a clear, centered object) is processed for the same number of timesteps as a complex, noisy sample. This redundancy leads to unnecessary energy consumption and increased latency.
SEENN addresses this by treating the number of timesteps as a dynamic variable conditioned on the input. By allowing "easy" samples to exit the computation early, SEENN optimizes the temporal dimension of SNNs, mirroring the efficiency of biological systems that process familiar stimuli faster than novel or ambiguous ones.
Methodology
The SEENN Framework
The core objective of SEENN is to find the minimum timestep $t \in [1, T]$ required to make a correct prediction. To facilitate this, the authors utilize Temporal Efficient Training (TET). Unlike standard training that focuses on the final output, TET ensures that the SNN produces meaningful and accurate predictions at every individual timestep, providing the necessary foundation for early exits.
SEENN-I: Confidence-Based Exit
SEENN-I is a post-training optimization that does not require retraining the base SNN. It monitors the "confidence score"—defined as the maximum value in the softmax output—at each timestep. If the confidence exceeds a predefined threshold $\alpha$, the network terminates computation and returns the result. This method is highly flexible, allowing users to tune the $\alpha$ parameter to balance accuracy and speed for specific deployment needs.
SEENN-II: Reinforcement Learning-Based Exit
SEENN-II introduces a more sophisticated, "early-exit-aware" approach. A small auxiliary policy network is trained alongside the SNN. This policy network analyzes the input and predicts the optimal number of timesteps required. Because the decision to exit is discrete and non-differentiable, the policy network is trained using Reinforcement Learning (RL). The reward function is designed to penalize both incorrect predictions and excessive timesteps, forcing the model to find the most efficient path to a correct classification.
Key Theoretical Insights
The Inclusive Property
A fundamental assumption of early-exit strategies is that once a model is correct, it stays correct. The authors empirically validated the Inclusive Property: if an SNN predicts a sample correctly at timestep $t$, there is a very high probability it will remain correct for all $t' > t$. This property ensures that exiting early does not significantly degrade the potential accuracy of the model.
Averaged Earliest Timestep (AET)
To quantify the theoretical limit of temporal efficiency, the authors introduced the AET metric. AET represents the average of the first timestep at which each sample in a dataset is correctly classified. This serves as a benchmark for evaluating how close SEENN variants come to the "ideal" minimal computation.
Experimental Results
SEENN was evaluated across multiple architectures (ResNet-18/19/34, VGG-16) and datasets, including static images (CIFAR-10/100, ImageNet) and neuromorphic data (CIFAR10-DVS).
- CIFAR-10: SEENN-II (ResNet-19) achieved a state-of-the-art accuracy of 96.1% with an average of just 1.08 timesteps. This represents a massive reduction in latency compared to fixed-timestep SNNs which typically require 4-6 steps.
- ImageNet: On large-scale data, SEENN-I (ResNet-34) matched the accuracy of a 6-timestep baseline while reducing the average timesteps to 2.35, a 60% improvement in efficiency.
- Neuromorphic Data: On CIFAR10-DVS, SEENN demonstrated that temporal early exits are equally effective for event-stream data, where temporal dynamics are inherent to the input format.
Conclusion and Future Work
SEENN provides a robust framework for making SNNs more practical for real-world deployment by slashing temporal redundancy. While SEENN-II introduces a small computational overhead via its policy network, the overall energy savings during inference are substantial. Future research will focus on the hardware-level implementation of these dynamic exits on neuromorphic chips like Intel's Loihi, where the benefits of spike-based sparsity and reduced latency can be fully realized.
Summary updated