论文标题
费率编码或直接编码:哪一个更好,适合准确,健壮和节能的尖峰神经网络?
Rate Coding or Direct Coding: Which One is Better for Accurate, Robust, and Energy-efficient Spiking Neural Networks?
论文作者
论文摘要
最近的尖峰神经网络(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.