arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2505.05892cs.CVcs.LG
收藏

Register 与 [CLS] token 在大规模 ViT 中实现局部与全局特征解耦

Register and [CLS] tokens yield a decoupling of local and global features in large ViTs

Hertie Institute, University Clinics Tübingen(海德堡大学诊所赫尔蒂研究所);IMPRS-IS(马克斯·普朗克研究所)

Alexander Lappe, Martin A. Giese

AI总结:

本研究揭示 register 与 [CLS] token 导致大型 ViT 中局部与全局特征脱节,并指出解读注意力图需谨慎,为可解释视觉模型提供方向。

摘要:

近期研究表明,广泛使用的 DINOv2 模型的注意力图存在伪影,这些伪影损害了模型的可解释性以及在密集图像任务上的性能。这些伪影的产生源于模型将带有冗余局部信息的 patch token 重新用于存储全局图像信息。为解决此问题,研究者引入了额外的 register token,使模型能够将此类信息存储于其中。我们仔细考察了这些 register token 对全局与局部图像特征之间关系的影响,结果表明,尽管 register token 产生了更干净的注意力图,但这些图并不能准确反映大型模型中局部图像信息的整合情况。相反,全局信息主要由从 register token 中提取的信息所主导,导致局部与全局特征之间出现脱节。受这些发现启发,我们证明 [CLS] token 本身在未显式添加 register token 的模型中也会引发非常相似的现象。我们的工作表明,在解读大型 ViT 的注意力图时必须格外谨慎。此外,通过将错误行为明确归因于 register 与 [CLS] token,我们为构建更具可解释性的视觉模型指明了一条路径。

英文摘要:

Recent work has shown that the attention maps of the widely popular DINOv2 model exhibit artifacts, which hurt both model interpretability and performance on dense image tasks. These artifacts emerge due to the model repurposing patch tokens with redundant local information for the storage of global image information. To address this problem, additional register tokens have been incorporated in which the model can store such information instead. We carefully examine the influence of these register tokens on the relationship between global and local image features, showing that while register tokens yield cleaner attention maps, these maps do not accurately reflect the integration of local image information in large models. Instead, global information is dominated by information extracted from register tokens, leading to a disconnect between local and global features. Inspired by these findings, we show that the [CLS] token itself leads to a very similar phenomenon in models without explicit register tokens. Our work shows that care must be taken when interpreting attention maps of large ViTs. Further, by clearly attributing the faulty behavior to register and [CLS] tokens, we show a path towards more interpretable vision models.

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

↑