mlsanityData to 7 Oct 2026

ADFQ-ViT: Activation-Distribution-Friendly Post-Training Quantization for Vision Transformers

arXiv 2407.02763 ↗First posted 3 Jul 2024cs.CVcited by 7

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2015Deep Residual Learning for Image Recognitioncited by 51,809
  3. 2014Adam: A Method for Stochastic Optimizationcited by 36,960
  4. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
  5. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  6. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
  7. 2014Microsoft COCO: Common Objects in Contextcited by 17,498
  8. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
  9. 2015Distilling the Knowledge in a Neural Networkcited by 10,076
  10. 2020End-to-End Object Detection with Transformerscited by 7,384
  11. 2017Mask R-CNNcited by 7,259
  12. 2016Layer Normalizationcited by 5,579
21 more
  1. 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
  2. 2016Gaussian Error Linear Units (GELUs)cited by 3,431
  3. 2017Quantization and Training of Neural Networks for Efficient Integer-Arithmetic-Only Inferencecited by 1,548
  4. 2017Cascade R-CNN: Delving into High Quality Object Detectioncited by 1,275
  5. 2020Up or Down? Adaptive Rounding for Post-Training Quantizationcited by 600
  6. 2017Learning Sparse Neural Networks through L0 Regularizationcited by 571
  7. 2018Quantizing deep convolutional networks for efficient inference: A whitepapercited by 507
  8. 2021BRECQ: Pushing the Limit of Post-Training Quantization by Block Reconstructioncited by 464
  9. 2018PACT: Parameterized Clipping Activation for Quantized Neural Networkscited by 456
  10. 2021A White Paper on Neural Network Quantizationcited by 453
  11. 2021Post-Training Quantization for Vision Transformercited by 274
  12. 2022QDrop: Randomly Dropping Quantization for Extremely Low-bit Post-Training Quantizationcited by 175
  13. 2021PTQ4ViT: Post-training quantization for vision transformers with twin uniform quantizationcited by 173
  14. 2021FQ-ViT: Post-Training Quantization for Fully Quantized Vision Transformercited by 148
  15. 2022RepQ-ViT: Scale Reparameterization for Post-Training Quantization of Vision Transformerscited by 134
  16. 2022PD-Quant: Post-Training Quantization based on Prediction Difference Metriccited by 73
  17. 2023Towards Accurate Post-Training Quantization for Vision Transformercited by 70
  18. 2022NoisyQuant: Noisy Bias-Enhanced Post-Training Activation Quantization for Vision Transformerscited by 59
  19. 2023A survey on efficient vision transformers: algorithms, techniques, and performance benchmarkingcited by 41
  20. 2023I&S-ViT: An Inclusive & Stable Method for Pushing the Limit of Post-Training ViTs Quantizationcited by 19
  21. 2024RepQuant: Towards Accurate Post-Training Quantization of Large Transformer Models via Scale Reparameterizationcited by 10

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 1; 2025: 3; 2026: 3.

7 papers.