English

Training Vision Transformers with Only 2040 Images

Computer Vision and Pattern Recognition 2022-01-27 v1 Artificial Intelligence

Abstract

Vision Transformers (ViTs) is emerging as an alternative to convolutional neural networks (CNNs) for visual recognition. They achieve competitive results with CNNs but the lack of the typical convolutional inductive bias makes them more data-hungry than common CNNs. They are often pretrained on JFT-300M or at least ImageNet and few works study training ViTs with limited data. In this paper, we investigate how to train ViTs with limited data (e.g., 2040 images). We give theoretical analyses that our method (based on parametric instance discrimination) is superior to other methods in that it can capture both feature alignment and instance similarities. We achieve state-of-the-art results when training from scratch on 7 small datasets under various ViT backbones. We also investigate the transferring ability of small datasets and find that representations learned from small datasets can even improve large-scale ImageNet training.

Keywords

Cite

@article{arxiv.2201.10728,
  title  = {Training Vision Transformers with Only 2040 Images},
  author = {Yun-Hao Cao and Hao Yu and Jianxin Wu},
  journal= {arXiv preprint arXiv:2201.10728},
  year   = {2022}
}

Comments

11 pages

R2 v1 2026-06-24T09:03:03.075Z