Swin Transformer

Vision transformers · neural · 2021 · images · video

What it is

Windowed attention with shifted windows, so cost stays linear in image size while information crosses windows.

When to use it

Dense prediction tasks — detection, segmentation — where both resolution and global context matter.

Caveats

Shifted windows and relative position bias make it more complex to implement and deploy than a plain ViT. Window size limits global context in the early stages, and plain ViTs with better pretraining have since closed much of the gap.

Key ideas

  • Attention is computed inside local windows, so cost is linear in image size
  • Windows shift between layers to connect neighbouring regions
  • Hierarchical feature maps, like a CNN, suit detection and segmentation

Related architectures

Original paper

Swin Transformer: Hierarchical Vision Transformer using Shifted Windows (2021, arXiv)

Browse all 198 architectures

The architecture landscape, in one place.

Two things get called “ML architecture”: the classical statistical model families, and the neural network wirings. Both are here, tagged by what they are and what data they eat.

Start from your problem

Architectures

0 shortlisted