ADFQ-ViT: Activation-Distribution-Friendly Post-Training Quantization for Vision Transformers
Not on the map. Why?
Abstract (arXiv)
Vision Transformers (ViTs) have exhibited exceptional performance across diverse computer vision tasks, while their substantial parameter size incurs significantly increased memory and computational demands, impeding effective inference on resource-constrained devices. Quantization has emerged as a promising solution to mitigate these challenges, yet existing methods still suffer from significant accuracy loss at low-bit. We attribute this issue to the distinctive distributions of post-LayerNorm and post-GELU activations within ViTs, rendering conventional hardware-friendly quantizers ineffective, particularly in low-bit scenarios. To address this issue, we propose a novel framework called Activation-Distribution-Friendly post-training Quantization for Vision Transformers, ADFQ-ViT. Concretely, we introduce the Per-Patch Outlier-aware Quantizer to tackle irregular outliers in post-LayerNorm activations. This quantizer refines the granularity of the uniform quantizer to a per-patch level while retaining a minimal subset of values exceeding a threshold at full-precision. To handle the non-uniform distributions of post-GELU activations between positive and negative regions, we design the Shift-Log2 Quantizer, which shifts all elements to the positive region and then applies log2 quantization. Moreover, we present the Attention-score enhanced Module-wise Optimization which adjusts the parameters of each quantizer by reconstructing errors to further mitigate quantization error. Extensive experiments demonstrate ADFQ-ViT provides significant improvements over various baselines in image classification, object detection, and instance segmentation tasks at 4-bit. Specifically, when quantizing the ViT-B model to 4-bit, we achieve a 10.23% improvement in Top-1 accuracy on the ImageNet dataset.
Key facts. Cited by 7 papers in the map (data through 7 Oct 2026). Builds on 33 of its 40 references that are in the map. First posted on arXiv 3 Jul 2024.
Builds on
33 of 40 references.
References · 33
- 2017Attention Is All You Needcited by 59,932
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
- 2014Microsoft COCO: Common Objects in Contextcited by 17,498
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
- 2015Distilling the Knowledge in a Neural Networkcited by 10,076
- 2020End-to-End Object Detection with Transformerscited by 7,384
- 2017Mask R-CNNcited by 7,259
- 2016Layer Normalizationcited by 5,579
21 more
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
- 2016Gaussian Error Linear Units (GELUs)cited by 3,431
- 2017Quantization and Training of Neural Networks for Efficient Integer-Arithmetic-Only Inferencecited by 1,548
- 2017Cascade R-CNN: Delving into High Quality Object Detectioncited by 1,275
- 2020Up or Down? Adaptive Rounding for Post-Training Quantizationcited by 600
- 2017Learning Sparse Neural Networks through L0 Regularizationcited by 571
- 2018Quantizing deep convolutional networks for efficient inference: A whitepapercited by 507
- 2021BRECQ: Pushing the Limit of Post-Training Quantization by Block Reconstructioncited by 464
- 2018PACT: Parameterized Clipping Activation for Quantized Neural Networkscited by 456
- 2021A White Paper on Neural Network Quantizationcited by 453
- 2021Post-Training Quantization for Vision Transformercited by 274
- 2022QDrop: Randomly Dropping Quantization for Extremely Low-bit Post-Training Quantizationcited by 175
- 2021PTQ4ViT: Post-training quantization for vision transformers with twin uniform quantizationcited by 173
- 2021FQ-ViT: Post-Training Quantization for Fully Quantized Vision Transformercited by 148
- 2022RepQ-ViT: Scale Reparameterization for Post-Training Quantization of Vision Transformerscited by 134
- 2022PD-Quant: Post-Training Quantization based on Prediction Difference Metriccited by 73
- 2023Towards Accurate Post-Training Quantization for Vision Transformercited by 70
- 2022NoisyQuant: Noisy Bias-Enhanced Post-Training Activation Quantization for Vision Transformerscited by 59
- 2023A survey on efficient vision transformers: algorithms, techniques, and performance benchmarkingcited by 41
- 2023I&S-ViT: An Inclusive & Stable Method for Pushing the Limit of Post-Training ViTs Quantizationcited by 19
- 2024RepQuant: Towards Accurate Post-Training Quantization of Large Transformer Models via Scale Reparameterizationcited by 10
Built on by
Citing papers per year: 2024: 1; 2025: 3; 2026: 3.
7 papers.
- 2025OuroMamba: A Data-Free Quantization Framework for Vision Mambacited by 5
- 2025I-Segmenter: Integer-Only Vision Transformer for Efficient Semantic Segmentationcited by 1
- 2026Selective Coupling of Decoupled Informative Regions: Masked Attention Alignment for Data-Free Quantization of Vision Transformerscited by 1
- 2026E2S-Pruner: Progressive Two-Stage Evidence Fusion for Visual Token Pruning in Vision-Language Modelscited by 1
- 2024Progressive Fine-to-Coarse Reconstruction for Accurate Low-Bit Post-Training Quantization in Vision Transformerscited by 0
- 2025SegQuant: A Semantics-Aware and Generalizable Quantization Framework for Diffusion Modelscited by 0
- 2026When W4A4 Breaks Camouflaged Object Detection: Token-Group Dual-Constraint Activation Quantizationcited by 0
- 2026E2S-Pruner: Progressive Two-Stage Evidence Fusion for Visual Token Pruning in Vision-Language Models24 Aug 2026
- 2026Selective Coupling of Decoupled Informative Regions: Masked Attention Alignment for Data-Free Quantization of Vision Transformers3 Jun 2026
- 2026When W4A4 Breaks Camouflaged Object Detection: Token-Group Dual-Constraint Activation Quantization18 Apr 2026
- 2025I-Segmenter: Integer-Only Vision Transformer for Efficient Semantic Segmentation12 Sep 2025
- 2025SegQuant: A Semantics-Aware and Generalizable Quantization Framework for Diffusion Models20 Jul 2025
- 2025OuroMamba: A Data-Free Quantization Framework for Vision Mamba13 Mar 2025
- 2024Progressive Fine-to-Coarse Reconstruction for Accurate Low-Bit Post-Training Quantization in Vision Transformers19 Dec 2024