paper-with-me

Papers

Mixed Non-linear Quantization for Vision Transformers

2024-07-26 · Gihwan Kim, Jemin Lee, Sihyeong Park, Yongin Kwon, Hyungshin Kim

The majority of quantization methods have been proposed to reduce the model size of Vision Transformers, yet most of them have overlooked the quantization of non-linear operations. Only a few works have addressed quantization for non-linear operations, but they applied a single quantization method across all non-linear operations. We believe that this can be further improved by employing a different quantization method for each non-linear operation. Therefore, to assign the most error-minimizing quantization method from the known methods to each non-linear layer, we propose a mixed non-linear quantization that considers layer-wise quantization sensitivity measured by SQNR difference metric. The results show that our method outperforms I-BERT, FQ-ViT, and I-ViT in both 8-bit and 6-bit settings for ViT, DeiT, and Swin models by an average of 0.6%p and 19.6%p, respectively. Our method outperforms I-BERT and I-ViT by 0.6%p and 20.8%p, respectively, when training time is limited. We plan to release our code at https://gitlab.com/ones-ai/mixed-non-linear-quantization.

📄 PDF Abstract BibTeX arXiv:2407.18437

Code (1)

https://gitlab.com/ones-ai/mixed-non-linear-quantization 공식 구현 pytorch

Tasks

Quantization

Methods 이 논문이 사용한 방법론

Attention 설명 없음
Dense Connections Dense Connections, or Fully Connected Connections, are a type of layer in a deep neural network that use a linear operation where every input is connected to every output…
Feedforward Network A Feedforward Network, or a Multilayer Perceptron (MLP), is a neural network with solely densely connected layers. This is the classic neural network architecture of the…
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
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$…
Attention Dropout Attention Dropout is a type of dropout used in attention-based architectures, where elements are randomly dropped out of the…
I-BERT I-BERT is a quantized version of BERT that quantizes the entire inference with integer-only arithmetic. Based on lightweight integer…
Multi-Head Attention 설명 없음

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

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

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

M$^2$-ViT: Accelerating Hybrid Vision Transformers with Two-Level Mixed Quantization

2024-10-10 · Yanbiao Liang, Huihong Shi, Zhongfeng Wang

Although Vision Transformers (ViTs) have achieved significant success, their intensive computations and substantial memory overheads challenge their deployment on edge devices. To address this, efficient ViTs have emerge…

Efficient ViTsQuantization

MPTQ-ViT: Mixed-Precision Post-Training Quantization for Vision Transformer

2024-01-26 · Yu-Shan Tai, An-Yeu, Wu

While vision transformers (ViTs) have shown great potential in computer vision tasks, their intense computation and memory requirements pose challenges for practical applications. Existing post-training quantization meth…

Quantization