Skip to main content
QUICK REVIEW

[Paper Review] Vision Transformers in 2022: An Update on Tiny ImageNet

Ethan Huynh|arXiv (Cornell University)|May 21, 2022
Brain Tumor Detection and ClassificationNeuroscience6 citations
TL;DR

This paper evaluates Vision Transformers—ViT, DeiT, CaiT, and Swin—on Tiny ImageNet using a standardized training protocol inspired by DeiT, achieving state-of-the-art accuracy of 91.35% with Swin-L/4. The study fills a critical gap in transfer learning benchmarks by including Tiny ImageNet, which has been overlooked in prior vision transformer research despite its relevance as a subset of ImageNet-1k.

ABSTRACT

The recent advances in image transformers have shown impressive results and have largely closed the gap between traditional CNN architectures. The standard procedure is to train on large datasets like ImageNet-21k and then finetune on ImageNet-1k. After finetuning, researches will often consider the transfer learning performance on smaller datasets such as CIFAR-10/100 but have left out Tiny ImageNet. This paper offers an update on vision transformers' performance on Tiny ImageNet. I include Vision Transformer (ViT) , Data Efficient Image Transformer (DeiT), Class Attention in Image Transformer (CaiT), and Swin Transformers. In addition, Swin Transformers beats the current state-of-the-art result with a validation accuracy of 91.35%. Code is available here: https://github.com/ehuynh1106/TinyImageNet-Transformers

Motivation & Objective

  • To close the gap in vision transformer benchmarking by evaluating performance on Tiny ImageNet, a dataset frequently omitted in transfer learning studies.
  • To assess how well modern vision transformers transfer to Tiny ImageNet using a consistent training regimen similar to DeiT’s.
  • To identify the most effective training setup for vision transformers on Tiny ImageNet through ablation and hyperparameter tuning.
  • To compare model efficiency, accuracy, and training speed across ViT, DeiT, CaiT, and Swin architectures on this intermediate-scale dataset.

Proposed method

  • Fine-tuned ViT, DeiT, CaiT, and Swin Transformers on Tiny ImageNet using a standardized training protocol with 384×384 input resolution and 128 batch size.
  • Applied data augmentation techniques including Mixup, CutMix, and Random Erasing with specified probabilities to improve generalization.
  • Used label smoothing (ε=0.1), stochastic depth (rate=0.1), and AdamW optimizer with cosine decay and weight decay of 0.05.
  • Employed gradient accumulation on an RTX 3070 (8GB VRAM) to handle batch size constraints due to model size.
  • Conducted ablation studies by removing or replacing augmentation and regularization techniques to identify optimal training configuration.
  • Evaluated alternative optimizers (SGD with Nesterov momentum) and compared convergence and accuracy with AdamW.

Experimental results

Research questions

  • RQ1How do Vision Transformers perform on Tiny ImageNet when trained with a DeiT-inspired protocol?
  • RQ2Which vision transformer architecture achieves the highest accuracy on Tiny ImageNet under the same training regime?
  • RQ3What is the optimal combination of data augmentation and regularization techniques for training vision transformers on Tiny ImageNet?
  • RQ4How do model parameters, FLOPs, and layer count correlate with training throughput and performance on Tiny ImageNet?
  • RQ5Does the use of Model EMA or AutoAugment improve performance on Tiny ImageNet compared to RandAugment?

Key findings

  • Swin-L/4 achieved the highest validation accuracy of 91.35% on Tiny ImageNet, setting a new state-of-the-art result.
  • DeiT-B/16-D achieved 87.29% accuracy and trained the fastest among all models, demonstrating the effectiveness of knowledge distillation.
  • Removing RandAugment slightly improved test accuracy (91.35% vs 91.34%) and led to more stable convergence, suggesting it may be redundant in this setup.
  • Model EMA reduced accuracy to 90.83%, aligning with prior findings that it does not improve performance on this dataset.
  • AutoAugment and both cropping methods (RRC and SRC) did not improve performance and were outperformed by simpler augmentation strategies.
  • Despite lower parameter count and FLOPs, CaiT-S/36 trained the slowest, indicating that layer count is a stronger predictor of training throughput than model size.

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.