arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2312.05290cs.CV
收藏

脉冲神经网络中的噪声适配器

Noise Adaptor in Spiking Neural Networks

King’s College London(伦敦国王学院)

Chen Li, Bipin Rajendran

AI总结:

本文针对低位宽 ANN 转低延迟 SNN 时的偶发噪声与准确率平台期问题,提出可在训练中建模噪声的 noise adaptor,显著提升峰值准确率并达到全精度 ANN 水平。

摘要:

低延迟脉冲神经网络(SNN)算法的最新进展引起了广泛关注,这尤其得益于其事件驱动的计算特性和快速推理能力。构建低延迟 SNN 最有效的方法之一,是将预训练的低位宽人工神经网络(ANN)转换为 SNN。然而,这一转换过程面临两大挑战:首先,从低位宽 ANN 转换得到 SNN 时,推理期间可能出现“偶发噪声”——即脉冲神经元在本不应产生脉冲的情况下产生偶发脉冲的现象,这会显著降低 SNN 的准确率。其次,尽管低延迟 SNN 的准确率最初会随时间步快速提升,但这种准确率增长很快便趋于平台期,导致其峰值准确率落后于全精度 ANN,以及优先考虑精度而非速度的传统“长延迟 SNN”。针对这两个挑战,本文提出了一种名为“noise adaptor(噪声适配器)”的新技术。噪声适配器能够在训练期间对偶发噪声进行建模,并隐式优化 SNN 准确率,尤其是在较高仿真时间 T 时。本研究使用 ResNet 模型全面分析了噪声适配器对低延迟 SNN 的影响。结果表明,我们的方法优于此前报道的量化 ANN 到 SNN 的转换技术。在 CIFAR-10 上使用 ResNet-18,我们在 4 个时间步内取得了 95.95% 的准确率;在 ImageNet 上使用 ResNet-50,在 64 个时间步内取得了 74.37% 的准确率。值得注意的是,这些结果是在 SNN 推理过程中没有借助任何噪声校正方法的情况下取得的,例如负脉冲或两阶段 SNN 仿真。我们的方法显著提升了低延迟 SNN 的峰值准确率,使其达到与全精度 ANN 相当的准确率。代码将开源。

英文摘要:

Recent strides in low-latency spiking neural network (SNN) algorithms have drawn significant interest, particularly due to their event-driven computing nature and fast inference capability. One of the most efficient ways to construct a low-latency SNN is by converting a pre-trained, low-bit artificial neural network (ANN) into an SNN. However, this conversion process faces two main challenges: First, converting SNNs from low-bit ANNs can lead to ``occasional noise" -- the phenomenon where occasional spikes are generated in spiking neurons where they should not be -- during inference, which significantly lowers SNN accuracy. Second, although low-latency SNNs initially show fast improvements in accuracy with time steps, these accuracy growths soon plateau, resulting in their peak accuracy lagging behind both full-precision ANNs and traditional ``long-latency SNNs'' that prioritize precision over speed. In response to these two challenges, this paper introduces a novel technique named ``noise adaptor.'' Noise adaptor can model occasional noise during training and implicitly optimize SNN accuracy, particularly at high simulation times $T$. Our research utilizes the ResNet model for a comprehensive analysis of the impact of the noise adaptor on low-latency SNNs. The results demonstrate that our method outperforms the previously reported quant-ANN-to-SNN conversion technique. We achieved an accuracy of 95.95\% within 4 time steps on CIFAR-10 using ResNet-18, and an accuracy of 74.37\% within 64 time steps on ImageNet using ResNet-50. Remarkably, these results were obtained without resorting to any noise correction methods during SNN inference, such as negative spikes or two-stage SNN simulations. Our approach significantly boosts the peak accuracy of low-latency SNNs, bringing them on par with the accuracy of full-precision ANNs. Code will be open source.

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

↑