paper-with-me

Papers

I-ViT: Integer-only Quantization for Efficient Vision Transformer Inference

2022-07-04 · ICCV 2023 1 · Zhikai Li, Qingyi Gu

Vision Transformers (ViTs) have achieved state-of-the-art performance on various computer vision applications. However, these models have considerable storage and computational overheads, making their deployment and efficient inference on edge devices challenging. Quantization is a promising approach to reducing model complexity, and the dyadic arithmetic pipeline can allow the quantized models to perform efficient integer-only inference. Unfortunately, dyadic arithmetic is based on the homogeneity condition in convolutional neural networks, which is not applicable to the non-linear components in ViTs, making integer-only inference of ViTs an open issue. In this paper, we propose I-ViT, an integer-only quantization scheme for ViTs, to enable ViTs to perform the entire computational graph of inference with integer arithmetic and bit-shifting, and without any floating-point arithmetic. In I-ViT, linear operations (e.g., MatMul and Dense) follow the integer-only pipeline with dyadic arithmetic, and non-linear operations (e.g., Softmax, GELU, and LayerNorm) are approximated by the proposed light-weight integer-only arithmetic methods. More specifically, I-ViT applies the proposed Shiftmax and ShiftGELU, which are designed to use integer bit-shifting to approximate the corresponding floating-point operations. We evaluate I-ViT on various benchmark models and the results show that integer-only INT8 quantization achieves comparable (or even slightly higher) accuracy to the full-precision (FP) baseline. Furthermore, we utilize TVM for practical hardware deployment on the GPU's integer arithmetic units, achieving 3.72$\sim$4.11$\times$ inference speedup compared to the FP model. Code of both Pytorch and TVM is released at https://github.com/zkkli/I-ViT.

📄 PDF Abstract BibTeX arXiv:2207.01405

Code (1)

zkkli/i-vit 공식 구현 pytorch

Tasks

Quantization

Methods 이 논문이 사용한 방법론

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 제목 키워드 기반

IPTQ-ViT: Post-Training Quantization of Non-linear Functions for Integer-only Vision Transformers

2025-11-19 · Gihwan Kim, Jemin Lee, Hyungshin Kim arxiv

Previous Quantization-Aware Training (QAT) methods for vision transformers rely on expensive retraining to recover accuracy loss in non-linear layer quantization, limiting their use in resource-constrained environments. …

Image ClassificationObject Detection

I-BERT: Integer-only BERT Quantization

2021-01-05 · Sehoon Kim, Amir Gholami, Zhewei Yao, Michael W. Mahoney 외

Transformer based models, like BERT and RoBERTa, have achieved state-of-the-art results in many Natural Language Processing tasks. However, their memory footprint, inference latency, and power consumption are prohibitive…

GPUNatural Language InferenceNatural Language UnderstandingQuantization

I-Segmenter: Integer-Only Vision Transformer for Efficient Semantic Segmentation

2025-09-12 · Jordan Sassoon, Michal Szczepanski, Martyna Poreba arxiv

Vision Transformers (ViTs) have recently achieved strong results in semantic segmentation, yet their deployment on resource-constrained devices remains limited due to their high memory footprint and computational cost. Q…

Semantic Segmentation

Towards Fully 8-bit Integer Inference for the Transformer Model

2020-09-17 · Ye Lin, Yanyang Li, Tengbo Liu, Tong Xiao 외

8-bit integer inference, as a promising direction in reducing both the latency and storage of deep neural networks, has made great progress recently. On the other hand, previous systems still rely on 32-bit floating poin…

Language ModellingQuantizationTranslation

HAWQV3: Dyadic Neural Network Quantization

2020-11-20 · Zhewei Yao, Zhen Dong, Zhangcheng Zheng, Amir Gholami 외

Current low-precision quantization algorithms often have the hidden cost of conversion back and forth from floating point to quantized integer values. This hidden cost limits the latency improvement realized by quantizin…

Model CompressionQuantization