NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Push Quantization-Aware Training Toward Full Precision Performances via Consistency Regularization

Junbiao Pang, Tianyang Cai, Baochang Zhang, Jiaqi Wu, Ye TaoarXiv 2024 · DOI

Introduction

Deep neural networks (DNNs) are increasingly deployed on edge devices, necessitating efficient compression techniques like quantization. While Quantization-Aware Training (QAT) has emerged as a standard for recovering accuracy in low-bit models, a significant "generalization gap" remains between quantized and full-precision (FP32) models. This paper identifies two primary culprits: intrinsic weight instability during training due to discrete quantization steps and the tendency of quantized models to converge to "sharp" local minima in the loss landscape.

The Consistency Regularization Framework

The authors propose a novel QAT framework centered on In-Distribution Consistency Regularization (CR). Unlike traditional methods that rely on static Knowledge Distillation (KD) from a pre-trained teacher, this approach utilizes a "Temporal Teacher"—an Exponential Moving Average (EMA) of the student model's weights. This EMA acts as a stabilizer, smoothing out the weight oscillations common in low-bit training.

The proposed Consistency Regularization (CR) framework compared to standard QAT and Knowledge Distillation (KD) approaches.

The training process involves dual-view augmentation, where each input image is transformed into two distinct views. The model minimizes the Kullback-Leibler (KL) divergence between the student's prediction on one view and the teacher's prediction on the other. This consistency loss is dynamically scaled throughout training to prioritize task learning initially and landscape flattening later.

Theoretical Motivation: Flattening the Loss Landscape

Theoretically, minimizing consistency loss is shown to be equivalent to minimizing the sharpness of the loss landscape. Sharp minima are associated with poor generalization, as small perturbations in weights or inputs can lead to large errors. By enforcing consistency across augmented views, the CR method effectively "flattens" the landscape. This is empirically supported by the observation that CR-trained models exhibit much smaller maximum Hessian eigenvalues compared to standard QAT models.

Experimental Results and Analysis

The method was rigorously tested on CIFAR-10, CIFAR-100, and ImageNet, often setting new state-of-the-art benchmarks. Notably, on CIFAR-10 with ResNet18, a 4-bit quantized model achieved 90.48% accuracy, surpassing the 88.72% accuracy of the full-precision baseline. On the massive ImageNet dataset, a 4-bit ResNet50 reached 76.93% accuracy, nearly matching the 77.0% FP32 performance.

Robustness and Variance Reduction

A key insight is that quantization often acts as a variance amplifier for input noise. The CR method serves as a noise suppressor by forcing the model to ignore minor perturbations.

Comparison of prediction output variance across FP32, LSQ (standard QAT), and the proposed CR method, demonstrating improved robustness.

As shown in the figure above, the variance of prediction outputs under Gaussian noise is significantly lower for the CR-trained model compared to standard LSQ-based QAT, even dropping below the variance of the FP32 baseline in some instances. This confirms that CR leads to more robust feature representations.

Conclusion

By integrating consistency regularization into the QAT pipeline, this work demonstrates that quantized models can achieve, and sometimes exceed, the performance of their full-precision counterparts. While extremely lightweight models like MobileNet still present challenges due to their high Lipschitz constants, the proposed framework provides a powerful tool for closing the generalization gap in model compression. Future work will explore extending this regularization to other tasks like object detection and explicitly managing layer-wise stability.

Summary updated

BibTeX
@misc{pang2024push,
  author = {Junbiao Pang and Tianyang Cai and Baochang Zhang and Jiaqi Wu and Ye Tao},
  title = {{Push Quantization-Aware Training Toward Full Precision Performances via Consistency Regularization}},
  year = {2024},
  eprint = {2402.13497},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2402.13497},
}
Figure