Abstract
Training deep neural networks with low-bitwidth weights and activations is a critical goal for deploying AI on edge devices, yet it typically results in significant accuracy degradation. This paper presents three novel training strategies—two-stage optimization, progressive bit-width reduction, and joint full-precision guidance—designed to overcome the optimization challenges of low-precision networks. Experimental results demonstrate that these methods allow 4-bit models to match or even exceed the performance of their full-precision counterparts on major benchmarks like ImageNet.
Introduction
Modern Convolutional Neural Networks (CNNs) are computationally intensive, often requiring millions of parameters and billions of operations. To facilitate deployment on mobile hardware and specialized AI accelerators, quantization—representing weights and activations with low bit-widths (e.g., 2-bit or 4-bit)—is necessary. However, low-precision training is notoriously difficult. The non-differentiable nature of quantization functions necessitates approximations like the Straight-Through Estimator (STE), which introduces noise and can lead to poor local minima. While weight-only quantization is relatively stable, quantizing both weights and activations often leads to a substantial drop in accuracy.
Proposed Methodology
The authors propose three synergistic strategies to improve the optimization of low-bitwidth models:
1. Two-Stage Optimization (TS)
Rather than quantizing the entire network simultaneously, the authors decouple the process. In the first stage, only the weights are quantized while activations remain at full precision. Once this model converges, it serves as an optimized initialization for the second stage, where activations are also quantized. This phased approach provides a more stable starting point for the final low-precision model.
2. Progressive Quantization (PQ)
Drawing from curriculum learning, Progressive Quantization gradually reduces bit-width throughout the training process (e.g., transitioning from 32-bit to 16-bit, then 4-bit, and finally 2-bit). Each intermediate stage acts as a "teacher" for the subsequent, more constrained stage, smoothing the transition to extremely low precision.
3. Guided Training with a Full-Precision Network
This method involves training a low-precision "student" model in parallel with a full-precision "teacher" model of the same architecture. A "guidance loss" is introduced to encourage the student's feature maps to align with those of the teacher.
Unlike standard knowledge distillation, which uses a static pre-trained teacher, this approach employs simultaneous training. This allows both models to co-evolve, with the teacher adapting its representations to be more easily mimicked by the constrained student.
Experimental Results
The proposed methods were evaluated on CIFAR-100 and the ImageNet (ILSVRC2012) dataset using standard architectures like AlexNet and ResNet-50.
Performance on ImageNet
The results for 4-bit models are particularly noteworthy:
- ResNet-50: The 4-bit model achieved 75.7% Top-1 accuracy, slightly surpassing the 32-bit full-precision baseline of 75.6%.
- AlexNet: The 4-bit model reached 58.0% Top-1 accuracy, improving upon the 57.2% full-precision reference.
While 2-bit models still exhibit an accuracy gap compared to full precision, the combined "PQ+TS+Guided" approach significantly outperformed existing baselines, achieving 51.6% accuracy on AlexNet compared to the 48.8% baseline.
Key Insights
- Initialization is Critical: The primary challenge in quantization is not necessarily model capacity, but the optimization landscape. A well-chosen starting point is essential for avoiding poor local minima.
- The 4-Bit Sweet Spot: Empirical evidence suggests that 4-bit precision offers sufficient capacity to maintain full-precision performance levels when effective training strategies are employed.
- Co-evolution Benefits: Training the teacher and student models together allows the teacher to find representations that are "quantization-friendly," leading to better student performance than traditional distillation from a fixed teacher.
Limitations and Future Work
Despite these advancements, a performance gap remains when moving from 4-bit to 2-bit precision. Additionally, while these models are theoretically efficient, realizing actual speedups requires specific hardware support for low-bitwidth operations. Future research may explore mixed-precision strategies, as the authors noted that the first and last layers of CNNs are particularly sensitive to quantization and may benefit from higher precision.
Summary updated