Fine-tuning Image Transformers using Learnable Memory

By Mark Sandler, Andrey Zhmoginov, Max Vladymyrov, Andrew Jackson. 2022

57 citations recorded by the source corpus.

In this paper we propose augmenting Vision Transformer models with learnable memory tokens. Our approach allows the model to adapt to new tasks, using few parameters, while optionally preserving its capabilities on previously learned tasks. At each layer we introduce a set of learnable embedding vectors that provide contextual information useful for specific datasets. We call these “memory tokens”. We show that augmenting a model with just a handful of such tokens per layer significantly improves accuracy when compared to conventional head-only fine-tuning, and performs only slightly below the significantly more expensive full fine-tuning. We then propose an attention-masking approach that enables extension to new downstream tasks, with a computation reuse. In this setup in addition to being parameters efficient, models can execute both old and new tasks as a part of single inference at a small incremental cost.

Subfields: Computer Vision and Pattern Recognition, Model Architectures, Efficiency & Compression

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Computer Vision and Pattern Recognition

  1. Luc Van Gool
  2. Dacheng Tao
  3. Jitendra Malik
  4. Ming-Hsuan Yang
  5. Trevor Darrell
  6. Andrea Vedaldi
  7. Andrew Zisserman
  8. Xiaogang Wang

In Model Architectures

  1. Claire Cardie
  2. Bharath Hariharan
  3. Carl Vondrick
  4. Maxime Oquab
  5. Timothée Darcet
  6. Maxime Oquab
  7. Piotr Bojanowski
  8. Julien Mairal

In Efficiency & Compression

  1. Bharath Hariharan
  2. Carl Vondrick
  3. Piotr Bojanowski
  4. Julien Mairal
  5. Ser-Nam Lim
  6. Serge J. Belongie
  7. Tinne Tuytelaars
  8. Thomas Verelst

Citations in the corpus