TL;DR
Spiking Neural Networks (SNNs) offer brain-like energy efficiency but suffer from high latency and rigid constraints requiring identical time steps during training and testing. This paper introduces Temporal Knowledge Sharing (TKS), a temporal self-distillation method that treats SNN time steps as an ensemble of sub-models. TKS achieves state-of-the-art accuracy and allows models trained with long time steps to run with ultra-low latency during inference, significantly easing edge-device deployment.
What Problem Does This Paper Address?
Spiking Neural Networks process information dynamically over multiple time steps by accumulating membrane potentials and firing discrete spikes. Typically, the final prediction is generated by simply averaging the outputs across all time steps. This approach introduces two major bottlenecks:
- Inefficient Temporal Utilization: Standard averaging treats every time step equally. If early or late time steps yield incorrect predictions, they can drag down the overall accuracy, even if the network was correct during intermediate steps.
- Temporal Consistency Constraint: SNNs traditionally require the exact same number of time steps during inference as they did during training. Reducing the time steps at deployment to save power or time drastically degrades performance, resulting in high latency and poor adaptability across different edge hardware.
Methods
The authors propose a novel perspective: viewing an SNN as a temporal aggregation model where the network at each individual time step acts as a distinct sub-model.
To facilitate information flow across these sub-models, they introduce Temporal Knowledge Sharing (TKS), a form of self-distillation. During training, TKS adaptively aggregates outputs from sub-models whose distributions closely align with the ground-truth labels to formulate a "teacher signal." The individual time steps (acting as students) are then trained to fit this teacher signal.
The total loss function combines standard cross-entropy loss with a TKS fitting loss, smoothed by a temperature parameter ($\tau$). To ensure stability, a progressive ascent strategy is used, gradually increasing the weight of the teacher signal ($\alpha$) as training progresses.
Datasets
The TKS method was validated across a diverse suite of benchmarks:
- Static Image Datasets: CIFAR-10, CIFAR-100, and ImageNet-1K.
- Neuromorphic (Event-based) Datasets: DVS-CIFAR10 and NCALTECH101.
- Fine-grained Classification Datasets: CUB-200-2011, StanfordDogs, and StanfordCars (used to evaluate detailed feature extraction capabilities).
No new datasets were introduced in this work.
Key Insights and Ideas
- SNNs as Ensembles: Instead of viewing time steps merely as a sequential path to an average, treating them as an ensemble of co-learning sub-models unlocks powerful self-distillation opportunities.
- Mitigating the "Initial Dip": In standard SNNs, the first few time steps perform poorly because the neuron membrane potentials start at zero. TKS significantly boosts the accuracy of these early steps by allowing them to pull "future" knowledge from later time steps.
- Breaking Temporal Consistency: By training sub-models to be individually robust through shared knowledge, TKS enables excellent temporal generalization. This means a network can be trained thoroughly using many time steps but deployed using only a fraction of them, drastically cutting inference latency.
Key Results
- State-of-the-Art Performance: TKS outperformed existing deep SNN algorithms across all tested datasets. Notably, it achieved 85.3% accuracy on DVS-CIFAR10 and 70.70% on ImageNet-1K using an SEW-ResNet-50 architecture.
- Superior Temporal Generalization: When a baseline model trained on 10 time steps was tested using just 1 time step on DVS-CIFAR10, its performance plummeted by nearly 33%. Under the exact same constraint, the TKS-enabled model maintained a robust accuracy of around 75%.
Limitations and Future Work
While TKS successfully demonstrates theoretical latency reduction and breaks the temporal consistency barrier, the authors note that future work must explore its deployment on actual neuromorphic edge hardware to measure real-world power consumption and hardware-level latency. Additionally, further research is needed to map out the exact underlying mechanisms of how hidden knowledge distributes across different temporal points.
Summary updated