arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2605.07191cs.CVcs.LG
收藏

注意力转移并非对视觉变换器普遍有效

Attention Transfer Is Not Universally Effective for Vision Transformers

Institute for Infocomm Research (I 2 R), A*STAR, Singapore(信息与通信研究 institute(I 2 R),A*STAR,新加坡);Sichuan University(四川大学);Shanghai Jiao Tong University(上海交通大学)

Huaiyuan Qin, Muli Yang, Gabriel James Goenawan, Peng Hu, Chen Gong, Xi Peng, Hongyuan Zhu

AI总结:

研究发现,尽管注意力转移能恢复预训练权重的全部效果,但并非所有视觉变换器家族都能成功,部分家族在不同训练条件下均表现不佳,问题源于学生架构与教师架构不匹配。

摘要:

一项近期工作表明,仅将预训练教师视觉变换器(ViT)的注意力模式转移到随机初始化的标准学生ViT中,足以恢复教师预训练权重的全部效果。我们重新审视这一发现,基于20个来自11个知名ViT家族的全面基准测试,发现注意力转移并非普遍有效。虽然7个家族转移成功,但4个家族持续失败,性能低于从头开始无转移基线达5.1%。进一步结果表明,这种失败在不同模型规模、延长训练时间、不同转移数据集和分布外评估中均一致存在。受控分析将问题归因于注意力路由通道,表明关键问题不在于学生能否匹配教师的注意力模式,而在于匹配的模式是否对学生产生功能。至关重要的是,我们识别出预训练教师与标准学生之间架构不匹配是主要机制。通过在随机初始化状态下仅添加教师的原生架构组件,我们完全逆转了4个家族的失败。值得注意的是,这些组件单独无法改善从头开始训练,证实它们仅解锁教师注意力的可用性。我们进一步系统地表明,这种失败并非由转移损失选择不足或预训练配方差异所致。我们的发现修正了对ViT表示中注意力的普遍理解:注意力仅在学生架构与教师架构匹配时才足够。

英文摘要:

A recent work shows that Attention Transfer, which transfers only the attention patterns from a pre-trained teacher Vision Transformer (ViT) to a randomly initialized standard student ViT, is sufficient to recover the full benefit of the teacher's pre-trained weights. We revisit this finding on a comprehensive benchmark of 20 teachers from 11 well-known ViT families and reveal that Attention Transfer is not universally effective. While 7 families transfer successfully, 4 consistently fail, falling up to 5.1\% below the from-scratch no-transfer baseline. Further results demonstrate that this failure is family-consistent across model sizes, and persists under extended training durations, different transfer datasets, and out-of-distribution evaluations. Controlled analyses then consistently localize the problem to the attention-routing channel, indicating that the key issue is not whether the student can match the teacher's attention patterns, but whether the matched patterns remain functional for the student. Crucially, we identify architectural mismatch between the pre-trained teacher and the standard student as the primary mechanism. By adding only the teacher's native architectural components to the student in a randomly initialized state, we completely reverse the failure for all 4 families. Notably, these components alone do not improve from-scratch training, confirming that they specifically unlock the usability of the teacher's attention. We further show that this failure is not explained by the inadequate choice of transfer loss, differences in pre-training recipes, or the intrinsic quality of attention maps. Our findings refine the prevailing understanding of attention in ViT representations: attention is sufficient \textit{only} when the student architecture matches the teacher.

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

↑