Lune

CVPR2024Top-tier venue

Enhancing Post-Training Quantization Calibration Through Contrastive Learning

Yuzhang Shang, Gaowen Liu, Ramana Rao Kompella, Yan Yan

Abstract

Post-training quantization (PTQ) converts a pre-trained full-precision (FP) model into a quantized model in a training-free manner. Determining suitable quantization parameters, such as scaling factors and zero points, is the primary strategy for mitigating the impact of quantization noise (calibration) and restoring the performance of the quantized models. However, the existing activation calibration methods have never considered information degradation between pre- (FP) and post-quantized activations. In this study, we introduce a well-defined distributional metric from information theory, mutual information, into PTQ calibration. We aim to calibrate the quantized activations by maximizing the mutual information between the pre- and post-quantized activations. To realize this goal, we establish a contrastive learning (CL) framework for the calibration, where the quantization parameters are optimized through a self-supervised proxy task. Specifically, by leveraging CL during the PTQ calibration, we can benefit from pulling the positive pairs of quantized and FP activations collected from the same input samples, while pushing negative pairs from different samples. Thanks to the ingeniously designed critic function, we avoid the unwanted but of tenencountered collision solution in CL, especially in calibration scenarios where the amount of calibration data is limited. Additionally, we provide a theoretical guarantee that minimizing our designed loss is equivalent to maximizing the desired mutual information. Consequently, the quantized activations retain more information, which ultimately enhances the performance of the quantized network. Experimental results show that our method can effectively serve as an add-on module to existing SoTA PTQ methods.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

6 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • SHARP-Q: Spectral Hessian Alignment and Rectification for Post-training Quantization cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • SHARP-Q: Spectral Hessian Alignment and Rectification for Post-training Quantization cites Learned Step Size quantization
  • SHARP-Q: Spectral Hessian Alignment and Rectification for Post-training Quantization cites Up or Down? Adaptive Rounding for Post-Training Quantization
  • Rethinking Asymmetric Quantization: Hidden Symmetry in Vision Model Weights cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Rethinking Asymmetric Quantization: Hidden Symmetry in Vision Model Weights cites Learned Step Size quantization
  • Rethinking Asymmetric Quantization: Hidden Symmetry in Vision Model Weights cites Up or Down? Adaptive Rounding for Post-Training Quantization
  • QT-DoG: Quantization-Aware Training for Domain Generalization cites Learned Step Size quantization
  • FP=XINT: Representing Neural Networks via Low-Bit Series Basis Functions cites Up or Down? Adaptive Rounding for Post-Training Quantization
  • Up or Down? Adaptive Rounding for Post-Training Quantization cites Learned Step Size quantization
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers6

  1. Preserving LLM Capabilities through Calibration Data Curation: From Analysis to OptimizationBowei He, Lihao Yin, Hui-Ling Zhen, Shuqi Liu et al.NeurIPS 2025 · 9 citations
  2. FP=XINT: Representing Neural Networks via Low-Bit Series Basis FunctionsBoyang Zhang, Daning Cheng, Yunquan Zhang, Jiake Tian et al.AAAI 2026 · 4 citations
  3. SHARP-Q: Spectral Hessian Alignment and Rectification for Post-training QuantizationMenghao Lv, Huiqiong Wang, Li Sun, Mingli SongICML 2026
  4. Rethinking Asymmetric Quantization: Hidden Symmetry in Vision Model WeightsMasafumi Mori, Shinya Gongyo, Mitsuru AmbaiCVPR 2026
  5. QT-DoG: Quantization-Aware Training for Domain GeneralizationSaqib Javed, Hieu Le, Mathieu SalzmannICML 2025

Builds on16

  1. An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn et al.ICLR 2021 · 21,477 citations
  2. Contrastive Representation DistillationYonglong Tian, Dilip Krishnan, Phillip IsolaICLR 2020 · 1,305 citations
  3. Learned Step Size quantizationSteven K. Esser, Jeffrey L. McKinstry, Deepika Bablani, Rathinakumar Appuswamy et al.ICLR 2020 · 1,037 citations
  4. Up or Down? Adaptive Rounding for Post-Training QuantizationMarkus Nagel, Rana Ali Amjad, Mart van Baalen, Christos Louizos et al.ICML 2020 · 816 citations
  5. Q-BERT: Hessian Based Ultra Low Precision Quantization of BERTSheng Shen, Zhen Dong, Jiayu Ye, Linjian Ma et al.AAAI 2020 · 656 citations

Related papers

  1. PD-Quant: Post-Training Quantization Based on Prediction Difference MetricJiawei Liu, Lin Niu, Zhihang Yuan, Dawei Yang et al.CVPR 2023
  2. Toward Accurate Post-Training Quantization for Image Super ResolutionZhijun Tu, Jie Hu, Hanting Chen, Yunhe WangCVPR 2023
  3. FAQ: Mitigating Quantization Error via Regenerating Calibration Data with Family-Aware QuantizationHaiyang Xiao, Weiqing Li, Jinyue Guo, Guochao Jiang et al.ACL Findings 2026
  4. QDrop: Randomly Dropping Quantization for Extremely Low-bit Post-Training QuantizationXiuying Wei, Ruihao Gong, Yuhang Li, Xianglong Liu et al.ICLR 2022 · 248 citations
  5. Beyond Uniformity: Sample and Frequency Meta Weighting for Post-Training Quantization of Diffusion ModelsVan Cuong Pham, Anh Hoang, Cuong Nguyen, Trung Le et al.ICLR 2026
Dusk over the sea between two cliffs drawn in fine vertical lines