Enhancing Performance of Vision Transformers on Small Datasets through Local Inductive Bias Incorporation

Ibrahim Batuhan Akkaya, Senthilkumar S. Kathiresan, Elahe Arani, Bahram Zonooz
5/15/2023
cs.CVcs.AI

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

Vision transformers (ViTs) achieve remarkable performance on large datasets, but tend to perform worse than convolutional neural networks (CNNs) when trained from scratch on smaller datasets, possibly due to a lack of local inductive bias in the architecture. Recent studies have therefore added locality to the architecture and demonstrated that it can help ViTs achieve performance comparable to CNNs in the small-size dataset regime. Existing methods, however, are architecture-specific or have higher computational and memory costs. Thus, we propose a module called Local InFormation Enhancer (LIFE) that extracts patch-level local information and incorporates it into the embeddings used in the self-attention block of ViTs. Our proposed module is memory and computation efficient, as well as flexible enough to process auxiliary tokens such as the classification and distillation tokens. Empirical results show that the addition of the LIFE module improves the performance of ViTs on small image classification datasets. We further demonstrate how the effect can be extended to downstream tasks, such as object detection and semantic segmentation. In addition, we introduce a new visualization method, Dense Attention Roll-Out, specifically designed for dense prediction tasks, allowing the generation of class-specific attention maps utilizing the attention maps of all tokens.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{akkaya2023enhancing,
  title  = {Enhancing Performance of Vision Transformers on Small Datasets through Local Inductive Bias Incorporation},
  author = {Ibrahim Batuhan Akkaya and Senthilkumar S. Kathiresan and Elahe Arani and Bahram Zonooz},
  year   = {2023},
  eprint = {2305.08551},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.08551v1}
}

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/2305.08551.svg)](https://codeofpaper.com/paper/2305.08551)

Discussion