Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Vision Transformers Need Registers

About

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.

Timoth\'ee Darcet, Maxime Oquab, Julien Mairal, Piotr Bojanowski• 2023

Related benchmarks

TaskDatasetResultRank
Semantic segmentationADE20K (val)
mIoU50.71
2731
Semantic segmentationADE20K
mIoU48.68
936
Image ClusteringCIFAR-10
NMI0.847
243
Semantic segmentationScanNet (val)
mIoU63.36
231
Image ClusteringSTL-10
ACC72.7
229
Image ClassificationImageNet-1K
Accuracy83.41
190
Video Action ClassificationSomething-Something v2
Top-1 Acc50.7
139
Image ClusteringCIFAR-100
ACC66.79
101
Semantic segmentationNYUD v2
mIoU63.89
96
Semantic segmentationScanNet200 (val)
mIoU27.75
74
Showing 10 of 31 rows

Other info

Follow for update