HackerPapers

arXiv:2309.16588cs.CV

Vision Transformers Need Registers

Timothée Darcet, Maxime Oquab, Julien Mairal, Piotr Bojanowski

Abstract

Transformers have recently emerged as a powerful tool for learning visual representations. In this paper, we identify and characterize artifacts in feature maps of both supervised and self-supervised ViT networks. The artifacts correspond to high-norm tokens appearing during inference primarily in low-informative background areas of images, that are repurposed for internal computations. We propose a simple yet effective solution based on providing additional tokens to the input sequence of the Vision Transformer to fill that role. We show that this solution fixes that problem entirely for both supervised and self-supervised models, sets a new state of the art for self-supervised visual models on dense visual prediction tasks, enables object discovery methods with larger models, and most importantly leads to smoother feature maps and attention maps for downstream visual processing.

arXiv comments
Journal reference
DOI
Subjects
cs.CVComputer Vision and Pattern Recognition

On Hacker News

Linked by 3 identifiable commenters in 3 comments across 3 threads, from Oct 2023 to Oct 2023. Found in 2 HN submissions from Oct 2023 to Apr 2025. Open submission discussions.

Comments linking this paper, per year.

Discussed in comments3 threads

    • This seems somewhat related to https://arxiv.org/abs/2309.16588. Some Researchers found that Vision Transformers would repurpose low-informative background patches of images for internal computations. They gave them an explicit token for this to better results!

      famouswafflesView on HNParent context

    • Adding attention cache memory is an extremely interesting solution to this problem. If anyone is curious, there was another paper [0] that came out a few days ago that made a related observation in Vision Transformers. Transformer models appear to pick tokens to store global…

      smeethView on HNParent context

Submitted to Hacker News

Connected through shared HN threads, not inferred similarity or a recommendation.