[Paper Review] Constructing Deep Spiking Neural Networks from Artificial Neural Networks with Knowledge Distillation
A knowledge-distillation framework to construct deep spiking neural networks (SNNs) from pre-trained ANNs, enabling heterogeneous ANN-SNN structures, faster training, and improved robustness.
Spiking neural networks (SNNs) are well known as the brain-inspired models with high computing efficiency, due to a key component that they utilize spikes as information units, close to the biological neural systems. Although spiking based models are energy efficient by taking advantage of discrete spike signals, their performance is limited by current network structures and their training methods. As discrete signals, typical SNNs cannot apply the gradient descent rules directly into parameters adjustment as artificial neural networks (ANNs). Aiming at this limitation, here we propose a novel method of constructing deep SNN models with knowledge distillation (KD) that uses ANN as teacher model and SNN as student model. Through ANN-SNN joint training algorithm, the student SNN model can learn rich feature information from the teacher ANN model through the KD method, yet it avoids training SNN from scratch when communicating with non-differentiable spikes. Our method can not only build a more efficient deep spiking structure feasibly and reasonably, but use few time steps to train whole model compared to direct training or ANN to SNN methods. More importantly, it has a superb ability of noise immunity for various types of artificial noises and natural signals. The proposed novel method provides efficient ways to improve the performance of SNN through constructing deeper structures in a high-throughput fashion, with potential usage for light and efficient brain-inspired computing of practical scenarios.
Motivation & Objective
- Motivate the use of knowledge distillation to overcome non-differentiability and training difficulty in deep SNNs.
- Enable construction of deep SNNs from pre-trained ANN teachers with heterogeneous architectures.
- Reduce training time and memory usage compared to offline ANN-SNN conversion.
- Improve SNN performance and robustness to artificial and natural noises.
- Demonstrate efficiency and potential of KD-based SNNs on standard datasets.
Proposed method
- Propose a joint ANN-to-SNN knowledge distillation framework where a pre-trained teacher ANN guides a student SNN.
- Use response-based KD by matching soft outputs from the teacher (with temperature T) and real labels to train the SNN.
- Introduce feature-based KD to transfer intermediate-layer information via 1x1 convolutions and an L2 distillation loss.
- Employ surrogate gradient learning to train the non-differentiable SNN with spiking neurons (IF model).
- Allow heterogeneous ANN-SNN structures by decoupling teacher and student architectures during training.
- Present two ANN-SNN joint loss forms: (i) response-based loss combining soft-teacher and hard labels, (ii) feature-based loss aligning intermediate features.
Experimental results
Research questions
- RQ1Can knowledge distillation from a trained ANN improve the performance of a deep SNN beyond offline conversion?
- RQ2Does allowing heterogeneous ANN-SNN structures during KD training enable deeper, more efficient SNNs?
- RQ3How do response-based and feature-based KD compare in improving SNN accuracy and noise robustness?
- RQ4What are the training time and resource implications of the KD-based approach versus traditional methods?
Key findings
- KD-based training yields higher SNN accuracies than corresponding non-KD baselines on CIFAR10 and MNIST under various teacher-student pairings.
- SNNs trained with KD demonstrate better noise immunity across Gaussian, background, rotation, and other perturbations.
- Feature-based KD can outperform response-based KD for certain architecture pairs, achieving notable improvements (e.g., 92.10% on CIFAR10 with Pyramidnet18 teacher).
- The approach enables deep SNNs with significantly fewer time steps (as few as 4) while maintaining high accuracy.
- KD-trained SNNs show reduced parameter counts and synaptic operations compared to large ANNs, indicating favorable efficiency for neuromorphic hardware.
- Overall, KD-based SNNs achieve state-of-the-art performance among the reported spiking models with fewer time steps.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.