Sahaj.blogs
29 Sept 2023 · Paper summary

Paper summary: Vision Transformers Need Registers

ViTs repurpose some background patch tokens as internal scratch space, which produces high-norm artifacts; adding a few extra "register" tokens fixes this and smooths attention maps.

Problem

Attention maps and feature maps of large Vision Transformers, both supervised and self-supervised (e.g. DINOv2), contain artifacts: a few tokens with unusually high norm, mostly in low-information background regions. They make attention maps noisy and hurt methods that rely on clean dense features, like object discovery.

Method

The authors characterise these tokens and interpret them as the model recycling patches it doesn’t need (background) as scratch space for global computation. Their fix is to give the model that space explicitly: append a few extra learnable tokens, registers, to the input sequence. They’re used during processing and discarded at the output.

Key results

According to the paper, registers:

  • remove the artifacts entirely in both supervised and self-supervised models
  • set a new state of the art for self-supervised visual models on dense prediction
  • make object-discovery methods work with larger models
  • give smoother feature and attention maps

Limitations

There’s no dedicated limitations section. The fix requires (re)training with registers, so existing checkpoints don’t benefit automatically. The interpretation of why the artifacts appear comes from the authors’ analysis, not a formal proof.

#cv#vision-transformers#representation-learning

Sources

  1. Vision Transformers Need Registers (arXiv:2309.16588) — arXiv
  2. Hugging Face Daily Papers, 2023-09-29 — Hugging Face
  3. Vision Transformers Need Registers (arXiv HTML full text) — arXiv
  4. Code repository (linked in the paper) — GitHub

This is a summary written from the linked public sources. Figures and numbers are as reported there.