English

Joint Post-Training Quantization of Vision Transformers with Learned Prompt-Guided Data Generation

Computer Vision and Pattern Recognition 2026-02-24 v1

Abstract

We present a framework for end-to-end joint quantization of Vision Transformers trained on ImageNet for the purpose of image classification. Unlike prior post-training or block-wise reconstruction methods, we jointly optimize over the entire set of all layers and inter-block dependencies without any labeled data, scaling effectively with the number of samples and completing in just one hour on a single GPU for ViT-small. We achieve state-of-the-art W4A4 and W3A3 accuracies on ImageNet and, to the best of our knowledge, the first PTQ results that maintain strong accuracy on ViT, DeiT, and Swin-T models under extremely low-bit settings (W1.58A8), demonstrating the potential for efficient edge deployment. Furthermore, we introduce a data-free calibration strategy that synthesizes diverse, label-free samples using Stable Diffusion Turbo guided by learned multi-mode prompts. By encouraging diversity in both the learned prompt embeddings and the generated image features, our data-free approach achieves performance on par with real-data ImageNet calibration and surpasses simple text-prompt baselines such as "a <adjective> photo of <adjective> <cls>".

Keywords

Cite

@article{arxiv.2602.18861,
  title  = {Joint Post-Training Quantization of Vision Transformers with Learned Prompt-Guided Data Generation},
  author = {Shile Li and Markus Karmann and Onay Urfalioglu},
  journal= {arXiv preprint arXiv:2602.18861},
  year   = {2026}
}
R2 v1 2026-07-01T10:45:42.561Z