[Paper Review] Power-of-Two Quantization for Low Bitwidth and Hardware Compliant Neural Networks
This paper proposes Power-of-Two (PoT) quantization for low-bitwidth, hardware-compliant neural networks using a novel Quantization Aware Training (QAT) algorithm. By representing weights as powers of two, the method replaces computationally expensive multiplications with efficient bit shifts, achieving state-of-the-art accuracy comparable to full-precision models while reducing energy consumption by up to 6x and area by 1.7x in ASIC designs compared to 8-bit uniform quantization.
Deploying Deep Neural Networks in low-power embedded devices for real time-constrained applications requires optimization of memory and computational complexity of the networks, usually by quantizing the weights. Most of the existing works employ linear quantization which causes considerable degradation in accuracy for weight bit widths lower than 8. Since the distribution of weights is usually non-uniform (with most weights concentrated around zero), other methods, such as logarithmic quantization, are more suitable as they are able to preserve the shape of the weight distribution more precise. Moreover, using base-2 logarithmic representation allows optimizing the multiplication by replacing it with bit shifting. In this paper, we explore non-linear quantization techniques for exploiting lower bit precision and identify favorable hardware implementation options. We developed the Quantization Aware Training (QAT) algorithm that allowed training of low bit width Power-of-Two (PoT) networks and achieved accuracies on par with state-of-the-art floating point models for different tasks. We explored PoT weight encoding techniques and investigated hardware designs of MAC units for three different quantization schemes - uniform, PoT and Additive-PoT (APoT) - to show the increased efficiency when using the proposed approach. Eventually, the experiments showed that for low bit width precision, non-uniform quantization performs better than uniform, and at the same time, PoT quantization vastly reduces the computational complexity of the neural network.
Motivation & Objective
- To address the accuracy degradation in low-bitwidth neural networks caused by uniform quantization, especially below 8 bits.
- To explore non-uniform quantization techniques—specifically Power-of-Two (PoT) and Additive-PoT (APoT)—that better preserve the non-uniform distribution of network weights.
- To design and evaluate hardware-efficient MAC units using PoT quantization for FPGA and ASIC platforms.
- To demonstrate that PoT quantization enables significant reductions in memory, power, and area usage without sacrificing model accuracy.
Proposed method
- Proposes a STE-based Quantization Aware Training (QAT) algorithm for training deep neural networks with Power-of-Two (PoT) weights.
- Uses dynamic Fixed-Point Scaling (FSR) to improve accuracy, especially for ImageNet models.
- Designs multiplier-less MAC units that replace multiplication with bit-shifting operations for PoT and APoT weights.
- Synthesizes and compares three MAC unit designs—uniform, PoT, and APoT—on FPGA and ASIC platforms using 5nm technology.
- Employs post-synthesis analysis to evaluate area, power, and energy efficiency across different quantization schemes.
- Compares resource usage (LUTs, FFs, DSPs) and power consumption between 8x8 uniform, 4x8 uniform, PoT, and APoT MAC units.
Experimental results
Research questions
- RQ1Can Power-of-Two (PoT) quantization achieve state-of-the-art accuracy in low-bitwidth neural networks while enabling hardware-efficient inference?
- RQ2How does PoT quantization compare to uniform and APoT quantization in terms of hardware resource usage and energy efficiency on FPGA and ASIC platforms?
- RQ3To what extent does the proposed QAT algorithm preserve model accuracy when quantizing all layers to 4-bit or lower precision?
- RQ4Can replacing multiplication with bit shifts in MAC units significantly reduce power and area consumption in DNN accelerators?
- RQ5Does PoT quantization reduce memory bandwidth and leakage power by decreasing weight bitwidth and DRAM transactions?
Key findings
- Using 4-bit PoT quantization, the proposed MAC unit reduces energy consumption by 6x and area by 1.7x compared to an 8x8 uniform MAC unit in 5nm ASIC synthesis.
- The PoT MAC unit consumes 2x less power than a 4x8 uniform MAC unit, demonstrating significant energy savings from replacing multiplication with bit shifts.
- The PoT design uses 39 LUTs and 25 FFs on FPGA, outperforming the 4x8 uniform MAC (46 LUTs, 27 FFs) in area efficiency.
- The APoT MAC unit uses 55 LUTs and 49 FFs, requiring roughly twice the resources of the PoT unit, despite offering higher accuracy.
- The proposed QAT algorithm with dynamic FSR achieves higher accuracy than DeepShift on ImageNet, surpassing prior work in 4-bit PoT networks.
- Memory bandwidth and leakage power are reduced due to lower bitwidth storage, accelerating inference and improving energy efficiency.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.