atlas

Research map / Architectures and efficiency / Quantization

ERQ: Error Reduction for Post-Training Quantization of Vision Transformers

ICML 2024 · Architectures and efficiency › Quantization · approach: Post-training quantization of ViTs

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes ERQ, a two-step post-training quantization method for ViTs that first reduces activation quantization error via ridge-regression weight updates (Aqer) and then reduces weight quantization error with an iterative rounding refinement plus ridge regression (Wqer).

Problem

Post-training quantization of vision transformers suffers large output error because weight and activation quantization errors are entangled, which degrades accuracy especially at low bit-widths (W3A4, W4A4).

Approach

Decouple the joint weight-activation MSE into two sequential subproblems: a closed-form ridge-regression weight adjustment that absorbs activation quantization error (Aqer), and an iterative quantize-and-correct procedure (Wqer) that refines rounding directions using a Gaussian-based proxy of output error and then compensates with ridge regression on the remaining full-precision weights.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
apply ERQ instead of GPTQViT-S with W3A4 quantization · ImageNettop-1 accuracy: 23.32 -> 45.68Helped
apply ERQ instead of GPTQDeiT-S with W4A4 quantization · ImageNettop-1 accuracy: 70.85 -> 72.56Helped
apply ERQ instead of GPTQMask R-CNN with Swin-T and W4A4 quantization · COCOAPbox: 36.3 -> 36.8Helped
add Aqer (ablation)DeiT-S W4A4 PTQ · ImageNettop-1 accuracy: 68.41 -> 71.45Helped
add Rounding Refinement (ablation)DeiT-S W4A4 PTQ · ImageNettop-1 accuracy: 68.41 -> 69.24Helped
add Ridge Regression (ablation)DeiT-S W4A4 PTQ · ImageNettop-1 accuracy: 68.41 -> 70.06Helped
add Wqer, combining Rounding Refinement and Ridge Regression (ablation)DeiT-S W4A4 PTQ · ImageNettop-1 accuracy: 68.41 -> 70.49Helped
omit Rounding Refinement while retaining Aqer and Ridge Regression (ablation)DeiT-S W4A4 PTQ · ImageNettop-1 accuracy: 72.56 -> 71.83Hurt
omit Ridge Regression while retaining Aqer and Rounding Refinement (ablation)DeiT-S W4A4 PTQ · ImageNettop-1 accuracy: 72.56 -> 72.01Hurt
combine Aqer, Rounding Refinement, and Ridge Regression (ablation)DeiT-S W4A4 PTQ · ImageNettop-1 accuracy: 68.41 -> 72.56Helped
set Rounding Refinement k from 1 to 0 (ablation)DeiT-S W4A4 PTQ · ImageNettop-1 accuracy: 72.56 -> 72.01Hurt
set Rounding Refinement k from 1 to 2 (ablation)DeiT-S W4A4 PTQ · ImageNettop-1 accuracy: 72.56 -> 72.38Hurt

Surprising findings

Limitations

Experimental setup

Datasets: ImageNet COCO

Benchmarks: ImageNet COCO

Metrics: top-1 accuracy box AP mask AP

Baselines: FQ-ViT PTQ4ViT APQ-ViT GPTQ RepQ-ViT AdaRound BRECQ QDrop PD-Quant

Builds on: GPTQ RepQ-ViT BRECQ AdaRound QDrop

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy