Skip to main content
QUICK REVIEW

[论文解读] Digital Neuron: A Hardware Inference Accelerator for Convolutional Deep Neural Networks

Hyunbin Park, Dohyun Kim|arXiv (Cornell University)|Dec 16, 2018
Advanced Neural Network ApplicationsComputer Science参考文献 27被引用 3
一句话总结

该论文提出 Digital Neuron,一种用于嵌入式系统中卷积神经网络的硬件推理加速器,采用带桶形移位器和并行加法器的定点数运算,以减少面积和功耗。其吞吐量达到 754.7 GMACs/W,通过使用 3-部分整数量化保持了高精度,实现了高吞吐量、高能效的推理,同时通过片上数据重用减少了 DRAM 访问。

ABSTRACT

We propose a Digital Neuron, a hardware inference accelerator for convolutional deep neural networks with integer inputs and integer weights for embedded systems. The main idea to reduce circuit area and power consumption is manipulating dot products between input feature and weight vectors by Barrel shifters and parallel adders. The reduced area allows the more computational engines to be mounted on an inference accelerator, resulting in high throughput compared to prior HW accelerators. We verified that the multiplication of integer numbers with 3-partial sub-integers does not cause significant loss of inference accuracy compared to 32-bit floating point calculation. The proposed digital neuron can perform 800 MAC operations in one clock for computation for convolution as well as full-connection. This paper provides a scheme that reuses input, weight, and output of all layers to reduce DRAM access. In addition, this paper proposes a configurable architecture that can provide inference of adaptable feature of convolutional neural networks. The throughput in terms of Watt of the digital neuron is achieved 754.7 GMACs/W.

研究动机与目标

  • 设计一种用于卷积神经网络的硬件推理加速器,以最小化嵌入式系统中的面积和功耗。
  • 通过使用定点数运算而非浮点数运算,实现高吞吐量推理,从而降低硬件复杂度。
  • 通过在所有层中重用输入、权重和输出数据,最小化 DRAM 访问。
  • 通过使用 3-部分子整数表示权重和激活值,即使在量化后仍能保持高推理精度。
  • 提供可配置架构,支持多种 CNN 层配置。

提出的方法

  • 加速器使用桶形移位器和并行加法器,高效计算整数输入与权重之间的点积,避免使用乘法器。
  • 在每个时钟周期内对卷积层和全连接层均执行 800 次乘加(MAC)操作。
  • 采用 3-部分子整数(例如 8 位定点数)的定点数运算,与 32 位浮点数相比,精度损失极小。
  • 通过在各层之间重用特征图、权重和输出数据,实现片上数据重用,从而减少对外部存储器的访问。
  • 可配置架构支持多种 CNN 层类型和超参数,实现对不同模型的适应能力。
  • 设计注重能效优化,实现了每瓦特的高吞吐量。

实验结果

研究问题

  • RQ1使用 3-部分子整数的定点数运算是否足以在嵌入式系统中保持 CNN 推理的足够精度?
  • RQ2如何在 CNN 推理加速器中降低硬件复杂度和功耗?
  • RQ3片上数据重用能在多大程度上减少 DRAM 访问并提升能效?
  • RQ4无乘法器、基于定点数的加速器可实现的吞吐量和能效是多少?
  • RQ5单一可配置架构能否高效支持多种 CNN 层类型和配置?

主要发现

  • Digital Neuron 加速器实现了 754.7 GMACs/W 的吞吐量,相比以往硬件加速器展现出卓越的能效表现。
  • 采用 3-部分子整数量化后,与 32 位浮点数相比,推理精度损失可忽略不计,验证了该量化方案的有效性。
  • 加速器在每个时钟周期内执行 800 次 MAC 操作,为卷积层和全连接层均提供了高吞吐量。
  • 片上数据重用显著减少了 DRAM 访问,大幅降低了内存带宽需求和功耗。
  • 使用桶形移位器和并行加法器消除了对乘法器的需求,减少了电路面积,并支持在片上集成更多计算单元。
  • 可配置架构支持多种 CNN 模型,提升了在嵌入式系统中部署的灵活性。

阅读本论文

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

在 Nubint 中阅读本论文

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