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

差分编码用于免训练ANN到SNN转换

Differential Coding for Training-Free ANN-to-SNN Conversion

School of Computer Science, Peking University, Beijing, China(北京大学计算机科学学院);Institute for Artificial Intelligence, Peking University, Beijing, China(北京大学人工智能研究院);School of Electronic and Computer Engineering, Shenzhen Graduate School, Peking University, Shenzhen, China(北京大学深圳研究生院电子与计算机工程学院);Peng Cheng Laboratory, Shenzhen, China(鹏城实验室);Shenzhen Institute of Advanced Technology, Chinese Academy of Sciences, Shenzhen, China(中国科学院深圳先进技术研究所)

Zihan Huang, Wei Fang, Tong Bu, Peng Xue, Zecheng Hao, Wenxuan Liu, Yuanhong Tang, Zhaofei Yu, Tiejun Huang

AI总结:

本文提出差分编码与阈值迭代方法,用于免训练ANN到SNN转换,减少脉冲和能耗,提升准确率,在CNN和Transformer上达到最先进性能。

摘要:

脉冲神经网络(SNNs)因其低能耗而展现出巨大潜力。将人工神经网络(ANNs)转换为SNNs是实现高性能SNNs的有效途径。然而,许多转换方法基于速率编码,与直接训练的SNNs相比,需要大量脉冲和更长的时间步长,导致能耗和延迟增加。本文针对ANN到SNN转换引入差分编码,这是一种新颖的编码方案,通过传输速率信息的变化而非直接传输速率来减少脉冲数量和能耗,并探索了其在不同层中的应用。此外,提出了阈值迭代方法,在将修正线性单元(ReLUs)转换为脉冲神经元时,基于激活分布优化阈值。在多种卷积神经网络(CNNs)和Transformer上的实验结果表明,所提出的差分编码显著提高了准确性,同时降低了能耗,特别是与阈值迭代方法结合时,达到了最先进的性能。所提出方法的源代码可在https://github.com/h-z-h-cell/ANN-to-SNN-DCGS获取。

英文摘要:

Spiking Neural Networks (SNNs) exhibit significant potential due to their low energy consumption. Converting Artificial Neural Networks (ANNs) to SNNs is an efficient way to achieve high-performance SNNs. However, many conversion methods are based on rate coding, which requires numerous spikes and longer time-steps compared to directly trained SNNs, leading to increased energy consumption and latency. This article introduces differential coding for ANN-to-SNN conversion, a novel coding scheme that reduces spike counts and energy consumption by transmitting changes in rate information rather than rates directly, and explores its application across various layers. Additionally, the threshold iteration method is proposed to optimize thresholds based on activation distribution when converting Rectified Linear Units (ReLUs) to spiking neurons. Experimental results on various Convolutional Neural Networks (CNNs) and Transformers demonstrate that the proposed differential coding significantly improves accuracy while reducing energy consumption, particularly when combined with the threshold iteration method, achieving state-of-the-art performance. The source codes of the proposed method are available at https://github.com/h-z-h-cell/ANN-to-SNN-DCGS.

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

↑