Post-Training Quantization of Vision Transformers Based on Quantization Error Compensation
Yafei Du, Zhao Li, Yuting Yan
Key points
From the paper's conclusion- This study proposes a method combining improved parameter search for adaptive logarithmic quantization with activation-error-aware second-order weight compensation.
Abstract
Low-bit post-training quantization of vision transformers (ViTs) is hindered by activation-induced output errors and the dependence of activation parameter search on early candidate selection. This study proposes a method combining improved parameter search for adaptive logarithmic quantization with activation-error-aware second-order weight compensation. The activation parameter search combines low-error and randomly selected candidates with expanded search neighborhoods and fewer refinement rounds to balance search coverage and local refinement. Weight reconstruction uses fixed quantized inputs and floating-point reference outputs, first adjusting weights to reduce activation-induced output residuals and then compensating for weight quantization errors using the inverse Hessian constructed from the quantized inputs. Across seven ViT models on ImageNet-1K, the method improves average top-1 accuracy over AdaLog and an OPTQ baseline adapted for activation quantization by 1.50 and 0.24 percentage points, respectively, with 4-bit weights and activations (W4A4). With 3-bit weights and activations (W3A3), the corresponding gains are 8.88 and 1.45 percentage points. Object detection and instance segmentation experiments on COCO 2017 further support its effectiveness. Ablation studies support the contributions of the improved search and activation-error-aware weight compensation. All compensation is performed offline and incorporated into the quantized weights, requiring no additional compensation branches during inference.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Test-Time Adaptation of Quantized ViTs via Single-Pass Quantizer-Aligned RecalibrationarXiv · 2026
- TR-PTQ: High-Accuracy Integer-Only Transformer Post Training Quantization via Taylor Region ReformulationarXiv · 2026
- LOAD: Enabling Low-Bit Group Quantization for Vision Transformers via Adaptive Data FormatsACM Transactions on Architecture and Code Optimization · 2026
- DeCo-Attention: Decompose to Compensate for Low-Precision AttentionarXiv · 2026
- ResCom: Activation Residual Compensation for Large Language Model QuantizationarXiv · 2026
- Projected-Feature Scale Calibration for 2-Bit Vision Encoders in Multimodal Large Language ModelsElectronics · 2026