GTA: Guided Transfer of Spatial Attention from Object-Centric Representations
SeokHyun Seo, Jinwoo Hong, JungWoo Chae, Kyungyul Kim, Sangheum Hwang
TL;DR
This paper tackles the problem that Vision Transformers (ViT) lose valuable object-localization representations when fine-tuned on small datasets due to their low inductive bias. It introduces Guided Transfer of spatial Attention (GTA), a simple $L_2$-based regularization that aligns the attention logits of a downstream target ViT with those of a pre-trained source model, focusing on the [CLS] token's spatial mixing coefficients. GTA substantially improves transfer learning performance across five fine-grained datasets, with especially large gains in data-scarce regimes, and also enhances segmentation quality while synergizing with TransMix. The work demonstrates that regulating attention logits is an effective, generalizable strategy for preserving transferable localization properties in ViT during TL. The approach is simple to implement, broadly compatible with SSL and SL pretraining, and offers practical benefits for rapid adaptation of ViT to new tasks with limited labeled data.
Abstract
Utilizing well-trained representations in transfer learning often results in superior performance and faster convergence compared to training from scratch. However, even if such good representations are transferred, a model can easily overfit the limited training dataset and lose the valuable properties of the transferred representations. This phenomenon is more severe in ViT due to its low inductive bias. Through experimental analysis using attention maps in ViT, we observe that the rich representations deteriorate when trained on a small dataset. Motivated by this finding, we propose a novel and simple regularization method for ViT called Guided Transfer of spatial Attention (GTA). Our proposed method regularizes the self-attention maps between the source and target models. A target model can fully exploit the knowledge related to object localization properties through this explicit regularization. Our experimental results show that the proposed GTA consistently improves the accuracy across five benchmark datasets especially when the number of training data is small.
