Beyond Similarity Entropy: A Rank-Guided Data-Free Quantization Framework for Vision Transformers
Runqing Jiang, Ye Zhang, Pengpeng Yu, Zhuo Song, Changjun Li, Longguang Wang, Yulan Guo
Abstract
Vision Transformers (ViTs) have demonstrated remarkable performance, yet their computational and memory demands pose significant challenges for deployment on mobile devices. Data-free quantization (DFQ) enables the compression of ViTs without access to their original training data. Existing DFQ methods often synthesize calibration samples by maximizing the entropy of patch similarity. However, similarity entropy describes the dispersion of similarity values without ensuring that the generated samples cover diverse feature directions, potentially limiting their effectiveness for quantization calibration. To address this limitation, we propose RankQ-ViT, a rank-guided DFQ framework for ViTs. We first observe that patch similarity matrices derived from Gaussian noise tend to have lower ranks than those derived from real images. Motivated by this observation, we introduce a block-aware self-contrastive objective that promotes feature diversity during synthetic data generation without explicitly computing matrix rank at each optimization step. We then select calibration samples based on their rank and semantic consistency and use them for block-wise reconstruction of the quantized model. Experiments on ImageNet, COCO, ModelNet40, and ShapeNet demonstrate the effectiveness of RankQ-ViT across multiple architectures and tasks, particularly under low-bit quantization. The code is available at https://github.com/Runqing-forMost/rankq-vit.git
Create a lesson
Related papers
Spec^2R: Recovering Emergent Properties in Supervised Vision Transformers
Shared title terminologycs.CVAdam Wróbel, Jacek Tabor, Bartosz Zieliński et al.
Modern Self-Supervised Vision Transformers Are Pareidolic
Shared title terminologycs.CVZihang Lin, Huaiyuan Qin, Liangli Zhen et al.
Token Pruning Needs a Protected Sink Token: Coherent Spatial Aggregation in Vision Transformers
Shared title terminologycs.CVJulian Wyatt, James Willoughby, Allison Clement et al.
ABRR: Transforming Temporal Sentence Grounding with Wasserstein-Adaptive Refinement and Precision Ranking
Shared title terminologycs.CVXiang Fang, Wanlong Fang, Junhao Dong et al.
GeoScope: Training-Free Program Execution beyond the Counting Horizon for Ultra-High-Resolution Remote Sensing Question Answering
Shared title terminologycs.CVGuohui Deng, Yuhang Jiang, Chengjun Wang et al.
Training Vision Transformers to Focus: Emergence of Spatial Attention Head Specialization
Shared title terminologycs.CVYuji Nozawa, Yu-Chieh Lin, Youyang Ng