arXiv:2505.05892cs.CVcs.LG2025-05NeurIPS被引 9

发现大模型中注册与[CLS]令牌导致局部与全局特征脱节

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

  • 用注册令牌替代冗余局部信息存储,改善注意力图
  • 全局信息主要依赖注册/CLS令牌,与局部特征脱节
  • 揭示大ViT注意力机制的误判根源,助力可解释性改进

近期研究表明,广泛使用的DINOv2模型注意力图存在伪影,损害模型可解释性与密集图像任务性能。这源于模型将携带冗余局部信息的图像块令牌用于存储全局图像信息。为解决此问题,引入额外的注册令牌以存储此类信息。我们深入分析注册令牌对全局与局部特征关系的影响,发现尽管注册令牌使注意力图更清晰,但这些图未能准确反映局部信息的整合。相反,全局信息主要由注册令牌提取的信息主导,导致局部与全局特征分离。受此启发,我们发现无显式注册令牌的模型中,[CLS]令牌本身也会引发类似现象。本工作强调解读大型ViT注意力图需谨慎,并明确将异常行为归因于注册与[CLS]令牌,指明提升视觉模型可解释性的路径。

原文摘要 · Abstract (English)

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.

视觉模型注意力机制可解释性ViT

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。