[Paper Review] Dataflow-based Joint Quantization of Weights and Activations for Deep Neural Networks
This paper proposes a dataflow-aware, joint quantization method for weights and activations in deep neural networks using only bit-shift and rounding operations, minimizing information loss and hardware cost. It achieves state-of-the-art accuracy with 8-bit quantization and reduces energy consumption by ~9× and area by ~15× compared to baseline methods.
This paper addresses a challenging problem - how to reduce energy consumption without incurring performance drop when deploying deep neural networks (DNNs) at the inference stage. In order to alleviate the computation and storage burdens, we propose a novel dataflow-based joint quantization approach with the hypothesis that a fewer number of quantization operations would incur less information loss and thus improve the final performance. It first introduces a quantization scheme with efficient bit-shifting and rounding operations to represent network parameters and activations in low precision. Then it restructures the network architectures to form unified modules for optimization on the quantized model. Extensive experiments on ImageNet and KITTI validate the effectiveness of our model, demonstrating that state-of-the-art results for various tasks can be achieved by this quantized model. Besides, we designed and synthesized an RTL model to measure the hardware costs among various quantization methods. For each quantization operation, it reduces area cost by about 15 times and energy consumption by about 9 times, compared to a strong baseline.
Motivation & Objective
- Address the challenge of reducing energy consumption in edge-deployed DNNs without sacrificing accuracy.
- Overcome performance degradation and high hardware costs in existing low-precision quantization methods.
- Minimize information loss by reducing the number of quantization operations through dataflow-aware module reorganization.
- Design a hardware-friendly quantization scheme using only bit-shifting and rounding for efficient inference.
- Achieve high-accuracy quantized models without requiring time-consuming fine-tuning stages.
Proposed method
- Introduces a quantization function Q(r; Nr, n_bits) that maps floating-point values to low-precision integers using bit-shifting and rounding, with Nr as the only adjustable parameter.
- Applies separate fractional bit-widths (Nr) per layer for weights, bias, input, and output activations to preserve dynamic range.
- Restructures the network into unified modules based on dataflow to reduce the number of quantization operations.
- Employs a joint reconstruction error loss function on these modules to optimize quantized parameters end-to-end.
- Merges batch normalization layers into convolution operations to further reduce computation and memory access.
- Uses integer-only arithmetic for inference, enabling efficient hardware mapping with minimal computational overhead.
Experimental results
Research questions
- RQ1Can reducing the number of quantization operations improve accuracy in low-precision DNNs?
- RQ2How does a bit-shift-based quantization scheme compare to multiplication-based scaling in terms of hardware efficiency?
- RQ3Can joint optimization of weights and activations via dataflow-aware module design eliminate the need for fine-tuning?
- RQ4What is the hardware cost (area and energy) of different quantization operations when implemented in RTL?
- RQ5How does the proposed method perform on standard benchmarks like ImageNet and KITTI compared to state-of-the-art quantization techniques?
Key findings
- The proposed method achieves state-of-the-art accuracy on ImageNet with ResNet and on KITTI with Faster R-CNN using 8-bit quantization.
- The 8-bit quantized model reduces computation and memory access by ~4× compared to full-precision floating-point models.
- Bit-shifting operations reduce energy consumption by ~9× and area by ~15× compared to a strong baseline using scaling factors.
- The codebook-based method incurs the highest hardware cost, consuming ~11.5× more area and ~14.8× more power than bit-shifting.
- The joint reconstruction error loss enables accurate quantized model training without requiring a separate fine-tuning phase.
- MSE increases in deeper residual blocks, particularly in residual addition units, due to accumulated quantization effects.
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.