Skip to main content
QUICK REVIEW

[Paper 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 Science42 citations
TL;DR

This paper presents a unified framework to evaluate and compare the computational complexity of neural network layers in signal processing, introducing four software-to-hardware metrics, including a new NABS metric that accounts for quantization.

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.

Motivation & Objective

  • Provide a systematic approach to assess and compare neural network layer complexity in DSP contexts.
  • Link and explain four complexity metrics across software and hardware perspectives.
  • Show how to compute these metrics for feed-forward and recurrent layers under heterogeneous quantization.
  • Introduce NABS to capture the impact of quantization type on multiplier/accumulator cost.

Proposed method

  • Describe four complexity metrics from software to hardware levels: RM (real multiplications), BOP (bit-operations), NABS (number of additions and bit shifts), and NLG (number of logic gates).
  • Derive per-layer RM, BOP, and NABS formulas for dense (MLP), 1D-CNN, Vanilla RNN, LSTM, GRU, and ESN networks.
  • Introduce NABS to quantify multiplier simplifications due to quantization schemes (uniform, PoT, APoT, CANONICAL SD, etc.).
  • Provide a framework to compute complexity as a function of layer hyper-parameters and bitwidths, and discuss hardware implications using CLB/FPGA estimates.

Experimental results

Research questions

  • RQ1How can different neural network layers used in signal processing be evaluated in a hardware-relevant complexity framework?
  • RQ2What are the concrete RM, BOP, and NABS expressions for common NN layers under heterogeneous quantization?
  • RQ3How does quantization type affect the practical hardware cost of neural network implementations in DSP?
  • RQ4Can a unified metric set serve as a baseline for software-to-hardware complexity estimation in real-time DSP?

Key findings

  • Introduces four complexity metrics spanning software to hardware, linking them to layer hyper-parameters.
  • Provides explicit RM, BOP, and NABS formulas for dense, CNN, RNN, LSTM, GRU, and ESN layers.
  • Shows how quantization schemes affect NABS and overall complexity by altering the effective number of adders (X_w) and accumulator sizes.
  • Presents a baseline framework and a table of formulas for comparing NN-based DSP implementations under different hardware assumptions.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.