atlas

Research map / Architectures and efficiency / Quantization

Instance-Aware Group Quantization for Vision Transformers

CVPR 2024 · Architectures and efficiency › Quantization · approach: Post-training quantization of ViTs · 20 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes IGQ-ViT, a post-training quantization method for vision transformers that dynamically groups activation channels and softmax attention rows per input instance, with a BOP-constrained ILP for per-layer group counts.

Problem

Post-training quantization of vision transformers at low bit-widths (e.g., 4-bit) degrades badly because per-channel activation ranges and softmax attention distributions vary strongly across channels, tokens and input instances, which fixed layer-wise or fixed-group quantizers cannot handle.

Approach

Split activation channels (inputs of FC layers) and softmax attention rows into groups dynamically at runtime for each input instance, assigning each to the quantizer with minimum distance via EM-style alternating optimization, and allocate per-layer group counts by minimizing KL-divergence perturbation under a bit-operation constraint.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Apply instance-aware grouping with 12 groups instead of RepQ-ViTViT-S · ImageNet validation, 4/4-bittop-1 accuracy: 65.05 -> 73.61Helped
Apply instance-aware grouping with 12 groups instead of RepQ-ViTDeiT-B · ImageNet validation, 4/4-bittop-1 accuracy: 75.61 -> 79.23Helped
Apply instance-aware grouping with 12 groups instead of RepQ-ViTMask R-CNN with Swin-T · COCO, 4/4-bitAPbox: 36.1 -> 41.0Helped
Apply instance-aware grouping with 12 groups instead of RepQ-ViTCascade Mask R-CNN with Swin-T · COCO, 4/4-bitAPmask: 41.4 -> 42.4Helped
Increase group count from 8 to 12 (ablation)IGQ-ViT on ViT-S · ImageNet validation, 4/4-bittop-1 accuracy: 72.99 -> 73.61Helped
Increase group count from 8 to 12 (ablation)IGQ-ViT on DeiT-B · ImageNet validation, 4/4-bittop-1 accuracy: 78.85 -> 79.23Helped
Increase group count from 8 to 12 (ablation)IGQ-ViT on Swin-T · ImageNet validation, 4/4-bittop-1 accuracy: 76.91 -> 77.77Helped
Add group-size allocation rather than using a fixed group size (ablation)IGQ-ViT on ViT-S · ImageNet, 4/4-bit, 6 groupstop-1 accuracy: 71.44 -> 71.80Helped
Add group-size allocation rather than using a fixed group size (ablation)IGQ-ViT on DeiT-B · ImageNet, 4/4-bit, 8 groupstop-1 accuracy: 78.85 -> 79.04Helped
Add IGQ to linear operations while retaining layer-wise attention quantization (ablation)IGQ-ViT on ViT-S · ImageNet, 4/4-bittop-1 accuracy: 42.82 -> 57.32Helped
Add IGQ to softmax attentions while retaining layer-wise quantization for linear operations (ablation)IGQ-ViT on ViT-S · ImageNet, 4/4-bittop-1 accuracy: 42.82 -> 53.69Helped
Use instance-aware grouping for both linear operations and softmax attention instead of layer-wise quantization (ablation)IGQ-ViT on ViT-S · ImageNet, 4/4-bittop-1 accuracy: 42.82 -> 72.99Helped

Surprising findings

Limitations

Experimental setup

Datasets: ImageNet COCO

Benchmarks: ImageNet COCO

Metrics: top-1 accuracy box AP mask AP BOPs

Baselines: PTQ4ViT APQ-ViT RepQ-ViT Layer-wise quantization Grouping consecutive channels Sorting before grouping channels (PEG)

Builds on: PTQ4ViT RepQ-ViT APQ-ViT Q-bert group quantization VS-quant

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy