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

一个时间步就是你所需要的一切:训练超低延迟的脉冲神经网络

One Timestep is All You Need: Training Spiking Neural Networks with Ultra Low Latency

School of Electrical and Computer Engineering(电气与计算机工程学院);Purdue University(普渡大学)

Sayeed Shafayet Chowdhury, Nitin Rathi, Kaushik Roy

摘要:

脉冲神经网络(SNN)是常用深度神经网络(DNN)的节能替代方案。通过事件驱动的信息处理,SNN可以大大降低DNN昂贵的计算需求,同时实现相当的性能。然而,高推理延迟是深度SNN边缘部署的重要障碍。在多个时间步上的计算不仅由于更高数量的操作而增加延迟以及总体能量预算,而且还引起获取膜电位的存储器访问开销,这两者都减少了SNN的能量益处。为了克服这一瓶颈,充分发挥SNN的潜力,我们提出了一种SNN的迭代训练和再训练方法(IIR-SNN),在时间轴上执行Single Shot推理。该方法从用T个时间步(T>1)训练的SNN开始。然后,在延迟减少的每个阶段,在前一阶段训练的网络具有较高的时间步长被用作后续训练的初始化具有较低的时间步长。这充当压缩方法,因为网络在时域中逐渐收缩。在本文中,我们使用直接输入编码并选择T=5,因为根据文献,这是在ImageNet上实现令人满意的性能所需的最小延迟。所提出的方案允许我们获得SNN与单位延迟,需要一个单一的前向通过推理过程中。我们在CIFAR-10、CIFAR-100和ImageNet上分别实现了93.05%、70.15%和67.71%的前1准确率,使用VGG 16,只需1个时间步长。此外,与其他最先进的SNN相比,IIR-SNN执行推理的延迟减少了5- 2500倍,保持了相当甚至更好的准确性。此外,与标准DNN相比,所提出的IIR-SNN提供了25 - 33倍的能量效率,同时在分类性能上与它们相当。

英文摘要:

Spiking Neural Networks (SNNs) are energy efficient alternatives to commonly used deep neural networks (DNNs). Through event-driven information processing, SNNs can reduce the expensive compute requirements of DNNs considerably, while achieving comparable performance. However, high inference latency is a significant hindrance to the edge deployment of deep SNNs. Computation over multiple timesteps not only increases latency as well as overall energy budget due to higher number of operations, but also incurs memory access overhead of fetching membrane potentials, both of which lessen the energy benefits of SNNs. To overcome this bottleneck and leverage the full potential of SNNs, we propose an Iterative Initialization and Retraining method for SNNs (IIR-SNN) to perform single shot inference in the temporal axis. The method starts with an SNN trained with T timesteps (T>1). Then at each stage of latency reduction, the network trained at previous stage with higher timestep is utilized as initialization for subsequent training with lower timestep. This acts as a compression method, as the network is gradually shrunk in the temporal domain. In this paper, we use direct input encoding and choose T=5, since as per literature, it is the minimum required latency to achieve satisfactory performance on ImageNet. The proposed scheme allows us to obtain SNNs with up to unit latency, requiring a single forward pass during inference. We achieve top-1 accuracy of 93.05%, 70.15% and 67.71% on CIFAR-10, CIFAR-100 and ImageNet, respectively using VGG16, with just 1 timestep. In addition, IIR-SNNs perform inference with 5-2500X reduced latency compared to other state-of-the-art SNNs, maintaining comparable or even better accuracy. Furthermore, in comparison with standard DNNs, the proposed IIR-SNNs provide25-33X higher energy efficiency, while being comparable to them in classification performance.

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

↑