TL;DR
This paper introduces the Shrinking SNN (SSNN), a novel architecture that significantly reduces inference latency in Spiking Neural Networks (SNNs) for object recognition. By dividing the network into stages with progressively shorter timesteps and employing a temporal transformer, SSNN achieves low latency without sacrificing accuracy. Additionally, early classifiers are used during training to improve gradient flow and mitigate performance degradation at low latencies.
What Problem Does This Paper Address?
Spiking Neural Networks (SNNs) hold immense promise for low-power, brain-inspired computing, particularly for neuromorphic hardware. Their event-driven nature and sparse activity make them highly energy-efficient. However, a major bottleneck for SNNs in practical applications like object recognition is their high inference latency. Existing SNNs often require 10 to 40 timesteps (or more) to process an input and make a prediction. Crucially, when researchers try to reduce this latency by using fewer timesteps, the performance of these SNNs drops dramatically. This paper tackles the challenge of achieving both high performance and low latency simultaneously in SNNs for object recognition, a critical step towards their real-world deployment.
Methods
The core innovation of SSNN lies in two key strategies:
- Timestep Shrinkage: The SNN is divided into multiple stages. Each subsequent stage operates with a progressively shorter timestep ($T_1 > T_2 > \dots > T_n$). This mimics the idea that early layers in a network might need more time to extract rich features, while later layers can process information more quickly.
- Temporal Transformer: To prevent information loss when shrinking timesteps between stages, a novel "temporal transformer" is introduced. This module smoothly transforms the temporal scale of the feature maps, reassigning information across the reduced timestep to preserve as much valuable data as possible. It calculates a temporal score to guide this reassignment.
- Early Classifiers: During training, auxiliary classifiers are added after each stage (except the last). These classifiers provide intermediate loss signals. This helps to:
- Mitigate the mismatch between surrogate gradients (used to train non-differentiable spike activations) and true gradients.
- Alleviate gradient vanishing/exploding issues inherent in SNNs.
- Contribute to the optimization of the temporal transformer itself.
The overall training framework uses these early classifiers to compute a weighted total loss across all stages, which is then backpropagated using the surrogate gradient method.
Datasets
The proposed SSNN was evaluated on three standard neuromorphic datasets:
- CIFAR10-DVS: A neuromorphic version of CIFAR10 for object classification.
- N-Caltech101: A neuromorphic version of Caltech101 for object classification.
- DVS-Gesture: A dataset for gesture recognition.
The paper notes that data preprocessing for these datasets is similar to existing methods, involving integrating event streams into frames and downsampling, without using data augmentation for most experiments.
Key Insights and Ideas
- Temporal Redundancy is Key: The paper highlights that existing SNNs exhibit significant temporal redundancy, meaning much of the information processed in later timesteps might be repetitive or less critical. SSNN exploits this by shrinking timesteps.
- Smooth Transitions Matter: Simply truncating timesteps leads to performance degradation. The temporal transformer is crucial for enabling effective information transfer between stages with different temporal scales, preventing information loss.
- Early Feedback is Powerful: The use of early classifiers during training is a critical component. It acts as a regularization mechanism, improving gradient flow and enabling the network to learn effectively even at very low latencies, overcoming common SNN training challenges.
- Heterogeneous Timesteps are Viable: The SSNN architecture demonstrates that a network can be effectively designed with varying timesteps across its layers, challenging the notion that all SNNs must operate at a uniform, high timestep for good performance.
Key Results
- Significant Latency Reduction: SSNN achieves low-latency inference, with an average of just 5 timesteps in many experiments.
- Performance Improvement: SSNN consistently outperforms baseline SNNs and other state-of-the-art methods at low latencies. For instance, on CIFAR10-DVS with an average timestep of 5, SSNN achieves 73.63% accuracy, improving baseline accuracy by 6.55% to 21.41% across datasets.
- Robustness to Timestep Settings: The method shows good generalization and is not overly sensitive to the exact number of stages or the specific timestep distribution across stages, as long as the average timestep is controlled.
- Effectiveness of Components: Ablation studies confirm the importance of both timestep shrinkage and early classifiers. Removing the temporal transformer significantly degrades performance, highlighting its necessity.
Limitations and Future Work
- Parameter Overhead: While the temporal transformer's parameter count is noted as negligible compared to the overall network size, it still introduces some additional parameters.
- Generalizability to Other Tasks: While demonstrated for object and gesture recognition, further exploration on other neuromorphic tasks would be beneficial.
- Integration with Advanced SNN Architectures: The paper shows SSNN can be integrated with architectures like Spikformer, suggesting potential for further performance gains by combining SSNN's temporal shrinkage with other advanced SNN techniques. The authors suggest that their work provides valuable insights for developing ultra-low latency, high-performance SNNs.
Summary updated