mlsanityData to 7 Oct 2026

CPT-V: A Contrastive Approach to Post-Training Quantization of Vision Transformers

arXiv 2211.09643 ↗First posted 17 Nov 2022cs.CV cs.AIcited by 1

Not on the map. Why?

Abstract (arXiv)

When considering post-training quantization, prior work has typically focused on developing a mixed precision scheme or learning the best way to partition a network for quantization. In our work, CPT-V, we look at a general way to improve the accuracy of networks that have already been quantized, simply by perturbing the quantization scales. Borrowing the idea of contrastive loss from self-supervised learning, we find a robust way to jointly minimize a loss function using just 1,000 calibration images. In order to determine the best performing quantization scale, CPT-V contrasts the features of quantized and full precision models in a self-supervised fashion. Unlike traditional reconstruction-based loss functions, the use of a contrastive loss function not only rewards similarity between the quantized and full precision outputs but also helps in distinguishing the quantized output from other outputs within a given batch. In addition, in contrast to prior works, CPT-V proposes a block-wise evolutionary search to minimize a global contrastive loss objective, allowing for accuracy improvement of existing vision transformer (ViT) quantization schemes. For example, CPT-V improves the top-1 accuracy of a fully quantized ViT-Base by 10.30%, 0.78%, and 0.15% for 3-bit, 4-bit, and 8-bit weight quantization levels. Extensive experiments on a variety of other ViT architectures further demonstrate its robustness in extreme quantization scenarios. Our code is available at <link>.

Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 25 of its 31 references that are in the map. First posted on arXiv 17 Nov 2022.

Builds on

25 of 31 references.

References · 25

  1. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
  2. 2018Representation Learning with Contrastive Predictive Codingcited by 7,662
  3. 2019Momentum Contrast for Unsupervised Visual Representation Learningcited by 7,482
  4. 2020Bootstrap your own latent: A new approach to self-supervised Learningcited by 4,712
  5. 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
  6. 2021An Empirical Study of Training Self-Supervised Vision Transformerscited by 1,610
  7. 2017Quantization and Training of Neural Networks for Efficient Integer-Arithmetic-Only Inferencecited by 1,548
  8. 2019Learned Step Size Quantizationcited by 604
  9. 2020Up or Down? Adaptive Rounding for Post-Training Quantizationcited by 600
  10. 2021BRECQ: Pushing the Limit of Post-Training Quantization by Block Reconstructioncited by 464
  11. 2019Q-BERT: Hessian Based Ultra Low Precision Quantization of BERTcited by 355
  12. 2021Post-Training Quantization for Vision Transformercited by 274
13 more
  1. 2019Low-bit Quantization of Neural Networks for Efficient Inferencecited by 185
  2. 2020BinaryBERT: Pushing the Limit of BERT Quantizationcited by 175
  3. 2021PTQ4ViT: Post-training quantization for vision transformers with twin uniform quantizationcited by 173
  4. 2021FQ-ViT: Post-Training Quantization for Fully Quantized Vision Transformercited by 148
  5. 2019Loss Aware Post-training Quantizationcited by 94
  6. 2022I-ViT: Integer-only Quantization for Efficient Vision Transformer Inferencecited by 93
  7. 2020Data-Free Network Quantization With Adversarial Knowledge Distillationcited by 79
  8. 2020EasyQuant: Post-training Quantization via Scale Optimizationcited by 57
  9. 2022PSAQ-ViT V2: Towards Accurate and General Data-Free Quantization for Vision Transformerscited by 42
  10. 2022Q-ViT: Fully Differentiable Quantization for Vision Transformercited by 36
  11. 2022Auto-ViT-Acc: An FPGA-Aware Automatic Acceleration Framework for Vision Transformer with Mixed-Scheme Quantizationcited by 28
  12. 2022TerViT: An Efficient Ternary Vision Transformercited by 10
  13. 2022Synergistic Self-supervised and Quantization Learningcited by 10

Built on by

Cited by year

Citing papers per year: 2023: 1.

1 paper.