Papers · 2020 · Reading: 23 min, plus 3 in closed details · +4h 40m of resources.
Paper · ICLR 2021 · arXiv 2010.11929

An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale (ViT)

Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, Jakob Uszkoreit, Neil Houlsby
Google Research, Brain Team · October 2020 (arXiv v1 22 October 2020; v2 June 2021)

In one line: Split images into 16x16 patches and feed them to a vanilla Transformer; pre-trained on 300M JFT images, ViT-H/14 beats BiT-L on every benchmark and edges Noisy Student on ImageNet (88.55 vs 88.5) with about 4x less pre-training compute, while CNNs still win on smaller pre-training sets: at scale, data outweighs convolutional inductive bias.

88.55% ImageNet top-1
ViT-H/14 pre-trained on JFT-300M
also 90.72% ReaL, 94.55% CIFAR-100, 77.63% VTAB · Table 2
2.5k TPUv3-core-days
to pre-train ViT-H/14
against 9.9k for BiT-L and 12.3k for Noisy Student · Table 2
-1.4 to +3.0 points
ViT-L/16 minus ViT-B/16 on ImageNet
pre-trained on ImageNet, then on JFT-300M: the bigger model only wins with more data · Table 5

Verdict: Believe the architecture and the direction: a plain Transformer on patches, pre-trained on enough data, matches or beats the 2020 CNNs, and every later vision tower is built this way. Treat "data trumps inductive bias" and the compute savings as tied to the 2020 training recipes: better recipes later trained ViTs well on ImageNet alone, and CNNs trained at the same scale match them. How much of this to believe

The idea in one sentence

Cut the image into 16 × 16 patches, turn each patch into a token with one linear map, add a learned position and a class token, and run an unmodified Transformer encoder: with none of a CNN's built-in locality it loses on 1.3M training images and wins on 303M, at a quarter of the best CNN's pre-training compute.

An image becomes a sentence of patch tokens, and the class is read off one extra token. The paper's Figure 1 in 3D, run by this page's trained toy ViT (Run a ViT) on one 28 × 28 image (4 × 4 px patches, 49 tokens); drag it to turn it.

  1. The image. One grey image from the toy task, 784 numbers: three outline shapes, two of the same kind, and the model must name the kind that appears twice. ViT-B/16's input is a 224 × 224 colour image.
  2. Cut into patches, in raster order. 28 · 28 / 4² = 49 patches of 4 × 4 pixels lift off into a row: the image is now a sentence of 49 words. Cutting it, and the position embeddings, are the only places its 2D layout enters.
  3. One matrix makes every patch a token. Patch 25 (the one with the most ink) flattens to 16 pixel values; one shared learned matrix E, the glass plate, maps them to a token of width D = 32 (bars above the plinth are positive numbers, bars hanging below negative). The same E serves all 49 patches.
  4. A class token and a position on every slot. A learned class token is put in front as token 0, and a learned position embedding is added to every token: 50 tokens of width 32, z0 of Eq. 1, enter the encoder.
  5. Four layers of attention. Every token attends to every other, in every layer. Each row is one layer; each bar is how much the class token attends to that patch (heads averaged), and the dots stream into the class token in proportion. Nothing limits its reach: from layer 1 any patch can count.
  6. The head reads the class token. Its final state y = LN(z40) goes through the head to five probabilities, one per kind: here the right kind.

After the paper's Figure 1, redrawn (the arXiv paper is not CC BY, so no copy of the original). Token 0 is the learned class token; 1 to 49 are the patch tokens, numbered by position. Every bar is the shipped toy model's own number. ViT-B/16 does the same to a 224 × 224 image: 196 patches of 16 × 16 × 3 = 768 numbers, 197 tokens of width 768, 12 layers. Every step is Eq. 1 to 4 in Method; the same pipeline at CLIP B/32's real shapes is drawn on Vision encoders, which owns patch embeddings.

You need the Transformer encoder (The Transformer from zero); this page adds only what is different for images. Vision towers as they are built today are taught on Vision encoders: ViT, CLIP and SigLIP.

New terms. Patch embedding: one shared matrix E that maps a flattened patch to a token. Class token: a learned extra token whose output is the image representation. Inductive bias: an assumption built into the architecture (a CNN's locality) rather than learned. JFT-300M: Google's private set of 303M labelled images. BiT: Big Transfer, the ResNet baseline. Few-shot linear accuracy: a closed-form linear probe on frozen features. TPUv3-core-days: compute as cores times days.

Problem

§1 Introduction, §2 Related work

By 2020 the Transformer was the default architecture in NLP, usually pre-trained on a large corpus and then fine-tuned, with models past 100B parameters and no sign of saturating (§1). Vision was still ruled by convolutional networks: ResNet-like models held the state of the art in large-scale image recognition (§1).

Earlier attempts to bring self-attention to images either kept the CNN skeleton and added or swapped in attention blocks, or replaced convolutions with specialised attention patterns (local neighbourhoods, sparse approximations, blocks, one axis at a time) that "require complex engineering to be implemented efficiently on hardware accelerators" and so had not been scaled (§2). Plain global attention over pixels is quadratic in the pixel count: a 224 × 224 image is 50,176 pixels, about 2.5 billion pairs per layer and head.

The question: can a plain, unmodified Transformer, with almost no image-specific inductive bias, compete with the best CNNs, and under what conditions?

ViT cuts a 224 × 224 image into 16 × 16 patches and treats each patch as one token. How long is the sequence the Transformer sees?

Idea

§3 Method

Turn the image into a sequence of tokens and run a completely standard Transformer encoder on it. "In model design we follow the original Transformer as closely as possible", so that scalable NLP architectures and their efficient implementations can be used almost out of the box (§3). Image patches are treated the same way as words: split the image into fixed-size patches, embed each linearly, add position embeddings, prepend a learnable classification token, and feed the sequence to the encoder (Figure 1). The model is trained to classify images, supervised.

The bet is about data, not architecture. Without the CNN's built-in assumptions the authors expect, and find, worse results on mid-sized datasets such as ImageNet; with 14M to 300M images "large scale training trumps inductive bias" (§1).

Method: from pixels to a class

§3.1, Eq. 1 to 4

An image x ∈ ℝH×W×C becomes N = HW/P² flattened P × P patches of P²·C numbers each; N is the sequence length, and P is 16 or 32 (14 for ViT-H). One trainable linear projection E maps each patch to the model width D, constant through all layers: the patch embeddings (§3.1, §4.1).

z0 = [xclass; xp1E; xp2E; …; xpNE] + Epos,   E ∈ ℝ(P²·C)×D, Epos ∈ ℝ(N+1)×D
z′ℓ = MSA(LN(zℓ−1)) + zℓ−1,   zℓ = MLP(LN(z′ℓ)) + z′ℓ,   ℓ = 1 … L
y = LN(zL0)
Equations 1 to 4 (Eq. 1, Eq. 2, Eq. 3, Eq. 4). MSA is standard multi-head qkv self-attention, softmax(qk⊤/√Dh)v per head with Dh = D/k for k heads, outputs concatenated and projected (Appendix A, Eq. 5 to 8); nothing in it is specific to images (the mechanism and its variants are on Attention variants).
  • Class token. As with BERT's [class] token, a learnable embedding z00 = xclass is prepended; its state at the encoder output, zL0, is the image representation y. A classification head sits on it: an MLP with one hidden layer during pre-training, a single linear layer during fine-tuning (§3.1). The hidden layer uses tanh (App. D.3).
  • Encoder. Alternating multi-head self-attention and MLP blocks; LayerNorm before every block (pre-LN) and a residual connection after every block; the MLP has two layers with a GELU (§3.1).
  • Sizes. Taken from BERT: ViT-Base (12 layers, D = 768, MLP 3072, 12 heads, 86M parameters) and ViT-Large (24, 1024, 4096, 16 heads, 307M), plus a new ViT-Huge (32, 1280, 5120, 16 heads, 632M). ViT-L/16 means Large with 16 × 16 patches (Table 1). The parameter counts are recounted from Eq. 1 to 4 in the tables tab.
  • Hybrid. The patches can instead come from a CNN feature map, here a ResNet50's, with 1 × 1 patches: flatten the map and project it to D (§3.1, §4.1).

Figure 1 at the top runs these four equations on the toy image, step by step.

Inductive bias, made explicit

§3.1, Inductive bias; §3.2

CNNs build three assumptions into every layer: locality, two-dimensional neighbourhood structure and translation equivariance. In ViT only the MLP layers are local and translation-equivariant (they act on each token separately); self-attention is global from layer one (§3.1).

The image's 2D structure enters at exactly two points: cutting it into patches, and adjusting the position embeddings to a new resolution at fine-tuning. The position embeddings start with no information about where patches are, so every spatial relation is learned from scratch (§3.1, §3.2): the network must learn from examples what a CNN is handed for free.

The stage runs one image of this page's toy task through the trained toy ViT, with the class token's real attention at each layer, then through the toy ResNet, whose view grows one small square at a time (both models are described in Run a ViT). Same 28 × 28 image, the toy models' real sizes.

  1. Patches become tokens. The image lies on the floor, cut into its 7 × 7 grid of 4 × 4 px patches; each becomes a token and the class token joins them. Before any attention, a patch token holds only its own 4 × 4 pixels.
  2. Layer 1: the whole image at once. The class token attends to all 49 patches in one step; the bars are its attention, heads averaged, from the shipped weights. Its reach, the dashed lines, already covers every pixel: after one layer, any pixel can influence the decision.
  3. Layer 2. Every token has already mixed with every other, and the class token gathers again.
  4. Layer 3. The class token's attention at layer 3, from the trained weights.
  5. Layer 4, the last. The class token's state z40 is now the image representation.
  6. Classify. y = LN(z40) goes through the linear head: the probabilities for the five kinds.

ViT: 4 × 4 patches (49 tokens plus the class token), D = 32, 4 layers, 4 heads; the bars are the class token's attention averaged over heads, from the shipped weights. ResNet: a BiT-style network (GroupNorm) with a stride-2 3 × 3 stem and three residual blocks; the square is the theoretical receptive field of one output position, computed from kernel sizes and strides. Multiply-adds are counted by formula.

Fine-tuning at a higher resolution

Pre-train on large data, then remove the pre-trained head and attach a zero-initialised D × K layer for the K downstream classes (§3.2). Fine-tuning at a higher resolution than pre-training helps; keep the patch size fixed, so the sequence gets longer (ViT-L/16 goes from 196 patches at 224 px to 576 at 384 and 1,024 at 512), and 2D-interpolate the pre-trained position embeddings to the new grid according to their location in the original image. This is now standard practice; how today's libraries resize the table is on Vision encoders.

Which head is replaced, in the appendix

In the appendix, the whole two-layer head is replaced on transfer, which "we found to be a little more robust than simply re-initializing the very last layer" (App. B.1.1).

Position embeddings

§3.1, App. D.4, Table 8, Figure 7

ViT uses standard learnable 1D position embeddings, one vector per position in raster order (§3.1). The ablation on ViT-B/16 (Table 8) compared no position information (a bag of patches), 1D, 2D (separate X and Y halves) and relative embeddings (an attention bias from the query-key offset), added at the stem or at every layer. No positions costs 2.82 points of 5-shot accuracy; every other variant lands within 0.33 points of the rest, because at patch level the grid is small (14 × 14, not 224 × 224) and any encoding learns it easily (App. D.4). The learned 1D embeddings recover the 2D grid on their own: nearby patches, and patches in the same row or column, get similar embeddings, sometimes with a sinusoidal pattern on larger grids, and the exact pattern depends on the hyperparameters (Figure 7, centre, Figure 10).

Remove the position embeddings entirely, so the model sees an unordered bag of patches. On ViT-B/16 in the paper, how much accuracy does that cost?

Try: this is the toy ViT's own learned table, one tile per patch (7 × 7 grid); each tile shows that patch's cosine similarity to every other patch. Click a tile to enlarge it. Switch to the model trained on 2,000 images to compare.

Cosine similarity of the 49 patch position embeddings of the shipped weights (6-bit quantised; the float weights give the same grid score to within 0.002, pos_check.py). "Grid score" is the correlation, over all patch pairs, between embedding similarity and minus the distance between the two patches on the grid: 1 would mean similarity falls exactly with distance.

Training and evaluation

§4.1, App. B

Three pre-training sets of growing size, ImageNet (1.3M images), ImageNet-21k (14M) and JFT-300M (303M); BiT ResNets as baselines, trained with the same Adam recipe as the ViTs; fine-tuning with SGD at 384 px; results as fine-tuning accuracy or few-shot linear accuracy, compute in TPUv3-core-days (§4.1).

The full setup: datasets, baselines, both recipes, metrics
  • Data: pre-training on ImageNet (1k classes, 1.3M images), ImageNet-21k (21k classes, 14M) or Google's in-house JFT-300M (18k classes, 303M), de-duplicated against the test sets; transfer to ImageNet (original and cleaned ReaL labels), CIFAR-10/100, Oxford-IIIT Pets, Oxford Flowers-102 and the 19-task VTAB suite (1,000 examples per task; Natural, Specialized, Structured) (§4.1).
  • Baselines: "ResNet (BiT)", ResNets with Group Normalization and standardised convolutions, which transfer better (§4.1).
  • Pre-training: every model, ResNets included, uses Adam (β1 0.9, β2 0.999), batch 4096, weight decay 0.1, linear warmup and decay, 224 px (§4.1, Table 3); Adam beat SGD for the ResNets too (Table 7). Strong regularisation was key from scratch on ImageNet (App. B.1).
  • Fine-tuning: SGD with momentum, batch 512, cosine decay, no weight decay, gradient clipping at norm 1, 384 px unless stated (Table 4); for Table 2's ImageNet numbers 512 px (ViT-L/16) and 518 px (ViT-H/14) with Polyak averaging, factor 0.9999 (§4.1).
  • Metrics: fine-tuning accuracy, or few-shot linear accuracy (closed-form regularised least squares from frozen features to {−1, 1}K targets) for quick checks. Compute is in TPUv3-core-days: cores (2 per chip) times days (§4.1, §4.2).

Results: against the state of the art

§4.2, Table 2, Figure 2

The largest models, pre-trained on JFT-300M, are compared with the two best CNN results of the time (§4.2): BiT-L (Big Transfer, a ResNet152x4 also pre-trained on JFT-300M) and Noisy Student (an EfficientNet-L2 trained semi-supervised on ImageNet plus unlabelled JFT-300M), then state of the art on ImageNet and on the other datasets respectively. Accuracies are means and standard deviations over three fine-tuning runs (Table 2).

  • ViT-H/14 on JFT-300M: 88.55% ImageNet top-1, 90.72% ImageNet-ReaL, 99.50% CIFAR-10, 94.55% CIFAR-100, 97.56% Pets, 99.68% Flowers, 77.63% on the 19 VTAB tasks: best or matching on every column except Flowers, where ViT-L/16 has 99.74% (Table 2).
  • Compute: ViT-H/14 pre-trained in 2.5k TPUv3-core-days, against 9.9k for BiT-L and 12.3k for Noisy Student; that is 3.96 and 4.92 times less. ViT-L/16 on JFT needed 0.68k, 14.6 times less than BiT-L (Table 2). The paper notes that pre-training efficiency also depends on the schedule, optimiser and weight decay, and points to the controlled study in §4.4 (§4.2).
  • ViT-L/16 against BiT-L: the paper says it "outperforms BiT-L ... on all tasks". In the table it is ahead on five of seven, level on ImageNet-ReaL (90.54 against 90.54) and 0.01 behind on VTAB (76.28 ± 0.46 against 76.29 ± 1.70). See How much of this to believe.
  • Public data only: ViT-L/16 pre-trained on ImageNet-21k reaches 85.30% on ImageNet and "could be trained using a standard cloud TPUv3 with 8 cores in approximately 30 days" (8 × 30 = 240 core-days, the table's 0.23k) (§4.2).
VTAB by task group, and ObjectNet
  • VTAB by group: ViT-H/14 beats BiT, VIVI and S4L on Natural and Structured tasks and is level on Specialized (Figure 2); on ObjectNet it gets 61.7% top-1 (App. D.9).

Every Table 2 column, with the gaps in units of the runs' standard deviation, is in the tables tab.

ViT-H/14 is ahead of BiT-L on all seven benchmarks, by 0.05 to 1.34 points, after a quarter of the pre-training compute

Bars: ViT-H/14 (JFT-300M) minus BiT-L; rings: ViT-L/16 (JFT-300M) minus BiT-L, level on ReaL and 0.01 behind on VTAB. Table 2 as printed; compute from its last row.

The real contribution: how much data

§4.3, Figures 3 and 4, Table 5

With fewer built-in assumptions than a ResNet, how much data does ViT need? Two experiments answer it (§4.3).

  1. Bigger pre-training sets, then fine-tune (Figure 3, numbers in Table 5), with weight decay, dropout and label smoothing tuned for the small sets. Pre-trained on ImageNet, ViT-Large is worse than ViT-Base; on ImageNet-21k they are similar; only on JFT-300M does the larger model pay off. BiT ResNets beat ViT pre-trained on ImageNet; ViT overtakes on the larger sets (§4.3).
  2. Random JFT subsets of 9M, 30M, 90M and the full 303M, same hyperparameters for every size and no extra regularisation, early-stopped, scored by few-shot linear accuracy (Figure 4). ViTs overfit more than ResNets of similar cost on small subsets: ViT-B/32 (slightly faster than ResNet50) is much worse on 9M but better from 90M up, and likewise ViT-L/16 against ResNet152x2. ResNets do better with little data but plateau sooner.

The authors' conclusion: "the convolutional inductive bias is useful for smaller datasets, but for larger ones, learning the relevant patterns directly from data is sufficient, even beneficial" (§4.3). The paper gives no table for Figure 4, so where between 9M and 90M the curves cross is only readable off the plot.

Both pre-trained on ImageNet alone (1.3M images) and then fine-tuned on ImageNet: which gets the higher accuracy, ViT-B/16 (86M parameters) or ViT-L/16 (307M)?

The same experiment at toy scale

The toy ViT and a ResNet of the same size and cost (53,221 and 56,005 parameters; 3.1M and 3.4M multiply-adds per image), trained on 500 to 64,000 toy images with identical hyperparameters and steps, early-stopped, as in the JFT-subset experiment; accuracy on 5,000 held-out images.

One training run per point (seed 0): the differences between points are not error-barred. 2,000 steps of batch 128 for every size, so 500 images are seen 512 times each and 64,000 images 4 times. "Train" accuracy is on the first 2,000 training images (all of them for 500). Training curves for every run are in the Run a ViT tab.

Results: performance against compute

§4.4, Figure 5, Table 6

A controlled scaling study on JFT-300M, where data does not limit the models: 7 ResNets, 6 ViTs and 5 hybrids, pre-trained for 7 or 14 epochs (all listed in Table 6; for hybrids the number is the ResNet's downsampling, not a patch size), transfer accuracy against pre-training compute (§4.4). Three patterns:

  • ViTs dominate ResNets on the accuracy/compute trade-off: "approximately 2 to 4× less compute to attain the same performance (average over 5 datasets)". Reading Table 6 by interpolation along the ResNets' compute frontier gives 1.8 to 2.3× on ImageNet alone and 2.8 to 6.0× on the five-dataset average, where it can be read at all (the larger ViTs are above every ResNet) (the recount is under the chart below).
  • Hybrids slightly beat pure ViTs at small budgets, but the gap vanishes for larger models, which the authors find "somewhat surprising" (§4.4).
  • ViTs "appear not to saturate within the range tried".
Which dimension to scale, and speed on TPUs (appendix)

In the appendix, depth is the best dimension to scale (gains up to 64 layers, diminishing after 16), width the worst, and smaller patches help without adding parameters, so compute predicts performance better than parameter count (App. D.2). Measured on TPUv3, ViT runs about as fast as similar ResNets and fits larger batches per core (App. D.5).

For the same transfer accuracy, the ResNets need about 2 to 6 times more pre-training compute than the ViTs (Figure 5, redrawn from Table 6) Table 6
How the saving and the compute column are computed

"Average of 5" is ImageNet, CIFAR-10, CIFAR-100, Pets and Flowers. Compute saving: for each ViT, the ResNet compute that would reach the same accuracy, read along the ResNets' best-so-far frontier by interpolating linearly in log compute, divided by the ViT's compute. Defaults reproduce the exaFLOPs column independently, by 3 × forward FLOPs (2 per multiply-add, attention included) × 303M images × epochs: .

Inside the model

§4.5, Figures 6 and 7, App. D.7 and D.8
  • Patch filters of ViT-L/32's E look like basis functions for fine structure within a patch (Figure 7, left).
  • Attention distance, the analogue of a CNN's receptive field: some heads attend across most of the image already in the lowest layers, others stay local (less so in hybrids, so they may do the job of early convolutions), and distance grows with depth (Figure 7, right, App. D.7).
  • Attention maps from the output token, by attention rollout (heads averaged, multiplied through the layers), land on the regions that matter for the class (Figure 6, App. D.8).

Try: the toy ViT's own version of Figure 7 (right), measured in your browser on 100 held-out images. Each dot is one head at one layer.

Attention distance: for each patch query, the distance in pixels between patch centres, weighted by the attention weight, averaged over queries and images (the paper weights pixel distances; with 4 × 4 patches the difference is small). The class token is left out as query and key. Image width is 28 px.

A first try at self-supervision

§4.6, App. B.1.2

Much of the Transformer's success in NLP comes from self-supervised pre-training, so the authors tried a masked patch prediction objective, mimicking BERT (§4.6): corrupt 50% of patch embeddings (80% replaced by a learnable [mask] embedding, 10% by another patch, 10% kept) and predict the 3-bit mean colour (512 colours) of each corrupted patch (App. B.1.2). With it, ViT-B/16 reaches 79.9% on ImageNet: about 2 points above training from scratch (Table 5's 77.91%) and about 4 behind supervised pre-training (83.97% from ImageNet-21k, 84.15% from JFT). Contrastive pre-training was left to future work.

Other targets and budgets tried (App. B.1.2)

Other targets worked about as well; returns diminished after 100k steps, and ImageNet pre-training gave similar gains (App. B.1.2).

The conclusion lists three challenges: apply ViT to detection and segmentation, keep exploring self-supervised pre-training, and scale further (§5).

Why it matters (beyond the paper)

This is the paper that ended CNN dominance in vision at scale. Its lesson: hand-designed inductive bias stands in for data, and with enough data and compute a generic architecture that learns the structure catches up, which put vision on NLP's scaling playbook and one architecture under both. Each later claim has its own source; what each line of work does now is taught on the page that owns it.

  • The eyes of multimodal models. CLIP (400 million image-text pairs, ViTs among its image encoders, CLIP) and SigLIP (a pairwise sigmoid loss, SigLIP) train ViT image towers against text, and vision-language models attach such a tower to an LLM: LLaVA uses "the pre-trained CLIP visual encoder ViT-L/14" (LLaVA). How these towers are trained and used: Vision encoders.
  • Self-supervised vision. The masked patch prediction tried in §4.6 was made to work by BEiT (masked image modelling with visual tokens, BEiT) and MAE (mask 75% of patches and reconstruct pixels; a vanilla ViT-Huge reaches 87.8% using only ImageNet-1K data, MAE); DINO and DINOv2 built self-distillation on ViT backbones. Taught on Contrastive and self-supervised learning.
  • Diffusion. The Diffusion Transformer (DiT) replaced the U-Net of latent diffusion with a transformer on latent patches, reaching FID 2.27 on class-conditional ImageNet 256 × 256 (DiT). Taught on Latent diffusion and diffusion transformers.
  • Practice. Patchify-then-Transformer became the default for grid-shaped inputs (video, audio spectrograms), and the fine-tuning trick of §3.2, a higher resolution with interpolated position embeddings, is still standard; NaViT goes further and packs patches at native resolution and aspect ratio (NaViT). What changed since is in Then and now.
Follow-up details, as checked on 2 October 2026
  • ALIGN, often listed with CLIP and SigLIP, uses an EfficientNet, not a ViT (ALIGN, §4).
  • Qwen-VL uses a ViT initialised from OpenCLIP's ViT-bigG (Qwen-VL); InternVL a 6-billion-parameter InternViT (InternVL). For Gemini-class closed models the vision encoder is not described in enough detail to say (unconfirmed).
  • DINOv2 trains a 1B-parameter ViT (DINO, DINOv2).
  • Stable Diffusion 3 uses a transformer-based rectified-flow architecture with separate weights for text and image tokens (SD3). OpenAI describes Sora as a diffusion transformer on spacetime patches (OpenAI's report; not re-checked here, the page blocks scripted fetches); for Flux there is no paper (unconfirmed).
  • Video: ViViT turns clips into spatio-temporal tokens (ViViT); audio: AST patchifies spectrograms (AST).

Connections

How much of this to believe

What holds up.

  • The headline gaps are far outside the noise. Over three fine-tuning runs, ViT-H/14 leads BiT-L by 1.01 points on ImageNet (standard deviations 0.04 and 0.02, about 23 combined sd) and 1.04 on CIFAR-100 (11 sd) (Table 2; every gap in the tables tab).
  • Same data, same recipe. BiT-L is also pre-trained on JFT-300M; in §4.4 the ResNets get the ViTs' optimiser, schedule and data, and Adam is checked not to handicap them (Table 7).
  • The compute column reproduces: three times the forward FLOPs times the images seen gives Table 6's exaFLOPs within 2% for every ViT (recount).
  • Later work confirms the architecture: the same design scaled to 2B parameters reached 90.45% (Scaling ViTs), and the vision towers above are ViTs. The authors also flag that schedule, optimiser and weight decay affect the compute comparison (§4.2), which counts in their favour.

What to discount.

  • One pre-training run per model. Error bars cover fine-tuning only; Tables 5 and 6, Figure 4 and the scaling study have none, and some differences the text leans on are small (ViT-L/16 over BiT-L on ImageNet: 0.22 points).
  • "ViT-L/16 outperforms BiT-L on all tasks" does not match the table: level on ReaL (90.54 each), 0.01 behind on VTAB, within BiT-L's ± 1.70 (Table 2).
  • Table 2's core-days are not like for like: different papers' schedules and recipes. Only §4.4 holds the recipe fixed, and there the ResNets train 7 epochs, not BiT's 30 (App. D.1); the "2 to 4×" is a five-dataset average, 1.8 to 2.3× on ImageNet alone.
  • "Data trumps inductive bias" leaned on a weak small-data recipe: only weight decay, dropout and label smoothing were tuned (§4.3). Two months later DeiT trained ViT-B on ImageNet alone to 83.1%, against Table 5's 77.91% (DeiT); the authors' AugReg follow-up made ImageNet-21k match JFT-300M (AugReg); plain ViTs pass 76% on ImageNet-1k in 90 epochs with standard augmentation (Beyer et al. 2022).
  • CNNs were not out of the race: ConvNeXt reaches 87.8% (arXiv 2201.03545), and NFNets on JFT-4B "match the reported performance of Vision Transformers with comparable compute budgets", up to 90.4% (Smith et al. 2023).
  • The main dataset is private; the ImageNet-21k result (85.30%) is the reproducible one.
Small inconsistencies in the paper (none changes a conclusion)

Table 5's ViT-H/14 JFT row differs from Table 6's and matches Table 2 on four columns, "Figure 4" is cited for Figure 3, Table 1's 307M recounts to 303.3M (details). None changes a conclusion.

At toy scale on this page the direction reproduces and the crossover does not: . The ResNet has more than the ViT to gain from its built-in bias here (the task is the same wherever the shapes are), and one seed per point says nothing about where large models cross. The learned position embeddings also show far less grid structure than Figure 7 (see Position embeddings).

Verdict

Believe the architecture and the direction: a plain Transformer on patches, pre-trained on enough data, matches or beats the 2020 CNNs, Table 2's gaps are far outside the noise, and every later vision tower is built this way. Treat "large scale training trumps inductive bias" and the 2 to 4× saving as statements about the 2020 recipes: better training later made ViTs work on ImageNet alone, and CNNs trained at the same scale match them. The method is now standard, so Then and now replaces "What it takes to use this".