Temporal Separation with Entropy Regularization for Knowledge Distillation in Spiking Neural Networks

Kairong Yu, Chengting Yu, Tianqing Zhang, Xiaochen Zhao, Shu Yang, Hongwei Wang, Qiang Zhang

Introduction

Spiking Neural Networks (SNNs) represent a paradigm shift in neural computing, moving away from the continuous activation functions of traditional Artificial Neural Networks (ANNs) toward discrete, event-driven "spikes." This biological inspiration allows SNNs to operate with extreme energy efficiency on specialized neuromorphic hardware. However, the non-differentiable nature of spikes complicates standard gradient-based optimization. Knowledge Distillation (KD) has emerged as a powerful solution, leveraging a pre-trained ANN "teacher" to guide a "student" SNN. Yet, existing KD frameworks often fail to fully exploit the temporal dimension that makes SNNs unique.

The Limitations of Temporal Fusion

Most current KD methods for SNNs rely on "temporal fusion," where the student's spike outputs are averaged over the entire simulation window before being compared to the teacher's logits. This approach effectively collapses the temporal dynamics into a static representation, discarding the rich spatiotemporal information inherent in the spiking process. Furthermore, traditional KD is susceptible to "teacher overconfidence," where the student blindly inherits the errors or noise present in the teacher's predictions.

The TSER Framework

To address these issues, the authors introduce Temporal Separation with Entropy Regularization (TSER). This framework consists of two core components designed to improve the fidelity and robustness of the distillation process:

  1. Temporal Separation (TS): Instead of distilling knowledge from a single time-averaged output, TSER applies distillation loss (Kullback-Leibler Divergence and Cross-Entropy) at every individual time step. This forces the student SNN to learn robust representations throughout its entire temporal evolution, ensuring that each time step contributes meaningfully to the final classification.
  2. Entropy Regularization (ER): To mitigate the risk of inheriting teacher errors, TSER incorporates an entropy term into the loss function. This acts as a smoothing constraint, preventing the student from becoming overconfident in its predictions and improving its resilience to noise in the teacher's output.

The TSER framework utilizes the standard Leaky Integrate-and-Fire (LIF) neuron model and is compatible with both CNN-based and Transformer-based SNN architectures.

Experimental Results and Insights

The researchers evaluated TSER on three standard computer vision benchmarks: CIFAR-10, CIFAR-100, and ImageNet. The results demonstrate that TSER achieves state-of-the-art (SOTA) performance across the board:

  • CIFAR-100: Reached 81.29% accuracy with a ResNet-19 student, outperforming previous SOTA methods like KDSNN and BKDSNN by nearly 0.5%.
  • ImageNet: Achieved 73.16% accuracy (ResNet-34), a significant milestone for SNNs on large-scale data.
  • Efficiency: A common concern in SNN research is that increasing accuracy will lead to "spike explosions," ruining energy efficiency. TSER maintains competitive firing rates (around 20-23%) while significantly boosting accuracy.

Beyond raw metrics, the authors found that temporal separation reduces the correlation between gradients at different time steps. This suggests that each time step learns to contribute something unique to the final decision, leading to more cohesive features. The authors liken this to a jury where every member (time step) must provide a reasoned opinion throughout the deliberation, rather than just a final vote.

Conclusion

TSER provides a robust and efficient framework for SNN distillation by embracing temporal dynamics and regularizing the learning process. Unlike "feature-based" distillation which requires comparing massive internal layers, TSER works primarily on logits, making it computationally lighter and faster to train. While the method is highly effective, the authors note that the penalty factor for entropy regularization requires careful tuning to avoid training instability. Future research may focus on a more rigorous theoretical analysis of the interaction between entropy and SNN dynamics.

Summary updated

BibTeX
@inproceedings{yu2025temporal,
  author = {Kairong Yu and Chengting Yu and Tianqing Zhang and Xiaochen Zhao and Shu Yang and Hongwei Wang and Qiang Zhang and Qi Xu},
  title = {{Temporal Separation with Entropy Regularization for Knowledge Distillation in Spiking Neural Networks}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.00823},
}
Figure