arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.03368cs.NE

面向高性能与低功耗应用的ANN-SNN转换中的推理尺度复杂度

Inference-Scale Complexity in ANN-SNN Conversion for High-Performance and Low-Power Applications

Tong Bu, Maohua Li, Zhaofei Yu

AI总结:

提出一种仅具推理尺度复杂度的ANN-SNN转换框架,通过局部阈值平衡与延迟评估策略,在多种视觉任务中实现高性能低功耗推理。

摘要:

脉冲神经网络(SNNs)因其快速推理和低功耗的优势,已成为人工神经网络(ANNs)极具前景的替代方案。然而,缺乏高效的训练算法阻碍了其广泛应用。即使是高效的ANN-SNN转换方法,也需要对ANN进行量化训练以提升转换效果,从而产生额外的训练成本。为了应对这些挑战,我们提出了一种仅具有推理尺度复杂度的高效ANN-SNN转换框架。该转换框架包含一个局部阈值平衡算法,通过逐通道缩放实现最优阈值的高效计算和阈值的细粒度调整。我们还引入了有效的延迟评估策略,以缓解脉冲传播延迟的影响。我们在典型计算机视觉任务中展示了该框架的可扩展性:图像分类、语义分割、目标检测和视频分类。我们的算法优于现有方法,凸显了其实用性和高效性。此外,我们评估了转换后SNNs的能耗,证明其相比传统ANNs具有卓越的低功耗优势。该方法利用开源预训练ANN模型简化了SNNs的部署,在性能几乎无损的情况下实现了快速、低功耗的推理。代码可在 https://github.com/putshua/Inference-scale-ANN-SNN 获取。

英文摘要:

Spiking Neural Networks (SNNs) have emerged as a promising substitute for Artificial Neural Networks (ANNs) due to their advantages of fast inference and low power consumption. However, the lack of efficient training algorithms has hindered their widespread adoption. Even efficient ANN-SNN conversion methods necessitate quantized training of ANNs to enhance the effectiveness of the conversion, incurring additional training costs. To address these challenges, we propose an efficient ANN-SNN conversion framework with only inference scale complexity. The conversion framework includes a local threshold balancing algorithm, which enables efficient calculation of the optimal thresholds and fine-grained adjustment of the threshold value by channel-wise scaling. We also introduce an effective delayed evaluation strategy to mitigate the influence of the spike propagation delays. We demonstrate the scalability of our framework in typical computer vision tasks: image classification, semantic segmentation, object detection, and video classification. Our algorithm outperforms existing methods, highlighting its practical applicability and efficiency. Moreover, we have evaluated the energy consumption of the converted SNNs, demonstrating their superior low-power advantage compared to conventional ANNs. This approach simplifies the deployment of SNNs by leveraging open-source pre-trained ANN models, enabling fast, low-power inference with negligible performance reduction. Code is available at https://github.com/putshua/Inference-scale-ANN-SNN.

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

↑