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

重新审视脉冲神经网络的能量效率

Reconsidering the Energy Efficiency of Spiking Neural Networks Inference from Analytical Perspectives

School of Computing, National University of Singapore(新加坡国立大学计算机学院)

Zhanglu Yan, Zhenyu Bai, Kaiwen Tang, Weng-Fai Wong

AI总结:

本文重新评估脉冲神经网络的能量效率,通过建立等效量化神经网络模型,分析其在不同参数和硬件条件下能量优势,并展示优化SNN可显著提升智能手表电池寿命。

摘要:

脉冲神经网络(SNNs)因其事件驱动、基于脉冲的计算,相较于传统量化人工神经网络(QNNs)具有更高的能效。然而,现有能量评估常简化计算方面,忽视关键开销如全面的数据移动和内存访问。本文提出严谨重新评估,通过将具有T时间步的速率编码SNN映射到功能等效的QNN,具有⌈log₂(T+1)⌉位,确保两者具有相似的表示能力和硬件需求,实现有意义的能量比较。我们引入包含核心计算和数据移动的详细分析能量模型,系统探索广泛参数空间,包括内在网络特性(T、脉冲率s_r、QNN稀疏性γ、模型大小N、权重位级)和硬件特性(内存系统和网络芯片)。分析发现特定操作区域SNN确实提供更高的能效。例如,在典型神经形态硬件条件下,SNN在中等时间窗口(T∈[5,10])下,平均脉冲率低于6.4%时可超越等效QNN。进一步分析典型智能手表的操作寿命,展示优化SNN可将电池寿命几乎翻倍。这些见解指导真正能效的神经网络解决方案设计。

英文摘要:

Spiking Neural Networks (SNNs) promise higher energy efficiency over conventional Quantized Artificial Neural Networks (QNNs) due to their event-driven, spike-based computation. However, prevailing energy evaluations often oversimplify, focusing on computational aspects while neglecting critical overheads like comprehensive data movements and memory accesses. Such simplifications can lead to misleading conclusions regarding the true energy benefits of SNNs. This paper presents a rigorous re-evaluation. We establish a fair baseline by mapping rate-encoded SNNs with $T$ timesteps to capacity-matched QNNs with $\lceil \log_2(T+1) \rceil$ bits. This ensures both models have comparable representational capacities, as well as similar hardware requirements, enabling meaningful energy comparisons. We introduce a detailed analytical energy model encompassing core computation and data movements. Using this model, we systematically explore a wide parameter space, including intrinsic network characteristics (SNN time window size, spike rate, QNN sparsity, model size, weight bit-level) and hardware characteristics (memory system and network-on-chip). Our analysis identifies specific operational regimes where SNNs genuinely offer superior energy efficiency. For example, under typical neuromorphic hardware conditions, SNNs with moderate time windows ($T = 5$) require an average spike rate ($s_r$) below 5.7% to outperform equivalent QNNs These insights guide the design of truly energy-efficient neural network solutions.

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

↑