The AI Reader.
The Evidence

The Vision Transformer lost to a plain CNN until it was fed 300 million images

Dosovitskiy and his coauthors pinned the reversal to Google's private 303-million-image set, and a qualifier in their own introduction named the missing ingredient a later model supplied on ImageNet alone.

Why this matters

Many of the systems that now let a computer label a photo, from image search to the vision half of a multimodal assistant, use a Vision Transformer at their core. The idea comes from one 2020 paper that asked whether the network powering language models could read pictures too. Its answer came with a famous condition, that you need enormous amounts of data, and that condition now gets cited as a hard law of the architecture. This lesson reads what the paper actually measured: what it did to an image, and the accuracy numbers it reported with the scale of data behind them. It then asks why the condition it attached was a fact about its 2020 training recipe rather than a permanent property of Transformers. Read it and the headline number stops being a slogan: you can see how large a foundation sits under it, and where the common way of citing it claims more than the paper proved.

Background optional reading
01
A chatbot slices your photo into a few hundred squares and turns each into a word: how a picture is cut into patches and each patch becomes a vector, the step this paper reused.
02
The paper credited with starting the LLM era never trained a language model: the Transformer this one pointed at images.
03
Self-attention can't tell "dog bites man" from "man bites dog": why a Transformer needs a separate signal for where each piece of input sat.

A Transformer built for sentences, pointed at pictures

In 2020 a team led by Alexey Dosovitskiy at Google Brain took the Transformer, the network built to read a sentence as a sequence of words, and pointed it at images with almost nothing changed.1 The trick was to make a picture look like a sentence. They cut each image into a grid of fixed squares, sixteen pixels on a side, and turned every square into a vector, the way a language model turns a word into one. How a photo becomes a row of vectors like that is its own lesson, as is the position information that tells the model where each square sat and the self-attention the encoder runs over them. The paper is remembered for none of that. It is remembered for the accuracy it reached and the amount of data it took to get there.

The design choice that made this work is also what put the paper at risk. A 224-pixel image becomes 196 patches, a short and coarse description of a photo, and the model has no idea in advance that two patches sitting next to each other are related.1 A convolutional network, the kind that had won every image contest for eight years, is built to know exactly that. The paper's own summary of what it found is two clauses. Trained on a mid-size set such as ImageNet "without strong regularization," the model lands "a few percentage points below ResNets of comparable size." Feed it far more data, and "the picture changes."1 The first of those two clauses turned out to matter more than the citation history remembers.

What a convolution assumes, and a Transformer does not

To see why more data reversed the ordering, start with what a convolutional network knows before it sees a single image. Its arithmetic slides the same small filter across every position, so it assumes two things about pictures without being told. A useful pattern is local: nearby pixels belong together. And a pattern means the same thing wherever it appears, so a cat in the corner and a cat in the center are read the same way. Assumptions built into the shape of a model like that, rather than learned from examples, are its inductive bias. They happen to be true of photographs, which is why convolutions worked so well for so long.

A Transformer reading patches has almost none of that inductive bias. Every patch can attend to every other patch from the first layer, with no built-in sense that neighbors matter more or that a shape keeps its meaning when it moves. Even the position of each patch is not known in advance; the model learns it from a table of position vectors. So the Vision Transformer has to discover from data the regularities a convolution is born with. The paper compresses its whole result into one line: "large scale training trumps inductive bias."1 With little data, the convolution's free assumptions win. With enough data, the Transformer learns assumptions of its own that are better than the ones a convolution is stuck with.

How far the picture changes

"Enough data," in this paper, means a very large jump in scale. The mid-size end is ImageNet itself: roughly 1.3 million labeled photos across 1,000 categories, the set that had defined the field's leaderboard for years.1 The large end is JFT, a Google-internal collection the paper describes as 303 million high-resolution images across 18,000 classes.1 JFT is private, so no one outside Google can rerun the exact experiment. The paper that first put it in the literature, by Chen Sun and colleagues, describes its own snapshot slightly differently, as around 300 million images carrying more than 375 million noisy labels.2 Two papers, two snapshots of the same internal collection; keep the figures with their owners. The large set is more than two hundred times the size of the one the field had been training on.

1.3MImageNet photos (mid-size)
303MJFT images (large-scale)

Across that range the ordering flips, and the cleanest way to see it is to hold one model fixed while only its pretraining set changes. ViT-L/16, the "Large" configuration with sixteen-pixel patches, pretrained on the public 14-million-image ImageNet-21k, reaches 85.30% top-1 accuracy on ImageNet.1 The same architecture pretrained on JFT reaches 87.76%.1 Same model, same test; the only change is the size of what it saw first, and it buys 2.46 points. The largest model, ViT-H/14, pretrained on JFT, reaches 88.55%.1 The convolutional baseline the paper measured against is BiT-L, a ResNet-152 with every layer widened fourfold, pretrained on the same JFT set, at 87.54%.3 At JFT scale the Vision Transformer edges the best convolutional network. On ImageNet alone, as the paper's own sentence conceded, it would have trailed it.

ImageNet top-1 accuracy by model and pretraining set. Holding ViT-L/16 fixed, the jump from the public 14-million-image set to JFT is worth 2.46 points; at JFT scale ViT-H/14 edges the BiT-L convolutional baseline. ViT rows from the ViT paper;1 BiT-L from Big Transfer.3
model pretraining set ImageNet top-1
ViT-L/16 ImageNet-21k (14M images) 85.30%
ViT-L/16 JFT (303M images) 87.76%
ViT-H/14 JFT (303M images) 88.55%
BiT-L JFT (303M images) 87.54%

The paper made a second claim the data story tends to drop. ViT reached these numbers "while requiring substantially fewer computational resources to train" than the convolutional baselines it beat.1 The headline was never only about how many images the model needed. It was also about how cheaply, once it had them, it turned them into accuracy.

The condition was the recipe, not the architecture

Read quickly, the finding hardened into a slogan: Vision Transformers need JFT-scale data. A peer-reviewed survey of vision Transformers, published in 2022, states the requirement as settled, that "pre-training ViT on a medium-range dataset would not give competitive results."4 That a survey could still state it that flatly in 2022, two years on, shows how durable the reading became. The word doing the damage is "need." A need sounds like a property of the architecture, something true of Transformers as such. What the paper showed was narrower, and it said so in the clause most citations drop. Its comparison was to ImageNet "without strong regularization," meaning without the aggressive data augmentation and training tricks that squeeze more accuracy out of a small set.

The paper's own qualifier
"When trained on mid-sized datasets such as ImageNet without strong regularization, these models yield modest accuracies of a few percentage points below ResNets of comparable size."1 Dosovitskiy et al., Introduction

Within a year another team supplied that missing regularization. Hugo Touvron and colleagues at Facebook AI trained the same Vision Transformer architecture on ImageNet alone, with no JFT and no other outside data, using heavy augmentation. Their reference model reaches 83.1% top-1, trained on a single eight-GPU machine in a few days, before any of the further gains they get by distilling from a convolutional teacher.5 The JFT-scale set was not a requirement of the architecture. It was one way to buy what strong regularization could also buy. The ViT authors had named the gap, and DeiT filled it.

The other half of the slogan, that Transformers had beaten convolutions, did not survive the next idea either. Zhuang Liu and colleagues took a plain ResNet and modernized it, adopting the Transformer era's training schedule and design choices one at a time. The result, ConvNeXt, matched or beat the Swin Transformer, the leading vision Transformer of the moment, at every model size on ImageNet, and reached 87.8% with public ImageNet-22k pretraining.6 The 2020 gap was never convolution against attention in the abstract. It closed as soon as each side adopted the other's methods. The architecture itself kept spreading regardless: the vision half of CLIP is a Vision Transformer, trained on image-caption pairs rather than labels at all.

The takeaway

The Vision Transformer paper made a real and surprising finding. A network built for sentences, fed images as patches, could match the best convolutional networks. But in 2020 it could do so only after pretraining on hundreds of millions of images, because it had to learn from data the assumptions a convolution gets for free. That much holds. What the citation history added is a word the paper did not, that Transformers "need" data at that scale. They do not. The paper's own introduction flagged that its comparison ran without strong regularization, and within a year DeiT supplied the regularization and reached 83.1% on ImageNet alone. A modernized convolutional network then caught the Transformers at equal data. The honest reading keeps two facts the slogan collapses into one. The 2020 result was true. And the barrier it measured was the training recipe the authors themselves had named, not a property of the architecture.

Go deeper optional reading
01
Training data-efficient image transformers & distillation through attention: the DeiT paper, which trained the same architecture to 83.1% on ImageNet alone.
02
A ConvNet for the 2020s: how a modernized pure convolutional network caught back up to the Transformers at equal data.

Sources

  1. arXiv · Dosovitskiy et al., “An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale” (ICLR 2021)
  2. arXiv · Sun, Shrivastava, Singh & Gupta, “Revisiting Unreasonable Effectiveness of Data in Deep Learning Era” (ICCV 2017)
  3. arXiv · Kolesnikov et al., “Big Transfer (BiT): General Visual Representation Learning” (ECCV 2020)
  4. arXiv · Khan et al., “Transformers in Vision: A Survey” (ACM Computing Surveys, 2022)
  5. arXiv · Touvron et al., “Training data-efficient image transformers & distillation through attention” (ICML 2021)
  6. arXiv · Liu et al., “A ConvNet for the 2020s” (CVPR 2022)