atlas

Research map / Architectures and efficiency / Attention and transformers

You Only Need Less Attention at Each Stage in Vision Transformers

CVPR 2024 · Architectures and efficiency › Attention and transformers · approach: Vision transformer design · 21 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 LaViT, a hierarchical ViT that computes full self-attention only in the first few layers of each stage and derives later-layer attention by linearly transforming stored attention maps, with residual attention downsampling and a diagonality-preserving loss.

Problem

Self-attention in ViTs has quadratic cost in token count, and deep ViTs suffer from attention saturation where attention maps change little across layers.

Approach

Compute vanilla attention only in the initial layers of each stage, then simulate attention in later Less-Attention layers via learned linear transforms (with a transpose) of stored attention matrices; add residual attention across stage downsampling via DWConv and 1x1 conv, and regularize with a diagonality-preserving loss.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use LaViT instead of the strongest listed tiny baselineLaViT-T · ImageNet-1KTop-1 accuracy: 78.7 -> 79.2Helped
Use LaViT instead of DeepViT-SLaViT-S · ImageNet-1KTop-1 accuracy: 82.3 -> 82.6Helped
Use LaViT instead of Swin-BLaViT-B · ImageNet-1KTop-1 accuracy: 83.4 -> 83.1Hurt
Use LaViT-T instead of Swin-TLaViT-T with RetinaNet · COCO2017, RetinaNet 1×box AP: 41.5 -> 46.2Helped
Use LaViT-S instead of Swin-SLaViT-S with RetinaNet · COCO2017, RetinaNet 3× + MSbox AP: 46.3 -> 48.9Helped
Use LaViT-S instead of Swin-TLaViT-S with Semantic FPN · ADE20K, Semantic FPN 80kmIoU: 41.5 -> 44.1Helped
Use LaViT-S instead of Focal-TLaViT-S with UperNet · ADE20K, UperNet 160kmIoU: 45.8 -> 47.2Helped
Add the Less-Attention moduleViT · ImageNet-1KTop-1 accuracy: +1.0Helped
Add the Less-Attention modulePVT · ImageNet-1KTop-1 accuracy: +0.8Helped
Replace Less-Attention layers with MHSA (ablation)LaViT · ImageNet-1KTop-1 accuracy: 79.2 -> 78.7; 82.6 -> 82.0Hurt
Add the Attention-Residual module (ablation)LaViT · ImageNet-1KTop-1 accuracy: 79.0 -> 79.2; 82.2 -> 82.6Helped
Add Diagonality Preserving loss (ablation)LaViT · ImageNet-1KTop-1 accuracy: 59.1(↓20.1) -> 79.2; 57.1(↓25.5) -> 82.6Helped

Surprising findings

Limitations

Experimental setup

Datasets: ImageNet-1K COCO2017 ADE20K

Benchmarks: ImageNet-1K COCO2017 ADE20K

Metrics: Top-1 accuracy FLOPs throughput box AP mIoU cosine similarity of attention maps

Baselines: ResNet RegNet EfficientNet DeiT PVT PVTv2 DynamicViT EViT LiT PPT Swin Transformer EfficientViT

Builds on: PVT DeiT ResNet DeepViT

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