Reproduce “Fine-tuning Image Transformers using Learnable Memory” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

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

About this paper

Mark Sandler, Andrey Zhmoginov, Max Vladymyrov, Andrew Jackson

Google researchers introduce a method for fine-tuning Vision Transformers using learnable memory tokens at each layer, achieving near full fine-tuning accuracy with substantially fewer updated parameters. An attention masking technique is also proposed to enable efficient multi-task inference and prevent catastrophic forgetting by preserving previously learned task performance.

Key insights

  • A small number of learnable memory tokens (typically 5-20 per layer) is sufficient to achieve most of the accuracy benefits.
  • Non-propagating, layer-specific memory tokens that do not attend to other tokens perform best, indicating their role as stable contextual references rather than evolving states.
  • Attention masking successfully prevents catastrophic forgetting when adapting Vision Transformers to multiple tasks, enabling computation reuse.

Summary by alphaXiv.

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