Skip to main content
QUICK REVIEW

[论文解读] Constructing Deep Spiking Neural Networks from Artificial Neural Networks with Knowledge Distillation

Qi Xu, Yaxin Li|arXiv (Cornell University)|Apr 12, 2023
Advanced Memory and Neural ComputingEngineering被引用 9
一句话总结

一种知识蒸馏框架,用于从预训练的 ANNs 构建深度 SNNs,能够实现异质的 ANN-SNN 结构、更快的训练以及更强的鲁棒性。

ABSTRACT

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.

研究动机与目标

  • 动机:利用知识蒸馏来克服深度 SNNs 的不可微分性和训练难题。
  • 实现从具有异构架构的预训练 ANN 教师构建深度 SNNs。
  • 相比离线 ANN-SNN 转换,降低训练时间和内存使用。
  • 提高 SNN 的性能以及对人工和自然噪声的鲁棒性。
  • 在标准数据集上展示基于 KD 的 SNN 的效率与潜力。

提出的方法

  • 提出一个联合的 ANN-to-SNN 知识蒸馏框架,其中预训练的教师 ANN 指导学生 SNN。
  • 通过匹配教师的 soft 输出(带温度 T)与真实标签来训练 SNN,采用基于输出的 KD。
  • 引入基于特征的 KD,通过 1x1 卷积传递中间层信息并使用 L2 蒸馏损失。
  • 采用替代梯度学习来训练具有尖峰神经元的不可微 SNN(IF 模型)。
  • 在训练期间解耦教师和学生的架构,允许异构的 ANN-SNN 结构。
  • 给出两种 ANN-SNN 联合损失形式: (i) 基于响应的损失,结合 soft-teacher 与 hard 标签;(ii) 基于特征的损失,对齐中间特征。

实验结果

研究问题

  • RQ1来自训练好的 ANN 的知识蒸馏是否可以在超越离线转换后提升深度 SNN 的性能?
  • RQ2在 KD 训练过程中允许异构的 ANN-SNN 结构是否能实现更深、更高效的 SNN?
  • RQ3基于响应的 KD 与基于特征的 KD 在提升 SNN 准确性和对噪声鲁棒性方面的比较?
  • RQ4与传统方法相比,基于 KD 的方法在训练时间和资源方面有什么影响?

主要发现

  • 基于 KD 的训练在 CIFAR10 和 MNIST 上,针对各种教师-学生配对,得到的 SNN 准确度高于相应的非 KD 基线。
  • 使用 KD 训练的 SNN 在高斯、背景、旋转等扰动下表现出更好的噪声鲁棒性。
  • 在某些架构对上,基于特征的 KD 能超过基于响应的 KD,取得显著提升(例如,Pyramidnet18 教师在 CIFAR10 上达到 92.10%)。
  • 该方法使深度 SNN 在仅需极少时间步(少至 4 步)的情况下仍保持高准确性。
  • KD 训练的 SNN 与大型 ANNs 相比,参数数量和突触运算减少,表明在神经形态硬件上的效率更有利。
  • 总体而言,基于 KD 的 SNN 在所报道的脉冲模型中以更少的时间步实现了最先进的性能。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。