arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2303.04347cs.NE
收藏

高精度超低延迟脉冲神经网络的最优ANN-SNN转换

Optimal ANN-SNN Conversion for High-accuracy and Ultra-low-latency Spiking Neural Networks

Tong Bu, Wei Fang, Jianhao Ding, PengLin Dai, Zhaofei Yu, Tiejun Huang

摘要:

脉冲神经网络(SNN)以其低功耗、快速推理等特点在神经形态硬件上得到了广泛的关注。作为获得深度SNN的最有效方法,ANN-SNN转换在大规模数据集上取得了与ANN相当的性能。尽管如此,它需要很长的时间步长来匹配SNN的发射率到ANN的激活。因此,转换后的SNN遭受严重的性能退化问题与短的时间步长,这阻碍了SNN的实际应用。本文从理论上分析了ANN-SNN的转换误差,推导了SNN的激活函数估计。然后,我们提出了量化限幅地板移位激活函数来代替源神经网络中的ReLU激活函数,它可以更好地逼近SNN的激活函数。我们证明了SNN和ANN之间的预期转换误差为零,使我们能够实现高精度和超低延迟的SNN。我们在CIFAR-10/100和ImageNet数据集上评估了我们的方法,并表明它在准确性和时间步长方面都优于最先进的ANN-SNN和直接训练的SNN。据我们所知,这是第一次探索具有超低延迟(4个时间步长)的高性能ANN-SNN转换。代码可以在https://github.com/putshua/SNN\_conversion\_QCFS上找到

英文摘要:

Spiking Neural Networks (SNNs) have gained great attraction due to their distinctive properties of low power consumption and fast inference on neuromorphic hardware. As the most effective method to get deep SNNs, ANN-SNN conversion has achieved comparable performance as ANNs on large-scale datasets. Despite this, it requires long time-steps to match the firing rates of SNNs to the activation of ANNs. As a result, the converted SNN suffers severe performance degradation problems with short time-steps, which hamper the practical application of SNNs. In this paper, we theoretically analyze ANN-SNN conversion error and derive the estimated activation function of SNNs. Then we propose the quantization clip-floor-shift activation function to replace the ReLU activation function in source ANNs, which can better approximate the activation function of SNNs. We prove that the expected conversion error between SNNs and ANNs is zero, enabling us to achieve high-accuracy and ultra-low-latency SNNs. We evaluate our method on CIFAR-10/100 and ImageNet datasets, and show that it outperforms the state-of-the-art ANN-SNN and directly trained SNNs in both accuracy and time-steps. To the best of our knowledge, this is the first time to explore high-performance ANN-SNN conversion with ultra-low latency (4 time-steps). Code is available at https://github.com/putshua/SNN\_conversion\_QCFS

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

↑