ViT, read beside the paper

The paper and its explanation side by side.

  • Part 1: The Big Idea: An Image Is Worth 16×16 Words

    The title, the abstract and the introduction of the Vision Transformer paper, line by line: what it means to cut a picture into 16×16 patches and read them like words, why convolutional networks ruled computer vision, what inductive bias, locality and translation equivariance are, and the claim that enough data beats built-in assumptions. With a real run of ViT-B/16 and ResNet-50 on the same picture and the quadratic cost of attention worked out by hand.

  • Part 2: Inside ViT: Patches, Embeddings and the Encoder

    Section 2, Figure 1, Section 3.1 and Appendix A, line by line: the earlier attempts to put attention on images, then every step from a 224×224 picture to a class label, with Equations 1 to 8 recomputed by hand on the released ViT-B/16 and matched against the library at every stage, the 86,567,656 parameters counted exactly, and a four-token attention example small enough to check with a pencil.

  • Part 3: Fine-tuning, Higher Resolution and the Setup

    How a pre-trained ViT is adapted to a new task, why it is fine-tuned on bigger pictures, and the full training recipe behind every result. We swap the head, stretch the position embeddings, fine-tune on ten classes and solve the few-shot metric by hand.

  • Part 4: Results: Beating Big CNNs, and How Much Data It Takes

    Sections 4.2 and 4.3 with their tables and appendix: how ViT compares with the best convolutional networks of 2020, and how much pre-training data it needs before it wins. We recompute every table and test seven released models on two of the paper's datasets.