Skip to main content
QUICK REVIEW

[Paper Review] Better plain ViT baselines for ImageNet-1k

Lucas Beyer, Xiaohua Zhai|arXiv (Cornell University)|May 3, 2022
Advanced Neural Network ApplicationsComputer Science49 citations
TL;DR

A simple ViT baseline for ImageNet-1k with minor, non-novel tweaks achieves competitive performance, reaching 76.5% top-1 at 90 epochs and 80.0% at 300 epochs, on par with ResNet-50 under similar training conditions.

ABSTRACT

It is commonly accepted that the Vision Transformer model requires sophisticated regularization techniques to excel at ImageNet-1k scale data. Surprisingly, we find this is not the case and standard data augmentation is sufficient. This note presents a few minor modifications to the original Vision Transformer (ViT) vanilla training setting that dramatically improve the performance of plain ViT models. Notably, 90 epochs of training surpass 76% top-1 accuracy in under seven hours on a TPUv3-8, similar to the classic ResNet50 baseline, and 300 epochs of training reach 80% in less than one day.

Motivation & Objective

  • Demonstrate that plain ViT can achieve strong ImageNet-1k performance with minimal, standard training tweaks.
  • Identify which small modifications contribute most to performance gains over baseline ViT.
  • Provide a simple, reproducible baseline comparable to ResNet-50 under similar compute.
  • Encourage use of a straightforward ViT setup as a strong reference point for future work.

Proposed method

  • Use ViT-S/16 with the original ViT architecture and standard data augmentations.
  • Train on 99% of ImageNet-1k with 99% split for minival to avoid test-set tuning.
  • Apply a fixed 2D sin-cos position embedding and global average pooling (GAP) instead of a class token.
  • Utilize RandAugment and Mixup at modest levels (RandAugment level 2, 10; Mixup p=0.2).
  • Batch size set to 1024 (not 4096); train for 90, 150, and 300 epochs to measure learning speed and accuracy.
  • Keep the training pipeline simple without extra regularizers, distillation, or architectural changes.

Experimental results

Research questions

  • RQ1What is the performance of a plain ViT baseline on ImageNet-1k with minimal, standard augmentations?
  • RQ2How do small changes (positional embeddings, pooling, batch size, and modest augmentations) affect accuracy across 90, 150, and 300 training epochs?
  • RQ3Can a simple ViT baseline match classic ResNet-50 performance under comparable compute?
  • RQ4What is the relative impact of each minor modification on final top-1 accuracy?

Key findings

  • A simple ViT setup reaches 76.5% top-1 at 90 epochs and 80.0% at 300 epochs.
  • The proposed minor changes cumulatively improve performance over the original ViT baseline by substantial margins.
  • Global average pooling and sinusoidal positional embeddings outperform the class-token variant in this setup.
  • Compared to the original baseline, RandAugment and Mixup at modest levels contribute to notable gains.
  • The 90-epoch run completes in about 6h30 on TPUv3-8, approaching ResNet-50-level performance in similar compute time.
  • Training with 150 epochs yields 78.5% top-1; 300 epochs yields 80.0% top-1 (as reported).

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.