LGAICVNENov 14, 2024

On the Surprising Effectiveness of Attention Transfer for Vision Transformers

arXiv:2411.09702v116 citationsh-index: 11Has CodeNIPS
Originality Highly original
AI Analysis

This provides a novel alternative to fine-tuning for vision tasks, potentially reducing computational costs, though it is incremental in rethinking pre-training mechanisms.

The paper challenges the necessity of pre-trained features for Vision Transformers, showing that transferring only attention patterns from a pre-trained teacher to a student model achieves comparable downstream performance, with ensembling further improving ImageNet accuracy.

Conventional wisdom suggests that pre-training Vision Transformers (ViT) improves downstream performance by learning useful representations. Is this actually true? We investigate this question and find that the features and representations learned during pre-training are not essential. Surprisingly, using only the attention patterns from pre-training (i.e., guiding how information flows between tokens) is sufficient for models to learn high quality features from scratch and achieve comparable downstream performance. We show this by introducing a simple method called attention transfer, where only the attention patterns from a pre-trained teacher ViT are transferred to a student, either by copying or distilling the attention maps. Since attention transfer lets the student learn its own features, ensembling it with a fine-tuned teacher also further improves accuracy on ImageNet. We systematically study various aspects of our findings on the sufficiency of attention maps, including distribution shift settings where they underperform fine-tuning. We hope our exploration provides a better understanding of what pre-training accomplishes and leads to a useful alternative to the standard practice of fine-tuning

Code Implementations1 repo
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes