Locality Guidance for Improving Vision Transformers on Tiny Datasets
KLKehan LiRYRunyi YuZWZhennan Wang
Li YuanGuoli Song
Jie Chen KLKehan Li
RYRunyi Yu
ZWZhennan Wang

Li Yuan
Guoli Song

Jie Chen
+6
To improve Vision Transformers (VTs) on tiny datasets, where the self-attention mechanism struggles to learn local information crucial for image understanding, this paper proposes locality guidance. The approach imitates features from a pre-trained lightweight CNN, inspired by its inherent local-to-global hierarchy, within a dual-task learning paradigm. Using only a CNN trained on low-resolution images, this method significantly boosts VT performance, e.g., improving DeiT by 13.07% and PVTv2 to 79.30%, without requiring complex modifications.

arXiv ·
· July 20, 2022