arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2304.09101cs.NEcs.AI
收藏

LaSNN:面向深度脉冲神经网络高效训练的分层ANN-to-SNN蒸馏方法

LaSNN: Layer-wise ANN-to-SNN Distillation for Effective and Efficient Training in Deep Spiking Neural Networks

Zhejiang University(浙江大学);Zhejiang University School of Medicine(浙江大学医学院);Affiliated Mental Health Center & Hangzhou Seventh People’s Hospital(附属精神卫生中心&杭州市第七人民医院)

Di Hong, Jiangrong Shen, Yu Qi, Yueming Wang

AI总结:

本文提出分层ANN-to-SNN知识蒸馏框架LaSNN,通过注意力机制和分层蒸馏将ANN知识高效迁移到小规模SNN,在保持竞争精度的同时实现比转换SNN快20倍的推理速度。

摘要:

脉冲神经网络(SNNs)因其事件驱动机制而具有生物真实性和在低功耗计算中的实际应用前景。通常,SNNs的训练在多种任务上存在精度损失,导致其性能不如人工神经网络(ANNs)。已有工作提出一种转换方案,通过将训练好的ANNs参数映射到具有相同结构的SNNs来获得有竞争力的精度。然而,这些转换后的SNNs需要极多的时间步,从而丧失了能效优势。为同时利用ANNs的精度优势和SNNs的计算效率,本文提出了一种新的SNN训练框架,即分层ANN-to-SNN知识蒸馏(LaSNN)。为了在获得有竞争力精度的同时降低推理延迟,LaSNN通过蒸馏知识而非转换ANN参数,将训练良好的ANN中的学习迁移到一个较小的SNN。通过引入注意力机制弥合异构ANN与SNN之间的信息差距,ANN中的知识被有效压缩,并利用我们的分层蒸馏范式高效迁移。我们在三个基准数据集(CIFAR-10、CIFAR-100和Tiny ImageNet)上进行了详细实验,以证明LaSNN的有效性、效率和可扩展性。我们取得了与ANNs相比具有竞争力的top-1精度,并且推理速度比性能相近的转换SNNs快20倍。更重要的是,LaSNN灵活且可扩展,能够轻松开发用于具有不同架构/深度和输入编码方法的SNNs,从而促进其潜在发展。

英文摘要:

Spiking Neural Networks (SNNs) are biologically realistic and practically promising in low-power computation because of their event-driven mechanism. Usually, the training of SNNs suffers accuracy loss on various tasks, yielding an inferior performance compared with ANNs. A conversion scheme is proposed to obtain competitive accuracy by mapping trained ANNs' parameters to SNNs with the same structures. However, an enormous number of time steps are required for these converted SNNs, thus losing the energy-efficient benefit. Utilizing both the accuracy advantages of ANNs and the computing efficiency of SNNs, a novel SNN training framework is proposed, namely layer-wise ANN-to-SNN knowledge distillation (LaSNN). In order to achieve competitive accuracy and reduced inference latency, LaSNN transfers the learning from a well-trained ANN to a small SNN by distilling the knowledge other than converting the parameters of ANN. The information gap between heterogeneous ANN and SNN is bridged by introducing the attention scheme, the knowledge in an ANN is effectively compressed and then efficiently transferred by utilizing our layer-wise distillation paradigm. We conduct detailed experiments to demonstrate the effectiveness, efficacy, and scalability of LaSNN on three benchmark data sets (CIFAR-10, CIFAR-100, and Tiny ImageNet). We achieve competitive top-1 accuracy compared to ANNs and 20x faster inference than converted SNNs with similar performance. More importantly, LaSNN is dexterous and extensible that can be effortlessly developed for SNNs with different architectures/depths and input encoding methods, contributing to their potential development.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑