paper-with-me

Papers

Patch-wise Mixed-Precision Quantization of Vision Transformer

2023-05-11 · Junrui Xiao, Zhikai Li, Lianwei Yang, Qingyi Gu

As emerging hardware begins to support mixed bit-width arithmetic computation, mixed-precision quantization is widely used to reduce the complexity of neural networks. However, Vision Transformers (ViTs) require complex self-attention computation to guarantee the learning of powerful feature representations, which makes mixed-precision quantization of ViTs still challenging. In this paper, we propose a novel patch-wise mixed-precision quantization (PMQ) for efficient inference of ViTs. Specifically, we design a lightweight global metric, which is faster than existing methods, to measure the sensitivity of each component in ViTs to quantization errors. Moreover, we also introduce a pareto frontier approach to automatically allocate the optimal bit-precision according to the sensitivity. To further reduce the computational complexity of self-attention in inference stage, we propose a patch-wise module to reallocate bit-width of patches in each layer. Extensive experiments on the ImageNet dataset shows that our method greatly reduces the search cost and facilitates the application of mixed-precision quantization to ViTs.

📄 PDF Abstract BibTeX arXiv:2305.06559

Code (0)

등록된 구현이 없습니다.

Tasks

QuantizationSensitivity

Similar Papers 제목 키워드 기반

LampQ: Towards Accurate Layer-wise Mixed Precision Quantization for Vision Transformers

2025-11-13 · Minjun Kim, Jaeri Lee, Jongjin Kim, Jeongin Yun 외 arxiv

How can we accurately quantize a pre-trained Vision Transformer model? Quantization algorithms compress Vision Transformers (ViTs) into low-bit formats, reducing memory and computation demands with minimal accuracy degra…

Image ClassificationObject Detection

Mixed-Precision Quantization for Deep Vision Models with Integer Quadratic Programming

2023-07-11 · Zihao Deng, Sayeh Sharify, Xin Wang, Michael Orshansky

Quantization is a widely used technique to compress neural networks. Assigning uniform bit-widths across all layers can result in significant accuracy degradation at low precision and inefficiency at high precision. Mixe…

QuantizationSensitivity

LRP-QViT: Mixed-Precision Vision Transformer Quantization via Layer-wise Relevance Propagation

2024-01-20 · Navin Ranjan, Andreas Savakis

Vision transformers (ViTs) have demonstrated remarkable performance across various visual tasks. However, ViT models suffer from substantial computational and memory requirements, making it challenging to deploy them on …

Quantization

CLAMP-ViT: Contrastive Data-Free Learning for Adaptive Post-Training Quantization of ViTs

2024-07-07 · Akshat Ramachandran, Souvik Kundu, Tushar Krishna

We present CLAMP-ViT, a data-free post-training quantization method for vision transformers (ViTs). We identify the limitations of recent techniques, notably their inability to leverage meaningful inter-patch relationshi…

Contrastive Learningobject-detectionObject DetectionQuantization

MixFrag: Fragility-Guided Mixed-Precision Post-Training Quantization for Vision Transformers

2026-07-30 · Md. Mehrab Hossain Opi, Robiul Islam Ryad, Md. Umar Faruk arxiv

Post-training quantization (PTQ) has emerged as an effective solution for deploying Vision Transformers (ViTs) on resource-constrained devices. However, existing PTQ methods typically employ uniform bit-widths across tra…

Instance SegmentationObject Detection