Register and [CLS] tokens yield a decoupling of local and global features in large ViTs
Alexander Lappe, Martin A. Giese
TL;DR
This work challenges the patch integration assumption for Vision Transformers by revealing that, in large models, global information is stored in register tokens and within the CLS pathway via residual connections, producing cleaner attention maps but a decoupled, often misleading relationship between local patches and global representations. The authors demonstrate that as model size grows, the global output is increasingly dominated by information from register tokens or skip connections, undermining the notion that the CLS-attention is a faithful convex combination of patch features. Through analyses like centered kernel alignment and attention ablations, they show that patch-based representations fail to faithfully capture the true global embedding in giant models, and that interpretable attention maps do not reliably ground global behavior in local patches. They propose design guidance—avoiding register tokens and CLS skip mechanisms—to preserve alignment between local and global features and improve interpretability. The findings have implications for dense prediction tasks and the broader interpretability of foundation vision models, motivating new regularization and architectural choices that balance performance with faithful patch-global grounding.
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.
