atlas

Research map / Architectures and efficiency / Quantization

Outlier-aware Slicing for Post-Training Quantization in Vision Transformer

ICML 2024 · Architectures and efficiency › Quantization · approach: Post-training quantization of ViTs

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 choosing reconstruction granularity (how many transformer blocks or sub-block modules are jointly optimized) for block-wise PTQ of ViTs to mitigate outlier-induced quantization error, with an algorithm to pick granularity per architecture.

Problem

Post-training quantization of vision transformers suffers large accuracy loss at low bit-width because of activation outliers, and the choice of reconstruction granularity has been overlooked for transformers.

Approach

Introduces 'reconstruction granularity' as a lever against outliers: theory shows coarser granularity (jointly reconstructing more consecutive blocks) reduces quantization loss under transformer-like topological homogeneity, while Swin's stage-wise downsampling breaks this, favoring finer slicing of each block into self-attention, out-projection and MLP modules.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use the proposed reconstruction granularity instead of RepQ-ViT4-bit PTQ on ViT-Small · ImageNetTop-1 accuracy: 65.05 -> 72.88Helped
Use the proposed reconstruction granularity instead of RepQ-ViT4-bit PTQ on DeiT-Tiny · ImageNetTop-1 accuracy: 57.43 -> 66.31Helped
Use the proposed reconstruction granularity instead of RepQ-ViT4-bit PTQ on Swin-Base · ImageNetTop-1 accuracy: 78.32 -> 82.46Helped
Use the proposed reconstruction granularity instead of NoisyQuant6-bit PTQ on Swin-Small · ImageNetTop-1 accuracy: 82.86 -> 82.76Hurt
Optimize the three transformer modules separately rather than each block independently (ablation)ViT-Small · ImageNet, 4-bit weights/activationsTop-1 accuracy: 67.07 -> 72.60Helped
Optimize the three transformer modules separately rather than jointly combining A and B (ablation)ViT-Small · ImageNet, 4-bit weights/activationsTop-1 accuracy: 68.67 -> 72.60Helped
Optimize the three transformer modules separately rather than jointly combining B and C (ablation)ViT-Small · ImageNet, 4-bit weights/activationsTop-1 accuracy: 70.52 -> 72.60Helped
Optimize the three transformer modules separately rather than each block independently (ablation)DeiT-Tiny · ImageNet, 4-bit weights/activationsTop-1 accuracy: 64.71 -> 64.07Hurt
Optimize the three transformer modules separately rather than jointly combining A and B (ablation)DeiT-Tiny · ImageNet, 4-bit weights/activationsTop-1 accuracy: 64.30 -> 64.07Hurt
Optimize the three transformer modules separately rather than jointly combining B and C (ablation)DeiT-Tiny · ImageNet, 4-bit weights/activationsTop-1 accuracy: 64.06 -> 64.07Mixed
Optimize the three transformer modules separately rather than each block independently (ablation)Swin-Small · ImageNet, 4-bit weights/activationsTop-1 accuracy: 79.60 -> 80.98Helped
Use 3-block rather than 1-block reconstruction granularity (ablation)ViT-Small · ImageNet, 4-bit weights/activationsTop-1 accuracy: 67.38 -> 73.32Helped

Surprising findings

Limitations

Experimental setup

Datasets: ImageNet

Benchmarks: ImageNet

Metrics: Top-1 accuracy

Baselines: FQ-ViT PTQ4ViT APQ-ViT RepQ-ViT NoisyQuant PSAQ-ViT Ranking

Builds on: AdaRound BRECQ QDrop MRECG RepQ-ViT

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