Vision transformers

Vision transformers · neural · 2020 · images · video

What it is

Split the image into patches, treat each patch as a token, and run a plain transformer encoder over them.

When to use it

Large-scale vision with abundant pretraining data; the backbone of modern multimodal stacks.

Caveats

With little built-in spatial bias, ViTs need large datasets or strong pretraining and augmentation to match CNNs. Attention cost grows quadratically with the number of patches, which makes high resolution expensive, and fixed patches lose fine detail.

Key ideas

  • No convolutional prior, so it needs more data or stronger augmentation
  • Patch size is the effective receptive-field unit

Related architectures

Original paper

An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale (2020, 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