arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2301.09522cs.CV
收藏

使用正则化和截断优化事件驱动的脉冲神经网络

Optimising Event-Driven Spiking Neural Network with Regularisation and Cutoff

University of Liverpool(利物浦大学);Southeast University(东南大学);Institute of Software, CAS(中国科学院软件研究所);Chalmers University of Technology(查尔姆斯理工大学)

Dengyu Wu, Gaojie Jin, Han Yu, Xinping Yi, Xiaowei Huang

AI总结:

针对脉冲神经网络固定时长推理忽略动态推理潜力的问题,提出结合Top-K截断与正则化技术的事件驱动优化方法,在几乎零精度损失下显著减少推理时间步。

摘要:

脉冲神经网络(SNN)作为下一代人工神经网络(ANN),能更接近地模拟自然神经网络,并在计算效率方面具有巨大提升潜力。然而,当前的SNN被训练为在固定时长内进行推理,忽略了SNN中动态推理的潜力。在本文中,我们通过提出在SNN中引入截断(cutoff)来加强SNN与事件驱动处理的结合,该截断可以在推理过程中的任意时刻终止SNN以实现高效推理。为实现推理高效的SNN,我们提出了两种新颖的优化技术:Top-K截断和一种正则化方法。所提出的正则化影响训练过程,针对截断优化SNN,而Top-K截断技术则优化推理阶段。我们在多个基准的基于帧的数据集(如CIFAR10/100、Tiny-ImageNet)和基于事件的数据集(包括CIFAR10-DVS、N-Caltech101和DVS128 Gesture)上进行了大量实验。实验结果证明了我们的技术在ANN到SNN转换和直接训练中的有效性,使得SNN在CIFAR-10上所需的timesteps减少1.76至2.76倍,同时在所有基于事件的数据集上实现1.64至1.95倍的timesteps减少,且准确率损失接近于零。这些发现证实了我们的技术在集成到现有方法中时,在提升准确率和降低推理延迟方面的兼容性和潜在优势。代码可用:https://github.com/Dengyu-Wu/SNNCutoff

英文摘要:

Spiking neural network (SNN), as the next generation of artificial neural network (ANN), offer a closer mimicry of natural neural networks and hold promise for significant improvements in computational efficiency. However, the current SNN is trained to infer over a fixed duration, overlooking the potential of dynamic inference in SNN. In this paper, we strengthen the marriage between SNN and event-driven processing with a proposal to consider a cutoff in SNN, which can terminate SNN anytime during inference to achieve efficient inference. Two novel optimisation techniques are presented to achieve inference efficient SNN: a Top-K cutoff and a regularisation.The proposed regularisation influences the training process, optimising SNN for the cutoff, while the Top-K cutoff technique optimises the inference phase. We conduct an extensive set of experiments on multiple benchmark frame-based datasets, such asCIFAR10/100, Tiny-ImageNet, and event-based datasets, including CIFAR10-DVS, N-Caltech101 and DVS128 Gesture. The experimental results demonstrate the effectiveness of our techniques in both ANN-to-SNN conversion and direct training, enabling SNNs to require 1.76 to 2.76x fewer timesteps for CIFAR-10, while achieving 1.64 to 1.95x fewer timesteps across all event-based datasets, with near-zero accuracy loss. These findings affirms the compatibility and potential benefits of our techniques in enhancing accuracy and reducing inference latency when integrated with existing methods. Code available: https://github.com/Dengyu-Wu/SNNCutoff

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

↑