Vision Transformers Don't Need Trained Registers

Nick Jiang, Amil Dravid, Alexei A. Efros, Yossi Gandelsman
6/1/2025
62 citations
transformer-attention

Official code: nickjiang2378/test-time-registers (188 stars).

Abstract

We investigate the mechanism underlying a previously identified phenomenon in Vision Transformers - the emergence of high-norm tokens that lead to noisy attention maps (Darcet et al., 2024). We observe that in multiple models (e.g., CLIP, DINOv2), a sparse set of neurons is responsible for concentrating high-norm activations on outlier tokens, leading to irregular attention patterns and degrading downstream visual processing.

Show full abstract

While the existing solution for removing these outliers involves retraining models from scratch with additional learned register tokens, we use our findings to create a training-free approach to mitigate these artifacts. By shifting the high-norm activations from our discovered register neurons into an additional untrained token, we can mimic the effect of register tokens on a model already trained without registers. We demonstrate that our method produces cleaner attention and feature maps, enhances performance over base models across multiple downstream visual tasks, and achieves results comparable to models explicitly trained with register tokens. We then extend test-time registers to off-the-shelf vision-language models, yielding cleaner attention-based, text-to-image attribution. Finally, we outline a simple mathematical model that reflects the observed behavior of register neurons and high norm tokens. Our results suggest that test-time registers effectively take on the role of register tokens at test-time, offering a training-free solution for any pre-trained model released without them.

View on arXivView PDF

Code Implementations(1)

[NeurIPS '25 Spotlight] Official Pytorch implementation of "Vision Transformers Don't Need Trained Registers"

18811

Similar Papers

Cite this paper

@article{jiang2025vision,
  title  = {Vision Transformers Don't Need Trained Registers},
  author = {Nick Jiang and Amil Dravid and Alexei A. Efros and Yossi Gandelsman},
  year   = {2025},
  eprint = {2506.08010},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2506.08010},
  url    = {https://doi.org/10.48550/arXiv.2506.08010},
  journal = {Neural Information Processing Systems}
}

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/2506.08010.svg)](https://codeofpaper.com/paper/2506.08010)

Discussion