paper-with-me

Papers

Towards Accurate Post-training Quantization for Reparameterized Models

2024-02-25 · Luoming Zhang, Yefei He, Wen Fei, Zhenyu Lou, Weijia Wu, YangWei Ying, Hong Zhou

Model reparameterization is a widely accepted technique for improving inference speed without compromising performance. However, current Post-training Quantization (PTQ) methods often lead to significant accuracy degradation when applied to reparameterized models. This is primarily caused by channel-specific and sample-specific outliers, which appear only at specific samples and channels and impact on the selection of quantization parameters. To address this issue, we propose RepAPQ, a novel framework that preserves the accuracy of quantized reparameterization models. Different from previous frameworks using Mean Squared Error (MSE) as a measurement, we utilize Mean Absolute Error (MAE) to mitigate the influence of outliers on quantization parameters. Our framework comprises two main components: Quantization Protecting Reparameterization and Across-block Calibration. For effective calibration, Quantization Protecting Reparameterization combines multiple branches into a single convolution with an affine layer. During training, the affine layer accelerates convergence and amplifies the output of the convolution to better accommodate samples with outliers. Additionally, Across-block Calibration leverages the measurement of stage output as supervision to address the gradient problem introduced by MAE and enhance the interlayer correlation with quantization parameters. Comprehensive experiments demonstrate the effectiveness of RepAPQ across various models and tasks. Our framework outperforms previous methods by approximately 1\% for 8-bit PTQ and 2\% for 6-bit PTQ, showcasing its superior performance. The code is available at \url{https://github.com/ilur98/DLMC-QUANT}.

📄 PDF Abstract BibTeX arXiv:2402.16121

Code (1)

ilur98/dlmc-quant 공식 구현 pytorch

Tasks

Quantization

Methods 이 논문이 사용한 방법론

SPEED The monocular depth estimation (MDE) is the task of estimating depth from a single frame. This information is an essential knowledge in many computer vision tasks such as scene…
MAE 설명 없음
Convolution A convolution is a type of matrix operation, consisting of a kernel, a small matrix of weights, that slides over input data performing element-wise multiplication with the…

Similar Papers 제목 키워드 기반

RepQ-ViT: Scale Reparameterization for Post-Training Quantization of Vision Transformers

2022-12-16 · ICCV 2023 1 · Zhikai Li, Junrui Xiao, Lianwei Yang, Qingyi Gu

Post-training quantization (PTQ), which only requires a tiny dataset for calibration without end-to-end retraining, is a light and practical model compression technique. Recently, several PTQ schemes for vision transform…

Model CompressionQuantization

LLM-FP4: 4-Bit Floating-Point Quantized Transformers

2023-10-25 · Shih-Yang Liu, Zechun Liu, Xijie Huang, Pingcheng Dong 외

We propose LLM-FP4 for quantizing both weights and activations in large language models (LLMs) down to 4-bit floating-point values, in a post-training manner. Existing post-training quantization (PTQ) solutions are prima…

Common Sense ReasoningQuantization

Towards Accurate Post-Training Quantization for Vision Transformer

2023-03-25 · Yifu Ding, Haotong Qin, Qinghua Yan, Zhenhua Chai 외

Vision transformer emerges as a potential architecture for vision tasks. However, the intense computation and non-negligible delay hinder its application in the real world. As a widespread model compression technique, ex…

Model CompressionQuantization

Optimal Brain Compression: A Framework for Accurate Post-Training Quantization and Pruning

2022-08-24 · Elias Frantar, Sidak Pal Singh, Dan Alistarh

We consider the problem of model compression for deep neural networks (DNNs) in the challenging one-shot/post-training setting, in which we are given an accurate trained model, and must compress it without any retraining…

Model CompressionQuantization

Post-Training Piecewise Linear Quantization for Deep Neural Networks

2020-01-31 · ECCV 2020 8 · Jun Fang, Ali Shafiee, Hamzah Abdel-Aziz, David Thorsley 외

Quantization plays an important role in the energy-efficient deployment of deep neural networks on resource-limited devices. Post-training quantization is highly desirable since it does not require retraining or access t…

image-classificationImage Classificationobject-detectionObject Detection+2