arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2302.02091cs.NEcs.AIcs.CV
收藏

利用剩余膜电位减小ANN-SNN转换误差

Reducing ANN-SNN Conversion Error through Residual Membrane Potential

School of Computer Science, Peking University(北京大学计算机科学学院);Institute for Artificial Intelligence, Peking University(北京大学人工智能研究院)

Zecheng Hao, Tong Bu, Jianhao Ding, Tiejun Huang, Zhaofei Yu

摘要:

脉冲神经网络(SNN)由于在神经形态芯片上具有低功耗和高速运算的独特性能而受到学术界的广泛关注。在SNN的各种训练方法中,ANN-SNN转换在大规模数据集上显示出与ANN相当的性能水平。然而,在短时间步长条件下,由于激活层上的尖峰信号到达时间序列不同而导致的偏差,即不均匀性误差,一直没有得到有效解决,严重影响了SNN的性能。本文对不匀误差进行了详细的分析,并将其分为四类。我们指出,神经网络输出为零,而SNN输出大于零的情况下占最大的比例。在此基础上,我们从理论上证明了这种情况下的充分必要条件,并提出了一种基于剩余膜电位的优化策略,以减少不均匀性误差。实验结果表明,该方法在CIFAR-10,CIFAR-100和ImageNet数据集上实现了最先进的性能。例如,我们在ImageNet上用10步达到了64.32%的top-1准确率。据我们所知,这是ANN-SNN转换首次在复杂数据集上同时实现高精度和超低延迟。代码可在https://github.com/hzc 1208/ANN2SNN\_SRP获得。

英文摘要:

Spiking Neural Networks (SNNs) have received extensive academic attention due to the unique properties of low power consumption and high-speed computing on neuromorphic chips. Among various training methods of SNNs, ANN-SNN conversion has shown the equivalent level of performance as ANNs on large-scale datasets. However, unevenness error, which refers to the deviation caused by different temporal sequences of spike arrival on activation layers, has not been effectively resolved and seriously suffers the performance of SNNs under the condition of short time-steps. In this paper, we make a detailed analysis of unevenness error and divide it into four categories. We point out that the case of the ANN output being zero while the SNN output being larger than zero accounts for the largest percentage. Based on this, we theoretically prove the sufficient and necessary conditions of this case and propose an optimization strategy based on residual membrane potential to reduce unevenness error. The experimental results show that the proposed method achieves state-of-the-art performance on CIFAR-10, CIFAR-100, and ImageNet datasets. For example, we reach top-1 accuracy of 64.32\% on ImageNet with 10-steps. To the best of our knowledge, this is the first time ANN-SNN conversion can simultaneously achieve high accuracy and ultra-low-latency on the complex dataset. Code is available at https://github.com/hzc1208/ANN2SNN\_SRP.

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

↑