paper-with-me

Papers

Instance-Aware Group Quantization for Vision Transformers

2024-04-01 · CVPR 2024 1 · Jaehyeon Moon, Dohyung Kim, Junyong Cheon, Bumsub Ham

Post-training quantization (PTQ) is an efficient model compression technique that quantizes a pretrained full-precision model using only a small calibration set of unlabeled samples without retraining. PTQ methods for convolutional neural networks (CNNs) provide quantization results comparable to full-precision counterparts. Directly applying them to vision transformers (ViTs), however, incurs severe performance degradation, mainly due to the differences in architectures between CNNs and ViTs. In particular, the distribution of activations for each channel vary drastically according to input instances, making PTQ methods for CNNs inappropriate for ViTs. To address this, we introduce instance-aware group quantization for ViTs (IGQ-ViT). To this end, we propose to split the channels of activation maps into multiple groups dynamically for each input instance, such that activations within each group share similar statistical properties. We also extend our scheme to quantize softmax attentions across tokens. In addition, the number of groups for each layer is adjusted to minimize the discrepancies between predictions from quantized and full-precision models, under a bit-operation (BOP) constraint. We show extensive experimental results on image classification, object detection, and instance segmentation, with various transformer architectures, demonstrating the effectiveness of our approach.

📄 PDF Abstract BibTeX arXiv:2404.00928

Code (0)

등록된 구현이 없습니다.

Tasks

image-classificationImage ClassificationInstance SegmentationModel Compressionobject-detectionObject DetectionQuantizationSemantic Segmentation

Methods 이 논문이 사용한 방법론

SET Dynamic Sparse Training method where weight mask is updated randomly periodically
Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…

Similar Papers 제목 키워드 기반

ScalePredictor: Instance-aware Scale Learning for Accurate Quantization of Vision Transformers

2026-06-20 · Changjun Li, Runqing Jiang, Lian Xu, Ye Zhang 외 arxiv

Vision Transformers have achieved remarkable success in many fields, yet their deployment on edge devices remains challenging due to their substantial computational demands. Post-Training Quantization (PTQ) offers an att…

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

Patch Similarity Aware Data-Free Quantization for Vision Transformers

2022-03-04 · Zhikai Li, Liping Ma, Mengjuan Chen, Junrui Xiao 외

Vision transformers have recently gained great success on various computer vision tasks; nevertheless, their high model complexity makes it challenging to deploy on resource-constrained devices. Quantization is an effect…

Data Free QuantizationQuantization

Quantization Variation: A New Perspective on Training Transformers with Low-Bit Precision

2023-07-01 · Xijie Huang, Zhiqiang Shen, Pingcheng Dong, Kwang-Ting Cheng

Despite the outstanding performance of transformers in both language and vision tasks, the expanding computation and model size have increased the demand for efficient deployment. To address the heavy computation and par…

Knowledge DistillationModel CompressionQuantization

NoisyQuant: Noisy Bias-Enhanced Post-Training Activation Quantization for Vision Transformers

2022-11-29 · CVPR 2023 1 · Yijiang Liu, Huanrui Yang, Zhen Dong, Kurt Keutzer 외

The complicated architecture and high training cost of vision transformers urge the exploration of post-training quantization. However, the heavy-tailed distribution of vision transformer activations hinders the effectiv…

Quantization