paper-with-me

Papers

Enhancing Post-training Quantization Calibration through Contrastive Learning

2024-01-01 · CVPR 2024 1 · Yuzhang Shang, Gaowen Liu, Ramana Rao Kompella, Yan Yan

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 weight rounding 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 PTQ calibration where the quantization parameters are optimized through a self-supervised proxy task. Specifically by leveraging CL during the PTQ process 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 often-encountered 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.

📄 PDF Abstract BibTeX

Code (0)

등록된 구현이 없습니다.

Tasks

Contrastive LearningQuantization

Methods 이 논문이 사용한 방법론

Contrastive Learning 설명 없음

Similar Papers 제목 키워드 기반

EAQuant: Enhancing Post-Training Quantization for MoE Models via Expert-Aware Optimization

2025-06-16 · Zhongqian Fu, Ning Ding, Kai Han, Xianzhi Yu 외

Mixture-of-Experts (MoE) models have emerged as a cornerstone of large-scale deep learning by efficiently distributing computation and enhancing performance. However, their unique architecture-characterized by sparse exp…

Mixture-of-ExpertsModel CompressionQuantization

Enhancing Post-Training Quantization via Future Activation Awareness

2026-01-28 · Zheqi Lv, Zhenxuan Fan, Qi Tian, Wenqiao Zhang 외 arxiv

Post-training quantization (PTQ) is a widely used method to compress large language models (LLMs) without fine-tuning. It typically sets quantization hyperparameters (e.g., scaling factors) based on current-layer activat…

Enhancing Computation Efficiency in Large Language Models through Weight and Activation Quantization

2023-11-09 · Janghwan Lee, Minsoo Kim, SeungCheol Baek, Seok Joong Hwang 외

Large Language Models (LLMs) are proficient in natural language processing tasks, but their deployment is often restricted by extensive parameter sizes and computational demands. This paper focuses on post-training quant…

Computational EfficiencyQuantization

MetaAug: Meta-Data Augmentation for Post-Training Quantization

2024-07-20 · Cuong Pham, Hoang Anh Dung, Cuong C. Nguyen, Trung Le 외

Post-Training Quantization (PTQ) has received significant attention because it requires only a small set of calibration data to quantize a full-precision model, which is more practical in real-world applications in which…

Data AugmentationMeta-LearningQuantization

On the Impact of Calibration Data in Post-training Quantization and Pruning

2023-11-16 · Miles Williams, Nikolaos Aletras

Quantization and pruning form the foundation of compression for neural networks, enabling efficient inference for large language models (LLMs). Recently, various quantization and pruning techniques have demonstrated rema…

Model CompressionQuantization