Vision Transformers Need Registers
2023/09/28 by Timothée Darcet, Darcet, Timothée, Maxime Oquab +5 · 12 voices · 199 citations
Computer Science · #Domain Adaptation and Few-Shot Learning #Advanced Neural Network Applications #Advanced Image and Video Retrieval Techniques
paper · pdf · doi:10.48550/arxiv.2309.16588
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.
Citations
Cited by
Discussions
- Vision Transformers Need Registers [hn, 94 points, 9 comments]
- Vision Transformers Need Registers [hn, 22 points, 0 comments]
- Vision transformers need registers! Or at least, it seems they 𝘸𝘢𝘯𝘵 some… ViTs have artifacts in attention maps. It’s due to the model using these patches as “registers”. Just add new tokens (“[re [bsky, 11 points, 0 comments]
- Similar phenomena in vision models. arxiv.org/abs/2309.16588 [bsky, 1 points, 2 comments]
- Vision Transformers Need Registers (extra tokens discarded after last layer) #HackerNews https://arxiv.org/abs/2309.16588 [bsky, 0 points, 0 comments]
- Vision Transformers Need Registers https://arxiv.org/abs/2309.16588 [bsky, 0 points, 0 comments]
- Vision Transformers Need Registers https://arxiv.org/abs/2309.16588 [comments] [70 points] [bsky, 0 points, 0 comments]
- https://bsky.app/profile/news.ycombinator.com.web.brid.gy/post/3lnvku27r2ud2 [bsky, 0 points, 0 comments]
- arxiv.org/abs/2309.16588 [bsky, 0 points, 1 comments]
- Vision Transformers Need Registers [bsky, 0 points, 0 comments]
- Vision Transformers Need Registers https://arxiv.org/abs/2309.16588 (https://news.ycombinator.com/item?id=43823485) [bsky, 0 points, 0 comments]
- Vision Transformers Need Registers https://arxiv.org/abs/2309.16588 (https://news.ycombinator.com/item?id=43823485) [bsky, 0 points, 0 comments]
Related