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

Alexander Lappe, Martin A. Giese
5/9/2025
cs.CVcs.LG

No confident code implementation found for this paper.

Abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Cite this paper

@article{lappe2025register,
  title  = {Register and [CLS] tokens yield a decoupling of local and global features in large ViTs},
  author = {Alexander Lappe and Martin A. Giese},
  year   = {2025},
  eprint = {2505.05892},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.05892v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2505.05892.svg)](https://codeofpaper.com/paper/2505.05892)

Discussion