arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2411.09702cs.LGcs.AIcs.CVcs.NE
收藏

论注意力迁移在视觉Transformer中的惊人有效性

On the Surprising Effectiveness of Attention Transfer for Vision Transformers

Carnegie Mellon University(卡内基梅隆大学);FAIR

Alexander C. Li, Yuandong Tian, Beidi Chen, Deepak Pathak, Xinlei Chen

AI总结:

研究发现ViT预训练中学习的特征非必需,仅迁移注意力模式即可指导学生模型从头学习高质量特征并达到相当性能,为微调提供了新替代方案。

摘要:

传统观点认为,预训练Vision Transformers(ViT)通过学习有用的表示来提升下游性能。事实真的如此吗?我们调查了这个问题,发现预训练期间学习到的特征和表示并非必需。令人惊讶的是,仅使用预训练的注意力模式(即指导token之间信息如何流动)就足以使模型从头学习高质量特征,并取得相当的下游性能。我们通过引入一种称为attention transfer的简单方法证明了这一点,该方法仅将预训练教师ViT的注意力模式通过复制或蒸馏注意力图的方式迁移给学生。由于attention transfer允许学生学习自己的特征,将其与微调后的教师进行集成还能进一步提高在ImageNet上的准确率。我们系统地研究了关于注意力图充分性发现的各种方面,包括它们表现不如微调的分布偏移设置。我们希望我们的探索能更好地理解预训练实现了什么,并为微调的标准做法提供一种有用的替代方案。

英文摘要:

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

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑