Skip to main content
QUICK REVIEW

[论文解读] Computational Complexity Evaluation of Neural Network Applications in Signal Processing

Pedro J. Freire, Sasipim Srivallapanondh|arXiv (Cornell University)|Jun 24, 2022
Neural Networks and ApplicationsComputer Science被引用 42
一句话总结

本文提出一个统一框架,用于在信号处理领域评估和比较神经网络层的计算复杂度,引入四个从软件到硬件的度量,其中包括一个新的 NABS 度量,考虑量化。

ABSTRACT

In this paper, we provide a systematic approach for assessing and comparing the computational complexity of neural network layers in digital signal processing. We provide and link four software-to-hardware complexity measures, defining how the different complexity metrics relate to the layers' hyper-parameters. This paper explains how to compute these four metrics for feed-forward and recurrent layers, and defines in which case we ought to use a particular metric depending on whether we characterize a more soft- or hardware-oriented application. One of the four metrics, called `the number of additions and bit shifts (NABS)', is newly introduced for heterogeneous quantization. NABS characterizes the impact of not only the bitwidth used in the operation but also the type of quantization used in the arithmetical operations. We intend this work to serve as a baseline for the different levels (purposes) of complexity estimation related to the neural networks' application in real-time digital signal processing, aiming at unifying the computational complexity estimation.

研究动机与目标

  • 提供一种系统性方法,以评估和比较 DSP 场景中神经网络层的复杂度。
  • 链接并解释四个在软件与硬件角度的复杂度指标。
  • 展示如何在异质量化下计算前馈和循环层的这些指标。
  • 引入 NABS,以捕捉量化类型对乘法器/累加器成本的影响。

提出的方法

  • 从软件到硬件层面描述四个复杂度指标:RM(实乘法)、BOP(比特操作)、NABS(加法与比特位移次数)以及 NLG(逻辑门数量)。
  • 推导密集层(MLP)、1D-CNN、Vanilla RNN、LSTM、GRU 和 ESN 网络中每层的 RM、BOP 和 NABS 公式。
  • 引入 NABS,以量化方案(均匀、PoT、APoT、CANONICAL SD 等)来量化乘数简化的程度。
  • 提供一个将复杂度计算为层超参数和比特宽度函数的框架,并结合 CLB/FPGA 估算讨论硬件影响。

实验结果

研究问题

  • RQ1如何在硬件相关的复杂度框架中评估信号处理用的不同神经网络层?
  • RQ2在异质量化下,常见 NN 层的具体 RM、BOP 和 NABS 表达式是什么?
  • RQ3量化类型如何影响输出的实际硬件成本在 DSP 实现中?
  • RQ4一个统一的度量集合是否可以作为实时 DSP 中软件到硬件复杂度估算的基线?

主要发现

  • 引入贯穿软件到硬件的四个复杂度指标,并将它们与层的超参数联系起来。
  • 为密集、CNN、RNN、LSTM、GRU 和 ESN 层提供明确的 RM、BOP 和 NABS 公式。
  • 展示量化方案如何通过改变有效加法器数(X_w)和累加器大小来影响 NABS 与整体复杂度。
  • 给出一个基线框架及用于在不同硬件假设下比较基于 NN 的 DSP 实现的公式表。

阅读本论文

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

在 Nubint 中阅读本论文

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