Skip to main content
QUICK REVIEW

[Paper Review] Term Revealing: Furthering Quantization at Run Time on Quantized DNNs

H. T. Kung, Bradley McDanel|arXiv (Cornell University)|Jul 13, 2020
Advanced Neural Network ApplicationsComputer Science46 references7 citations
TL;DR

This paper proposes Term Revealing (TR), a run-time quantization technique that further reduces computation in already quantized DNNs by dynamically selecting only the largest power-of-two terms from grouped weights and activations. By using a group-based selection with signed digit representation via HESE encoding, TR achieves 3–10× lower inference computation than conventional quantization while preserving model accuracy, demonstrated via FPGA implementations showing up to 7.8× lower latency and 4.3× higher energy efficiency.

ABSTRACT

We present a novel technique, called Term Revealing (TR), for furthering quantization at run time for improved performance of Deep Neural Networks (DNNs) already quantized with conventional quantization methods. TR operates on power-of-two terms in binary expressions of values. In computing a dot-product computation, TR dynamically selects a fixed number of largest terms to use from the values of the two vectors in the dot product. By exploiting normal-like weight and data distributions typically present in DNNs, TR has a minimal impact on DNN model performance (i.e., accuracy or perplexity). We use TR to facilitate tightly synchronized processor arrays, such as systolic arrays, for efficient parallel processing. We show an FPGA implementation that can use a small number of control bits to switch between conventional quantization and TR-enabled quantization with a negligible delay. To enhance TR efficiency further, we use a signed digit representation (SDR), as opposed to classic binary encoding with only nonnegative power-of-two terms. To perform conversion from binary to SDR, we develop an efficient encoding method called HESE (Hybrid Encoding for Signed Expressions) that can be performed in one pass looking at only two bits at a time. We evaluate TR with HESE encoded values on an MLP for MNIST, multiple CNNs for ImageNet, and an LSTM for Wikitext-2, and show significant reductions in inference computations (between 3-10x) compared to conventional quantization for the same level of model performance.

Motivation & Objective

  • To enable further computation reduction in DNNs that are already quantized using conventional methods, without sacrificing model accuracy.
  • To address the limitation of conventional quantization, which cannot be further reduced without retraining or significant accuracy loss.
  • To design a reconfigurable hardware system that supports both conventional quantization and run-time TR quantization with minimal control overhead.
  • To develop an efficient signed digit representation (SDR) encoding method that minimizes the number of terms in value representations for improved computation savings.

Proposed method

  • Term Revealing (TR) operates on power-of-two terms in binary or signed digit representations of quantized weights and activations, selecting only the largest terms within a group of values.
  • TR uses a group-based approach where a fixed number of top terms (group budget $k$) are selected per group of $g$ values to compute dot products, reducing the number of term pair multiplications.
  • The HESE (Hybrid Encoding for Signed Expressions) method converts standard binary representations into minimum-length signed digit representations (SDRs) in a single pass, examining only two bits at a time.
  • A tMAC (term MAC) hardware design is proposed to implement TR, using a systolic array architecture with bit-serial coefficient accumulation for low area and high regularity.
  • The FPGA system supports runtime reconfiguration between conventional quantization and TR-enabled quantization using only a few control bits, enabling dynamic switching with negligible delay.
  • The method leverages the normal-like distribution of DNN weights and activations, ensuring minimal accuracy loss even with aggressive term pruning.

Experimental results

Research questions

  • RQ1Can further quantization be performed at run time on already quantized DNNs without degrading model performance?
  • RQ2How can group-based term selection improve computation efficiency in DNN inference while maintaining accuracy?
  • RQ3What is the impact of using signed digit representations (SDRs) with minimal term count on inference computation and hardware efficiency?
  • RQ4To what extent can TR reduce computation cost (e.g., term pair multiplications) compared to conventional quantization across diverse DNN architectures?
  • RQ5Can a single FPGA hardware design efficiently support both conventional quantization and TR-enabled quantization with minimal reconfiguration overhead?

Key findings

  • TR reduces inference computation by 3–10× compared to conventional quantization for the same model accuracy across MLPs, CNNs, and LSTMs.
  • The FPGA implementation achieves 7.8× lower average processing latency and 4.3× higher energy efficiency compared to conventional quantization (QT) on the same hardware.
  • For ResNet-18 on ImageNet, the TR system achieves 69.48% top-1 accuracy, 25.22 frames/J energy efficiency, and 7.21ms latency—outperforming other FPGA-based accelerators in accuracy and efficiency.
  • Using a group size $g=8$ and group budget $k$ tuned per model (e.g., $k=20$ for LSTM, $k=8$ for VGG-16), TR maintains model performance within 0.15% accuracy of QT settings.
  • HESE encoding enables minimum-length SDRs with one-pass, two-bit lookahead conversion, reducing the number of terms in value representations and thus lowering computation cost.
  • The reconfigurable FPGA system requires only a small number of control bits to switch between conventional quantization and TR-enabled quantization, enabling efficient runtime adaptation.

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.