[Paper Review] Quantization-Guided Training for Compact TinyML Models
This paper proposes Quantization-Guided Training (QGT), a method that uses custom regularization in the loss function to guide DNN weights toward quantization bins, reducing quantization error and enabling extreme model compression. QGT achieves 17.7× size reduction to 81KB for a person detection model at 2-bit precision with only a 3% accuracy drop compared to FP32.
We propose a Quantization Guided Training (QGT) method to guide DNN training towards optimized low-bit-precision targets and reach extreme compression levels below 8-bit precision. Unlike standard quantization-aware training (QAT) approaches, QGT uses customized regularization to encourage weight values towards a distribution that maximizes accuracy while reducing quantization errors. One of the main benefits of this approach is the ability to identify compression bottlenecks. We validate QGT using state-of-the-art model architectures on vision datasets. We also demonstrate the effectiveness of QGT with an 81KB tiny model for person detection down to 2-bit precision (representing 17.7x size reduction), while maintaining an accuracy drop of only 3% compared to a floating-point baseline.
Motivation & Objective
- Address the challenge of achieving extreme model compression below 8-bit precision while maintaining high accuracy for edge deployment.
- Overcome limitations of standard Quantization-Aware Training (QAT) by directly guiding weight distributions toward quantization bins.
- Identify and expose quantization bottlenecks in model layers through transparent quantization error monitoring.
- Enable seamless integration into existing training pipelines without invasive framework modifications.
- Demonstrate feasibility of ultra-compact, low-bit-precision models (e.g., 2-bit) for real-world TinyML applications like person detection.
Proposed method
- Introduce a regularization term in the loss function that penalizes weight values far from quantization bins, encouraging clustering around optimal quantized levels.
- Use dequantized weights as the target for regularization, avoiding the need to learn scale and zero-point parameters separately.
- Apply non-linear quantization schemes compatible with custom hardware through flexible regularization design.
- Integrate the regularization term as a soft constraint during backpropagation, dynamically adjusting based on bit-precision and model depth.
- Combine QGT with existing compression techniques such as pruning and mixed-precision quantization for further size reduction.
- Tune the regularization strength hyperparameter λ to control the trade-off between convergence speed and quantization accuracy.
Experimental results
Research questions
- RQ1Can regularization-based training guide DNN weights toward quantization bins more effectively than standard QAT for low-bit precision?
- RQ2How does QGT compare to Post-Training Quantization (PTQ) and QAT in terms of accuracy and model size at 2-bit precision?
- RQ3Can QGT identify and expose layers that are inherently resistant to quantization, serving as quantization bottlenecks?
- RQ4To what extent can QGT reduce training time and improve convergence compared to standard training regimes?
- RQ5Can QGT enable deployment of sub-100KB models at 2-bit precision with acceptable accuracy for real-world TinyML applications?
Key findings
- QGT achieves 17.7× model size reduction (81KB) for a person detection model at 2-bit precision, compared to a 1440KB FP32 baseline.
- The QGT-trained 2-bit model maintains 87.3% accuracy on MobileNet V2, a 3.1% drop from the 90.4% accuracy of the FP32 model.
- Compared to PTQ, QGT improves accuracy by 18.9% at 2-bit precision on MobileNet V2, reducing the accuracy gap from 22.0% to 3.1%.
- QGT enables a 3× compression advantage over prior 8-bit person detection models (e.g., 250KB in Chowdhery et al., 2019), achieving 81KB at 2-bit.
- On an ARM A72 processor, QGT-enabled 8-bit inference achieves ~5× latency improvement over FP32, with 246 FPS for MobileNet V1.
- QGT's regularization mechanism acts as a dynamic learning rate, allowing control over convergence speed and solution space exploration.
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.