arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.18861cs.CV
收藏

面向图像分类的视觉变换器联合后训练量化框架

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

vivo Tech Research GmbH(vivo科技研究有限公司)

Shile Li, Markus Karmann, Onay Urfalioglu

AI总结:

本文提出一种无标注数据的视觉变换器联合后训练量化方法,实现低比特下的高精度,并引入无数据校准策略提升边缘部署效率。

摘要:

我们提出了一种端到端的视觉变换器联合量化框架,用于对在ImageNet上训练的视觉变换器进行量化。与以往的后训练或分块重建方法不同,我们对所有层和跨块依赖关系进行联合优化,无需任何标注数据,能够有效扩展样本数量,并在单个GPU上仅用一小时完成ViT-small的量化。我们在ImageNet上实现了最先进的W4A4和W3A3精度,并且到目前为止,这是首次在极低位设置(W1.58A8)下保持强准确性的PTQ结果,展示了在ViT、DeiT和Swin-T模型上的高效边缘部署潜力。此外,我们引入了一种无数据校准策略,利用Stable Diffusion Turbo引导学习的多模式提示来合成多样化的无标签样本。通过鼓励学习到的提示嵌入和生成图像特征的多样性,我们的无数据方法在与真实数据ImageNet校准相当的性能上,超过了简单的文本提示基线,如

英文摘要:

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>".

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑