Skip to main content
QUICK REVIEW

[论文解读] To Spike or Not To Spike: A Digital Hardware Perspective on Deep Learning Acceleration

Fabrizio Ottati, Chang Gao|arXiv (Cornell University)|Jun 27, 2023
Advanced Memory and Neural ComputingEngineering被引用 3
一句话总结

本文对用于人工神经网络(ANNs)和脉冲神经网络(SNNs)的数字硬件加速器进行了定量比较,结果表明,在静态图像分类任务中,ANNs 因每次推理的运算量更低而表现更优;而在时间序列任务中,SNNs 展现出具有竞争力的能效表现,并支持全芯片训练——这凸显了混合 SNN-ANN 架构在实现高效、自适应人工智能硬件方面的巨大潜力。

ABSTRACT

As deep learning models scale, they become increasingly competitive from domains spanning from computer vision to natural language processing; however, this happens at the expense of efficiency since they require increasingly more memory and computing power. The power efficiency of the biological brain outperforms any large-scale deep learning ( DL ) model; thus, neuromorphic computing tries to mimic the brain operations, such as spike-based information processing, to improve the efficiency of DL models. Despite the benefits of the brain, such as efficient information transmission, dense neuronal interconnects, and the co-location of computation and memory, the available biological substrate has severely constrained the evolution of biological brains. Electronic hardware does not have the same constraints; therefore, while modeling spiking neural networks ( SNNs) might uncover one piece of the puzzle, the design of efficient hardware backends for SNN s needs further investigation, potentially taking inspiration from the available work done on the artificial neural networks ( ANNs) side. As such, when is it wise to look at the brain while designing new hardware, and when should it be ignored? To answer this question, we quantitatively compare the digital hardware acceleration techniques and platforms of ANNs and SNN s. As a result, we provide the following insights: (i) ANNs currently process static data more efficiently, (ii) applications targeting data produced by neuromorphic sensors, such as event-based cameras and silicon cochleas, need more investigation since the behavior of these sensors might naturally fit the SNN paradigm, and (iii) hybrid approaches combining SNN s and ANNs might lead to the best solutions and should be investigated further at the hardware level, accounting for both efficiency and loss optimization.

研究动机与目标

  • 评估在数字实现中,脉冲神经网络(SNNs)相较于传统人工神经网络(ANNs)是否具有切实的硬件优势。
  • 识别 SNNs 在能效或性能方面相较于 ANNs 表现更优的应用领域。
  • 研究神经形态传感器(如事件相机)在支持 SNN 原生工作负载中的作用。
  • 评估混合 SNN-ANN 硬件加速器的可行性与优势,以在准确性、效率和适应性之间取得平衡。
  • 确定在硬件设计中应优先采用类脑脉冲计算的场景,以及何时应依赖成熟的 ANNs 加速技术。

提出的方法

  • 本研究在静态(如 ImageNet)和时间序列(如关键词识别 KWS、序列学习)工作负载下,对比了最先进的 ANNs 和 SNNs 数字加速器。
  • 构建了一个能量模型,用于估算 ANNs 和 SNNs 在静态和序列任务中的能耗与性能权衡。
  • 采用能效(nJ/推理)、分类准确率、延迟和功耗等指标评估硬件性能。
  • 对 SOTA 芯片(如 Shan’23(ANN)、Frenkel’22(SNN)、C-DNN’23(混合))在关键词识别(KWS)和语音活动检测(VAD)等任务上的表现进行了详细基准测试。
  • 本研究基于真实芯片测量数据和已发表文献,对比了帕累托效率、稀疏性利用率和芯片内训练能力。
  • 定义了工作负载分类体系——静态(单次通过推理)与时间序列(序列处理),以指导架构评估。

实验结果

研究问题

  • RQ1在深度学习任务的数字硬件加速中,何时使用 SNNs 相较于 ANNs 具有优势?
  • RQ2SNN 加速器在时间序列和序列工作负载中,其能效相较于 ANNs 的优势有多大?
  • RQ3如 Frenkel’22 所示,SNN 的芯片内训练能力是否在边缘部署中为实际应用提供优于仅支持推理的 ANNs 芯片的优势?
  • RQ4神经形态传感器(如事件相机和硅耳蜗)如何影响 SNN 在特定工作负载中的适用性?
  • RQ5混合 SNN-ANN 架构在下一代人工智能加速器中,如何在实现高准确率与高能效之间发挥关键作用?

主要发现

  • 在静态图像分类任务中,ANN 加速器优于 SNN,Shan’23 在 KWS 任务中实现了最高的能效(1.1 nJ/推理)和最高准确率(1.2% 错误率),在帕累托前沿上全面优于所有 SNN 芯片。
  • SNN 加速器如 Frenkel’22 实现了具有竞争力的能效(3.5 nJ/推理),且是唯一支持全芯片内训练的芯片,使边缘设备具备动态适应能力。
  • SNN 的多时间步处理机制增加了每次推理的运算量,导致吞吐量和能耗开销高于单次通过的 ANNs 推理。
  • 尽管准确率较低(11.2% 错误率)且参数量高出 Shan’23 的 28 倍,Frenkel’22 的芯片内训练能力仍为自适应边缘应用提供了独特优势。
  • 混合 SNN-ANN 加速器如 C-DNN’23 在 28 nm CMOS 工艺下实现了第二高的能效(3.5 nJ/推理),表明混合架构可在性能与效率之间实现良好平衡。
  • 基于神经形态传感器(如事件相机)的数据应用仍研究不足,但因其与时间编码的天然匹配性,被认为是 SNN 原生工作负载的有前途方向。

阅读本论文

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

在 Nubint 中阅读本论文

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