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

速率编码或直接编码:哪一个更适合准确,鲁棒和节能的脉冲神经网络?

Rate Coding or Direct Coding: Which One is Better for Accurate, Robust, and Energy-efficient Spiking Neural Networks?

Yale University, USA(美国耶鲁大学)

Youngeun Kim, Hyoungseob Park, Abhishek Moitra, Abhiroop Bhattacharjee, Yeshwanth Venkatesha, Priyadarshini Panda

摘要:

最近的脉冲神经网络(SNN)工作集中于图像分类任务,因此已经提出了各种编码技术来将图像转换为时间二进制脉冲。其中,速率编码和直接编码被认为是构建实用SNN系统的潜在候选者,因为它们在大规模数据集上显示出最先进的性能。尽管它们的使用,很少有人注意到以公平的方式比较这两种编码方案。在本文中,我们从三个角度进行了全面的分析:准确性,对抗鲁棒性和能量效率。首先,我们比较了两种编码技术与各种架构和数据集的性能。然后,我们衡量的两个对抗攻击方法的编码技术的鲁棒性。最后,我们比较了两种编码方案的数字硬件平台上的能量效率。我们的研究结果表明,直接编码可以实现更好的精度,特别是对于少量的时间步长。相比之下,由于不可微的尖峰生成过程,速率编码对对抗攻击表现出更好的鲁棒性。速率编码还产生比直接编码更高的能量效率,直接编码要求第一层的多比特精度。我们的研究探讨了两个编码的特点,这是一个重要的设计考虑建设SNN。该守则可在https://github.com/Intelligent-Computing-Lab-Yale/Rate-vs-Direct上查阅。

英文摘要:

Recent Spiking Neural Networks (SNNs) works focus on an image classification task, therefore various coding techniques have been proposed to convert an image into temporal binary spikes. Among them, rate coding and direct coding are regarded as prospective candidates for building a practical SNN system as they show state-of-the-art performance on large-scale datasets. Despite their usage, there is little attention to comparing these two coding schemes in a fair manner. In this paper, we conduct a comprehensive analysis of the two codings from three perspectives: accuracy, adversarial robustness, and energy-efficiency. First, we compare the performance of two coding techniques with various architectures and datasets. Then, we measure the robustness of the coding techniques on two adversarial attack methods. Finally, we compare the energy-efficiency of two coding schemes on a digital hardware platform. Our results show that direct coding can achieve better accuracy especially for a small number of timesteps. In contrast, rate coding shows better robustness to adversarial attacks owing to the non-differentiable spike generation process. Rate coding also yields higher energy-efficiency than direct coding which requires multi-bit precision for the first layer. Our study explores the characteristics of two codings, which is an important design consideration for building SNNs. The code is made available at https://github.com/Intelligent-Computing-Lab-Yale/Rate-vs-Direct.

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

↑