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

面向超低延迟的无损ANN-SNN转换:双阶段优化方法

Towards Lossless ANN-SNN Conversion under Ultra-Low Latency with Dual-Phase Optimization

College of Computer Science and Technology, Zhejiang University(浙江大学计算机科学与技术学院);Zhejiang Lab(之江实验室);School of Integrated Circuits, Peking University(北京大学集成电路学院);College of Computer Science, Zhejiang University of Technology(浙江工业大学计算机学院);State Key Laboratory of Brain-Machine Intelligence, Zhejiang University(浙江大学脑机智能国家重点实验室)

Ziming Wang, Shuang Lian, Yuhao Zhang, Xiaoxin Cui, Rui Yan, Huajin Tang

AI总结:

本文提出一种双阶段优化的ANN-SNN转换方法,通过分解并分别最小化量化、裁剪和残余膜电位表示误差,在超低延迟下实现无损转换,在图像分类和目标检测任务上达到最先进性能。

摘要:

脉冲神经网络(SNNs)通过异步离散事件进行计算,凭借稀疏计算展现出更高的能效。实现深度SNN的一种流行方法是ANN-SNN转换,该方法结合了ANN的高效训练与SNN的高效推理。然而,转换过程中的精度损失通常不可忽视,尤其是在时间步数较少的情况下,这极大地限制了SNN在延迟敏感的边缘设备上的应用。本文首先指出,这种性能退化源于SNN中负膜电位或溢出残余膜电位的错误表示。基于此,我们将转换误差分解为三个部分:量化误差、裁剪误差和残余膜电位表示误差。基于这些洞察,我们提出了一种两阶段转换算法,分别最小化这些误差。此外,我们展示了每个阶段以互补方式实现了显著的性能提升。通过在包括CIFAR-10、CIFAR-100和ImageNet在内的挑战性数据集上的评估,所提出的方法在精度、延迟和能量保持方面均展现了最先进的性能。此外,我们的方法还在更具挑战性的目标检测任务上进行了评估,与现有的基于脉冲的检测算法相比,在超低延迟下展现出显著的回归性能提升。代码可在https://github.com/Windere/snn-cvt-dual-phase获取。

英文摘要:

Spiking neural networks (SNNs) operating with asynchronous discrete events show higher energy efficiency with sparse computation. A popular approach for implementing deep SNNs is ANN-SNN conversion combining both efficient training of ANNs and efficient inference of SNNs. However, the accuracy loss is usually non-negligible, especially under a few time steps, which restricts the applications of SNN on latency-sensitive edge devices greatly. In this paper, we first identify that such performance degradation stems from the misrepresentation of the negative or overflow residual membrane potential in SNNs. Inspired by this, we decompose the conversion error into three parts: quantization error, clipping error, and residual membrane potential representation error. With such insights, we propose a two-stage conversion algorithm to minimize those errors respectively. Besides, We show each stage achieves significant performance gains in a complementary manner. By evaluating on challenging datasets including CIFAR-10, CIFAR- 100 and ImageNet, the proposed method demonstrates the state-of-the-art performance in terms of accuracy, latency and energy preservation. Furthermore, our method is evaluated using a more challenging object detection task, revealing notable gains in regression performance under ultra-low latency when compared to existing spike-based detection algorithms. Codes are available at https://github.com/Windere/snn-cvt-dual-phase.

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

↑