Abstract
Quantization has been proven to be a vital method for improving the inference efficiency of deep neural networks (DNNs). However, it is still challenging to strike a good balance between accuracy and efficiency while quantizing DNN weights or activation values from high-precision formats to their quantized counterparts. We propose a new method called elastic significant bit quantization (ESB) that controls the number of significant bits of quantized values to obtain better inference accuracy with fewer resources. We design a unified mathematical formula to constrain the quantized values of the ESB with a flexible number of significant bits. We also introduce a distribution difference aligner (DDA) to quantitatively align the distributions between the full-precision weight or activation values and quantized values. Consequently, ESB is suitable for various bell-shaped distributions of weights and activation of DNNs, thus maintaining a high inference accuracy. Benefitting from fewer significant bits of quantized values, ESB can reduce the multiplication complexity. We implement ESB as an accelerator and quantitatively evaluate its efficiency on FPGAs. Extensive experimental results illustrate that ESB quantization consistently outperforms state-of-the-art methods and achieves average accuracy improvements of 4.78%, 1.92%, and 3.56% over AlexNet, ResNet18, and MobileNetV2, respectively. Furthermore, ESB as an accelerator can achieve 10.95 GOPS peak performance of 1k LUTs without DSPs on the Xilinx ZCU102 FPGA platform. Compared with CPU, GPU, and state-of-the-art accelerators on FPGAs, the ESB accelerator can improve the energy efficiency by up to 65x, 11x, and 26x, respectively.
Introduction
Deep Neural Networks (DNNs) are notoriously resource-hungry, making them difficult to deploy on edge devices with limited power and memory. Quantization—the process of converting high-precision (32-bit) weights and activations into low-precision formats (like 4-bit or 8-bit)—is a standard solution to this problem. However, existing methods often struggle with a fundamental trade-off. Fixed-point quantization is hardware-efficient but assumes a uniform distribution, which fails to match the "bell curve" (Gaussian) distribution typical of DNN weights. Conversely, Power-of-Two (PoT) quantization fits non-uniform distributions but is often too sparse, leading to significant accuracy loss.
The Elastic Significant Bit (ESB) quantization method addresses this by controlling the number of "significant bits" in quantized values. This allows the quantization grid to be elastic, providing high resolution where data is dense (near the mean) and lower resolution where data is sparse, without introducing massive computational overhead.
The ESB Framework
The ESB framework is built upon three core components: a unified mathematical formula, a distribution difference aligner (DDA), and a custom hardware-friendly format.
The unified mathematical formula describes various quantization schemes (Fixed-point, PoT, and Ternary) by adjusting a parameter $k$, representing the number of significant bits. This parameter acts as a dial: at $k=0$, the system mimics a PoT distribution; at $k=b-2$, it produces a linear fixed-point distribution. ESB finds the "sweet spot" in between that best fits the specific layer's data.
To optimize this fit without expensive retraining, the Distribution Difference Aligner (DDA) quantitatively measures and minimizes the gap between the original full-precision distribution and the proposed quantized distribution. This offline optimization allows researchers to find the best quantization strategy mathematically before deployment.
Hardware Implementation and Efficiency
To translate these theoretical gains into hardware efficiency, the authors designed a custom float format (Sign, Exponent, Fraction) for FPGAs. A key innovation is the "cheap projection" operator, which uses bit-shifting and rounding to complete quantization in a single clock cycle, avoiding expensive multipliers or large look-up tables.
Because ESB values are represented as shifted fractions, complex multiplication is reduced to a few shift-accumulate operations. The hardware complexity scales linearly with the number of significant bits ($k$), rather than quadratically as in standard multipliers.
Experimental Results
The researchers evaluated ESB across standard benchmarks including MNIST (LeNet5), CIFAR-10 (VGG), and ImageNet (AlexNet, ResNet18, and MobileNetV2).
Accuracy Improvements
ESB consistently outperformed 15 other state-of-the-art quantization methods. On the challenging ImageNet dataset, it achieved average accuracy improvements of:
- 4.78% for AlexNet
- 1.92% for ResNet18
- 3.56% for MobileNetV2
Hardware Performance
Implemented on a Xilinx ZCU102 FPGA, the ESB accelerator achieved a peak performance of 10.95 GOPS per 1,000 Look-Up Tables (LUTs) without utilizing dedicated DSP slices. In terms of energy efficiency, ESB demonstrated significant gains over general-purpose hardware and existing FPGA accelerators:
- 65× better than CPUs (Xeon E5-2678 v3)
- 11× better than GPUs (RTX 2080 Ti)
- 26× better than other state-of-the-art FPGA-based accelerators.
Conclusion
ESB quantization offers a robust solution for deploying DNNs on resource-constrained devices by balancing distribution fitting with hardware simplicity. While the current DDA assumes normal distributions and the implementation is FPGA-specific, the results demonstrate a powerful paradigm for efficient inference. Future work may explore ultra-low-power edge devices and more diverse network architectures beyond standard CNNs.
Summary updated