Vision Transformer for Small-Size Datasets

Seung Hoon Lee, Seunghyun Lee, Byung Cheol Song
12/27/2021
324 citations
cs.CV
transformer-attention

Official code: aanna0701/SPT_LSA_ViT (132 stars, Python, last commit 2022-02-23).

Abstract

Recently, the Vision Transformer (ViT), which applied the transformer structure to the image classification task, has outperformed convolutional neural networks. However, the high performance of the ViT results from pre-training using a large-size dataset such as JFT-300M, and its dependence on a large dataset is interpreted as due to low locality inductive bias.

Show full abstract

This paper proposes Shifted Patch Tokenization (SPT) and Locality Self-Attention (LSA), which effectively solve the lack of locality inductive bias and enable it to learn from scratch even on small-size datasets. Moreover, SPT and LSA are generic and effective add-on modules that are easily applicable to various ViTs. Experimental results show that when both SPT and LSA were applied to the ViTs, the performance improved by an average of 2.96% in Tiny-ImageNet, which is a representative small-size dataset. Especially, Swin Transformer achieved an overwhelming performance improvement of 4.08% thanks to the proposed SPT and LSA.

View on arXivView PDF

Code Implementations(1)

Implementation of Visual Transformer for Small-size Datasets

13221PythonDec 28, 20214 years ago

Similar Papers

Cite this paper

@article{lee2021vision,
  title  = {Vision Transformer for Small-Size Datasets},
  author = {Seung Hoon Lee and Seunghyun Lee and Byung Cheol Song},
  year   = {2021},
  eprint = {2112.13492},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2112.13492}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2112.13492.svg)](https://codeofpaper.com/paper/2112.13492)

Discussion