paper-with-me

홈 › Papers

PD-Quant: Post-Training Quantization based on Prediction Difference Metric

2022-12-14 · CVPR 2023 1 · Jiawei Liu, Lin Niu, Zhihang Yuan, Dawei Yang, Xinggang Wang, Wenyu Liu

Post-training quantization (PTQ) is a neural network compression technique that converts a full-precision model into a quantized model using lower-precision data types. Although it can help reduce the size and computational cost of deep neural networks, it can also introduce quantization noise and reduce prediction accuracy, especially in extremely low-bit settings. How to determine the appropriate quantization parameters (e.g., scaling factors and rounding of weights) is the main problem facing now. Existing methods attempt to determine these parameters by minimize the distance between features before and after quantization, but such an approach only considers local information and may not result in the most optimal quantization parameters. We analyze this issue and ropose PD-Quant, a method that addresses this limitation by considering global information. It determines the quantization parameters by using the information of differences between network prediction before and after quantization. In addition, PD-Quant can alleviate the overfitting problem in PTQ caused by the small number of calibration sets by adjusting the distribution of activations. Experiments show that PD-Quant leads to better quantization parameters and improves the prediction accuracy of quantized models, especially in low-bit settings. For example, PD-Quant pushes the accuracy of ResNet-18 up to 53.14% and RegNetX-600MF up to 40.67% in weight 2-bit activation 2-bit. The code is released at https://github.com/hustvl/PD-Quant.

📄 PDF Abstract BibTeX arXiv:2212.07048

Code (1)

hustvl/pd-quant 공식 구현 pytorch

Tasks

Neural Network CompressionQuantization

Similar Papers 제목 키워드 기반

Mind the Gap: A Practical Attack on GGUF Quantization

2025-05-24 · Kazuki Egashira, Robin Staab, Mark Vero, Jingxuan He 외

With the increasing size of frontier LLMs, post-training quantization has become the standard for memory-efficient deployment. Recent work has shown that basic rounding-based quantization schemes pose security risks, as …

Code GenerationQuantization

RoSTE: An Efficient Quantization-Aware Supervised Fine-Tuning Approach for Large Language Models

2025-02-13 · Quan Wei, Chung-Yiu Yau, Hoi-To Wai, Yang 외

Supervised fine-tuning is a standard method for adapting pre-trained large language models (LLMs) to downstream tasks. Quantization has been recently studied as a post-training technique for efficient LLM deployment. To …

Quantization

Weight Equalizing Shift Scaler-Coupled Post-training Quantization

2020-08-13 · Jihun Oh, SangJeong Lee, Meejeong Park, Pooni Walagaurav 외

Post-training, layer-wise quantization is preferable because it is free from retraining and is hardware-friendly. Nevertheless, accuracy degradation has occurred when a neural network model has a big difference of per-ou…

Quantization

PTQ-SL: Exploring the Sub-layerwise Post-training Quantization

2021-10-15 · Zhihang Yuan, Yiqi Chen, Chenhao Xue, Chenguang Zhang 외

Network quantization is a powerful technique to compress convolutional neural networks. The quantization granularity determines how to share the scaling factors in weights, which affects the performance of network quanti…

Quantization

Two Heads are Better Than One: Neural Networks Quantization with 2D Hilbert Curve-based Output Representation

2024-05-22 · Mykhailo Uss, Ruslan Yermolenko, Olena Kolodiazhna, Oleksii Shashko 외

Quantization is widely used to increase deep neural networks' (DNN) memory, computation, and power efficiency. Various techniques, such as post-training quantization and quantization-aware training, have been proposed to…

CPUobject-detectionObject DetectionQuantization