What it is
The picture becomes a sequence, and each patch's position is a learned vector
Running one photo through the original checkpoint shows every step of that, with the numbers each one produces.

The patch embedding is one matrix multiplication and nothing else, with no convolution and no pooling. The layout inside a patch survives, because every patch is flattened in the same pixel order, so the matrix can learn edge and texture patterns within those 16 by 16 pixels. The paper found its learned filters "resemble plausible basis functions for a low-dimensional representation of the fine structure within each patch". What the embedding can't tell is where a patch sits among the others, for example that patch 92 is directly above patch 106. That arrangement comes from the position vectors added in step two.
Those position vectors are learned, and the paper is explicit that they start out knowing nothing, saying "the position embeddings at initialization time carry no information about the 2D positions of the patches and all spatial relations between the patches have to be learned from scratch". What they look like afterwards is the heatmap: a patch is most similar to itself, then to its neighbours, with a cross along its own row and column. The model worked out the shape of a grid from photographs.
The shuffle in step four shows the model uses that arrangement. Every pixel is still present and only the order of the patches changed, and the answer went from a traffic light at 0.156 to an umbrella at 0.324. The drop shows that the model reads the arrangement of the patches, and a CNN given the same shuffled photo would likely lose its answer too.
Keep reading
The rest of this article is free with an account
Create a free account to read the remaining 6 sections. It takes about twenty seconds and there's nothing to pay. The same account opens the slide decks and CV reviews.
- 02Where Vision Transformers show up
- 03Patches, positions, and heads that behave like convolutions
- 04The checkpoints you'll see, as of September 2026
- 05Choosing, and when a CNN is still the answer
- 06How to try it
- and 1 more
