atlas

Research map / Architectures and efficiency / Attention and transformers

SHViT: Single-Head Vision Transformer with Memory Efficient Macro Design

CVPR 2024 · Architectures and efficiency › Attention and transformers · approach: Efficient and robust vision transformers · 179 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 SHViT, an efficient vision transformer that uses a larger-stride (16x16 overlapping) patchify stem, a 3-stage macro design, and a single-head self-attention applied to a partial channel subset, achieving strong speed-accuracy tradeoffs on GPU, CPU, and iPhone.

Problem

Efficient vision transformers carry computational and memory-access redundancy at both macro design (4x4 patch embedding, 4 stages) and micro design (multi-head attention with redundant heads), limiting speed on resource-constrained devices.

Approach

Combine a larger-stride overlapping patchify stem with 3 stages to reduce early-stage token counts, use convolutions in the first stage, and replace multi-head attention with a single-head self-attention applied to only a partial channel subset (r=1/4.67) in parallel with depthwise convolution, which removes head redundancy and cuts memory-bound operations.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use SHViT-S4 instead of EfficientViT-M4ImageNet classification · ImageNet-1KTop-1 accuracy: 74.3 -> 79.4Helped
Use SHViT-S4 instead of EfficientViT-M4RetinaNet · COCO 2017AP: 32.7 -> 38.8Helped
Use SHViT-S4 instead of FastViT-SA12Mask R-CNN · COCO 2017APb: 38.9 -> 39.0Helped
Use SHViT-S4 instead of FastViT-SA12Mask R-CNN · COCO 2017APm: 35.9 -> 35.9No clear effect
Replace single-head attention with MHSA (ablation)SHViT-S3 · ImageNet-1KTop-1 accuracy: 77.7 -> 77.4Helped
Replace single-head attention with MHSA (ablation)SHViT-S3 · ImageNet-1KGPU throughput: 20522 -> 18036Hurt
Add self-attention (ablation)SHViT-S3 without self-attention · ImageNet-1KTop-1 accuracy: 76.3 -> 77.4Helped
Set SHSA partial ratio to 1/8 instead of 1 / 4.67 (ablation)SHViT-S3 · ImageNet-1KTop-1 accuracy: 77.4 -> 77.1Hurt
Set SHSA partial ratio to 1/2 instead of 1 / 4.67 (ablation)SHViT-S3 · ImageNet-1KTop-1 accuracy: 77.4 -> 77.5Helped

Surprising findings

Limitations

Experimental setup

Datasets: ImageNet-1K MS COCO 2017

Benchmarks: ImageNet-1K MS COCO 2017

Metrics: top-1 accuracy top-5 accuracy throughput (images/s) latency (ms) AP APmask FLOPs

Baselines: MobileViTv2 EfficientViT-M4 FastViT EfficientFormer MobileOne EfficientNet FasterNet PoolFormer EdgeViT MobileNetV3

Builds on: MetaFormer EfficientViT DeiT Swin Transformer MobileViTv2

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