paper-with-me

Papers

Post-Training Quantization for Vision Transformer

2021-06-27 · NeurIPS 2021 12 · Zhenhua Liu, Yunhe Wang, Kai Han, Siwei Ma, Wen Gao

Recently, transformer has achieved remarkable performance on a variety of computer vision applications. Compared with mainstream convolutional neural networks, vision transformers are often of sophisticated architectures for extracting powerful feature representations, which are more difficult to be developed on mobile devices. In this paper, we present an effective post-training quantization algorithm for reducing the memory storage and computational costs of vision transformers. Basically, the quantization task can be regarded as finding the optimal low-bit quantization intervals for weights and inputs, respectively. To preserve the functionality of the attention mechanism, we introduce a ranking loss into the conventional quantization objective that aims to keep the relative order of the self-attention results after quantization. Moreover, we thoroughly analyze the relationship between quantization loss of different layers and the feature diversity, and explore a mixed-precision quantization scheme by exploiting the nuclear norm of each attention map and output feature. The effectiveness of the proposed method is verified on several benchmark models and datasets, which outperforms the state-of-the-art post-training quantization algorithms. For instance, we can obtain an 81.29\% top-1 accuracy using DeiT-B model on ImageNet dataset with about 8-bit quantization.

📄 PDF Abstract BibTeX arXiv:2106.14156

Code (0)

등록된 구현이 없습니다.

Tasks

DiversityQuantization

Similar Papers 제목 키워드 기반

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

PTQ4ViT: Post-training quantization for vision transformers with twin uniform quantization

2021-11-24 · Zhihang Yuan, Chenhao Xue, Yiqi Chen, Qiang Wu 외

Quantization is one of the most effective methods to compress neural networks, which has achieved great success on convolutional neural networks (CNNs). Recently, vision transformers have demonstrated great potential in …

Quantization

Towards Accurate Post-Training Quantization for Vision Transformer

2023-03-25 · Yifu Ding, Haotong Qin, Qinghua Yan, Zhenhua Chai 외

Vision transformer emerges as a potential architecture for vision tasks. However, the intense computation and non-negligible delay hinder its application in the real world. As a widespread model compression technique, ex…

Model CompressionQuantization

TSPTQ-ViT: Two-scaled post-training quantization for vision transformer

2023-05-22 · Yu-Shan Tai, Ming-Guang Lin, An-Yeu, Wu

Vision transformers (ViTs) have achieved remarkable performance in various computer vision tasks. However, intensive memory and computation requirements impede ViTs from running on resource-constrained edge devices. Due …

Quantization

DopQ-ViT: Towards Distribution-Friendly and Outlier-Aware Post-Training Quantization for Vision Transformers

2024-08-06 · Lianwei Yang, Haisong Gong, Qingyi Gu

Vision transformers (ViTs) have garnered significant attention for their performance in vision tasks, but the high computational cost and significant latency issues have hindered widespread adoption. Post-training quanti…

Model CompressionQuantization