atlas

Research map / Architectures and efficiency / Attention and transformers

Bi-ViT: Pushing the Limit of Vision Transformer Quantization

AAAI 2024 · Architectures and efficiency › Attention and transformers · approach: Hybrid and interpretable ViT designs · 16 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 Bi-ViT, a fully-binarized vision transformer that adds learnable head-wise scaling factors in self-attention and a ranking-aware distillation loss, reaching large ImageNet gains over Bi-Real Net baselines on DeiT and Swin.

Problem

Fully binarizing vision transformers (weights and activations to 1-bit) causes severe accuracy collapse, traced to attention distortion in binarized self-attention from gradient vanishing and ranking disorder of attention scores.

Approach

Reactivate vanished gradients in binarized self-attention with learnable head-wise scaling factors that set the STE clip range, and rectify attention ranking disorder by distilling the relative order of the real-valued teacher's attention maps into the binarized student.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use Bi-ViT instead of Bi-Real NetDeiT-Tiny · ImageNetTop-1 accuracy: 6.6 -> 28.7; +22.1Helped
Use Bi-ViT instead of Bi-Real NetDeiT-Small · ImageNetTop-1 accuracy: 19.2 -> 40.9; +21.7Helped
Use Bi-ViT instead of Bi-Real NetDeiT-Base · ImageNetTop-1 accuracy: 26.5 -> 47.3; +20.8Helped
Use Bi-ViT instead of Bi-Real NetSwin-Tiny · ImageNetTop-1 accuracy: 34.1 -> 55.5; +21.4Helped
Use Bi-ViT instead of Bi-Real NetSwin-Small · ImageNetTop-1 accuracy: 39.2 -> 60.7; +21.5Helped
Add a learnable scaling factor (ablation)Bi-Real Net baseline with DeiT-Tiny · ImageNetTop-1 accuracy: 6.6 -> 24.4; +17.8Helped
Add ranking-aware distillation (ablation)Bi-Real Net baseline with DeiT-Tiny · ImageNetTop-1 accuracy: 6.6 -> 12.5; +5.9Helped
Add learnable scaling factor and ranking-aware distillation (ablation)Bi-Real Net baseline with DeiT-Tiny · ImageNetTop-1 accuracy: 6.6 -> 28.7; +22.1Helped
Use ranking-aware distillation (λ > 0) instead of no ranking-aware distillation (λ = 0) (ablation)Bi-ViT · ImageNetTop-1 accuracyHelped

Surprising findings

Limitations

Experimental setup

Datasets: ImageNet ILSVRC12

Benchmarks: ImageNet ILSVRC12 COCO object detection with Mask R-CNN and Cascade Mask R-CNN (Swin-Tiny backbone)

Metrics: Top-1 accuracy Top-5 accuracy OPs model size

Baselines: Bi-Real Net RBONN BiBERT Q-ViT

Builds on: Bi-Real Net ReActNet DeiT Swin Transformer BiBERT

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