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

单脉冲SNN:基于基底操作的单脉冲相位编码用于ANN到SNN转换损失最小化

One-Spike SNN: Single-Spike Phase Coding with Base Manipulation for ANN-to-SNN Conversion Loss Minimization

Daegu Gyeongbuk Institute of Science and Technology (DGIST)(大邱庆北科学技术院(DGIST));Korea University(高丽大学)

Sangwoo Hwang, Jaeha Kung

AI总结:

提出一种单脉冲相位编码及阈值偏移和基底操作,用于ANN到SNN转换,无需再训练,在CNN和GCN上平均精度损失小,能量效率提升4.6-17.3倍。

摘要:

由于脉冲神经网络(SNN)是事件驱动的,其能量效率高于传统人工神经网络(ANN)。由于SNN通过离散脉冲传递数据,难以使用梯度方法进行训练,这限制了其准确性。为了保持SNN的准确性与ANN相当,预训练的ANN被转换为SNN(ANN到SNN转换)。在转换过程中,将ANN的激活编码为SNN中的一组脉冲对于最小化转换损失至关重要。在这项工作中,我们提出了一种单脉冲相位编码方案,该方案最小化了SNN层间数据传输的脉冲数量。为了减少相位编码中单脉冲近似带来的编码误差,我们提出了阈值偏移和基底操作。无需对ANN进行任何额外的再训练或架构约束,所提出的转换方法不会损失推理准确性(平均0.58%),这在三个使用CIFAR和ImageNet数据集的卷积神经网络(CNN)上得到了验证。此外,图卷积网络(GCN)也成功转换为SNN,平均准确率损失为0.90%。最重要的是,与ANN基线相比,我们的SNN的能量效率提高了4.6至17.3倍。

英文摘要:

As spiking neural networks (SNNs) are event-driven, energy efficiency is higher than conventional artificial neural networks (ANNs). Since SNN delivers data through discrete spikes, it is difficult to use gradient methods for training, limiting its accuracy. To keep the accuracy of SNNs similar to ANN counterparts, pre-trained ANNs are converted to SNNs (ANN-to-SNN conversion). During the conversion, encoding activations of ANNs to a set of spikes in SNNs is crucial for minimizing the conversion loss. In this work, we propose a single-spike phase coding as an encoding scheme that minimizes the number of spikes to transfer data between SNN layers. To minimize the encoding error due to single-spike approximation in phase coding, threshold shift and base manipulation are proposed. Without any additional retraining or architectural constraints on ANNs, the proposed conversion method does not lose inference accuracy (0.58% on average) verified on three convolutional neural networks (CNNs) with CIFAR and ImageNet datasets.In addition, graph convolutional networks (GCNs) are converted to SNNs successfully with an average accuracy loss of 0.90%.Most importantly, the energy efficiency of our SNN improves by 4.6~17.3 X compared to the ANN baseline.

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

↑