Reproduce “Vision Transformers Need Registers” on OpenResearch

Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

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

The paper adds learnable register tokens to Vision Transformers, giving them a separate workspace for internal computation while retaining ordinary patch and class outputs. In tested models, registers remove patch-token norm outliers and smooth attention maps. With four registers, DINOv2’s LOST CorLoc on PASCAL VOC 2007 rises from 35.3 to 55.4, but OpenCLIP declines and the proposed explanation remains incomplete.

Key insights

  • Large, well-trained Vision Transformers spontaneously repurpose redundant patch tokens from low-information areas to aggregate global image information, manifesting as high-norm outliers in feature maps.
  • These 'implicit registers' within patch tokens degrade local feature quality, hindering performance on dense prediction and unsupervised object discovery tasks.
  • Explicitly providing dedicated, learnable 'register tokens' to the ViT input effectively offers separate memory slots for global computation, preventing the model from 'hijacking' image patch tokens.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.