[Paper Review] Quantizing Convolutional Neural Networks for Low-Power High-Throughput Inference Engines
This paper proposes a dynamic floating-point quantization scheme for convolutional neural networks that enables high-accuracy, low-power inference using 8-bit or fewer operations. By calibrating against a single inference batch without retraining, the method achieves end-to-end post-quantization accuracy comparable to full-precision models, with 4x or greater reductions in hardware and energy costs on FPGAs.
Deep learning as a means to inferencing has proliferated thanks to its versatility and ability to approach or exceed human-level accuracy. These computational models have seemingly insatiable appetites for computational resources not only while training, but also when deployed at scales ranging from data centers all the way down to embedded devices. As such, increasing consideration is being made to maximize the computational efficiency given limited hardware and energy resources and, as a result, inferencing with reduced precision has emerged as a viable alternative to the IEEE 754 Standard for Floating-Point Arithmetic. We propose a quantization scheme that allows inferencing to be carried out using arithmetic that is fundamentally more efficient when compared to even half-precision floating-point. Our quantization procedure is significant in that we determine our quantization scheme parameters by calibrating against its reference floating-point model using a single inference batch rather than (re)training and achieve end-to-end post quantization accuracies comparable to the reference model.
Motivation & Objective
- Address the growing computational and energy demands of deploying deep learning models on resource-constrained devices.
- Reduce hardware and energy costs in CNN inference by replacing 32-bit operations with reduced-precision alternatives.
- Develop a quantization method that maintains high inference accuracy without retraining, using only a single calibration batch.
- Enable efficient FPGA-based deployment by allowing custom circuit configurations for optimal n-bit, p-bit quantization parameters.
- Demonstrate that dynamic floating-point quantization outperforms fixed-point and standard reduced-precision floating-point in accuracy and efficiency.
Proposed method
- Introduces a dynamic floating-point format defined as α × 2^exponent × signed integer, where α is a real value and the significand is represented with n bits and p significand bits.
- Uses sign-magnitude or two’s complement representation for the significand, with support for subnormal values via a special exponent encoding.
- Employs a calibration-based quantization procedure using a single inference batch to determine optimal scale and exponent parameters.
- Supports flexible bitwidth allocation between exponent and significand bits, enabling trade-offs between range and precision.
- Enables FPGA reconfiguration for custom n and p configurations to match network-specific optimal quantization parameters.
- Avoids retraining by using post-quantization calibration with minimal data (as few as 8 images), enabling fast, offline network compression.
Experimental results
Research questions
- RQ1Can a quantization scheme achieve near-precision inference accuracy without retraining, using only a single calibration batch?
- RQ2How does dynamic floating-point quantization compare to fixed-point and standard reduced-precision floating-point in terms of accuracy and efficiency?
- RQ3What is the optimal allocation of bits between exponent and significand for different CNN architectures like GoogLeNet, ResNet, and MobileNet?
- RQ4To what extent can bitwidth be reduced (e.g., to 5 or 6 bits) without significant accuracy loss in inference?
- RQ5Can subnormal values and Infs/NaNs be safely excluded from the quantization scheme without degrading performance?
Key findings
- The method achieves 100% normalized top-1 accuracy for GoogLeNet using fp8 and fp6 quantization with p=4 or p=3, significantly outperforming prior work that reported ~60% for fp8.
- For fp8, the best accuracy is achieved with p=4 or p=3, indicating that precision about zero is critical for performance.
- Weights in GoogLeNet and ResNet can be reduced to 5 bits with minimal accuracy loss, while MobileNet requires at least 7 bits to maintain performance.
- The number of exponent bits has diminishing returns beyond 3 bits; 4 exponent bits provide no significant improvement over 3, contradicting the belief that truncated fp32 is better than fp16.
- The dynamic floating-point scheme outperforms dynamic fixed-point analogues due to greater range and improved precision around zero.
- The approach enables 4x or greater reductions in energy and hardware cost by replacing 32-bit operations with 8-bit or fewer operations, even with minimal calibration data (as few as 8 images).
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.