Skip to main content
QUICK REVIEW

[论文解读] Open the box of digital neuromorphic processor: Towards effective algorithm-hardware co-design

Guangzhi Tang, Ali Safa|arXiv (Cornell University)|Mar 27, 2023
Advanced Memory and Neural ComputingEngineering被引用 3
一句话总结

本文通过提供 SENeCA 数字脉冲神经网络处理器的详细神经元指令集和关键脉冲神经网络组件的精确能效测量,打开了该处理器的黑箱。该工作使算法设计者能够以指令级精度预测能效,对视频处理和在线学习中的脉冲神经网络(SNN)进行准确的基准测试与协同优化。

ABSTRACT

Sparse and event-driven spiking neural network (SNN) algorithms are the ideal candidate solution for energy-efficient edge computing. Yet, with the growing complexity of SNN algorithms, it isn't easy to properly benchmark and optimize their computational cost without hardware in the loop. Although digital neuromorphic processors have been widely adopted to benchmark SNN algorithms, their black-box nature is problematic for algorithm-hardware co-optimization. In this work, we open the black box of the digital neuromorphic processor for algorithm designers by presenting the neuron processing instruction set and detailed energy consumption of the SENeCA neuromorphic architecture. For convenient benchmarking and optimization, we provide the energy cost of the essential neuromorphic components in SENeCA, including neuron models and learning rules. Moreover, we exploit the SENeCA's hierarchical memory and exhibit an advantage over existing neuromorphic processors. We show the energy efficiency of SNN algorithms for video processing and online learning, and demonstrate the potential of our work for optimizing algorithm designs. Overall, we present a practical approach to enable algorithm designers to accurately benchmark SNN algorithms and pave the way towards effective algorithm-hardware co-design.

研究动机与目标

  • 解决数字脉冲神经网络处理器缺乏透明度的问题,该问题阻碍了有效的算法-硬件协同设计。
  • 为 SENeCA 架构中的神经元处理指令和关键脉冲神经网络组件提供准确的低层级能效成本测量。
  • 使算法设计者能够在不实际部署于硬件的情况下,估算 SNN 的能耗。
  • 通过视频处理和在线学习的应用级基准测试,展示该框架的实用性。
  • 基于真实硬件的能效成本优化 SNN 设计,提升边缘应用的能效。

提出的方法

  • 对 SENeCA 的神经元处理指令(NPEs)进行电路级能效测量,报告每条指令的能效成本(单位:皮焦耳)。
  • 定义并量化核心脉冲神经网络组件的能效成本,包括 IF 和 sigma-delta 神经元模型、赫布学习规则以及分层内存访问。
  • 将低层级指令集抽象为更高层级的微内核和组件,以实现无需低层级编码即可快速估算硬件开销。
  • 利用 SENeCA 的 RISC-V 控制器和时分复用的 NPEs,以 BF16 精度流水线化、事件驱动地执行 SNN 微内核。
  • 通过指令计数和实测每条指令的能效,实现针对视频处理(ResNet-50、MobileNet 在 UCF-101 上)和在线赫布学习(数字分类)的应用特定基准测试。
  • 利用表 I 和表 III 中的实测值,将执行的指令数映射到总能耗,实现在设计阶段的精确能效估算。
Figure 1: The pipeline of a SENeCA neuromorphic core (left), the interconnected mesh architecture via NoC (right), and the hierarchical memory consist of register files (orange), local SRAM memories (green) and large shared memories (gray).
Figure 1: The pipeline of a SENeCA neuromorphic core (left), the interconnected mesh architecture via NoC (right), and the hierarchical memory consist of register files (orange), local SRAM memories (green) and large shared memories (gray).

实验结果

研究问题

  • RQ1算法设计者如何在不实际运行于物理脉冲神经网络硬件的情况下,准确估算 SNN 算法的能耗?
  • RQ2在 SENeCA 架构中,基本脉冲神经网络操作(如突触操作(sigma)、神经元输出评估(delta)和学习规则更新)的精确能效成本是多少?
  • RQ3分层内存和指令级优化在多大程度上可降低数字脉冲神经网络处理器中 SNN 工作负载的能效开销?
  • RQ4当使用精确的指令级能效模型与粗略估算时,SNN 在视频处理和在线学习中的能效表现有何差异?
  • RQ5所提出的框架能否通过揭示精度、网络规模与能耗之间的权衡,实现有效的算法-硬件协同设计?

主要发现

  • 在 SENeCA 中,单个 sigma 操作的能效成本为 7.0 pJ,而 delta 操作为 5.33 pJ,sigma 操作成本更高,因其执行维度更大。
  • 在 UCF-101 上的 ResNet-50 中,每帧的总能耗为 3504.0 μJ(突触操作)和 181.2 μJ(神经元输出评估),表明突触操作主导了能耗。
  • 在 MobileNet 中,每帧的能耗为 1792.3 μJ(突触操作)和 104.4 μJ(神经元评估),进一步证实了突触操作是主要能耗来源。
  • 该框架支持对在线赫布学习的精确能效-精度权衡分析,表明增加输出神经元数量(M)会提高能耗,但同时提升分类准确率。
  • 使用复杂度高但能效开销可忽略的 delta 单元,使算法设计者能够以极低代价减少事件数量,从而实现高效的稀疏化策略。
  • 该方法减少了对粗略硬件基准的依赖,实现了精确的早期阶段能效估算,并指导算法优化以适配真实硬件部署。
Figure 6: Accuracy vs. energy consumption of SNN-Hebbian learning execution (one time-step), with $M$ output neurons.
Figure 6: Accuracy vs. energy consumption of SNN-Hebbian learning execution (one time-step), with $M$ output neurons.

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。