English

TOAST: Transfer Learning via Attention Steering

Computer Vision and Pattern Recognition 2023-07-12 v2 Computation and Language Machine Learning

Abstract

Transfer learning involves adapting a pre-trained model to novel downstream tasks. However, we observe that current transfer learning methods often fail to focus on task-relevant features. In this work, we explore refocusing model attention for transfer learning. We introduce Top-Down Attention Steering (TOAST), a novel transfer learning algorithm that keeps the pre-trained backbone frozen, selects task-relevant features in the output, and feeds those features back to the model to steer the attention to the task-specific features. By refocusing the attention only, TOAST achieves state-of-the-art results on a number of transfer learning benchmarks, while having a small number of tunable parameters. Compared to fully fine-tuning, LoRA, and prompt tuning, TOAST substantially improves performance across a range of fine-grained visual classification datasets (e.g., 81.1% -> 86.2% on FGVC). TOAST also outperforms the fully fine-tuned Alpaca and Vicuna models on instruction-following language generation. Code is available at https://github.com/bfshi/TOAST.

Keywords

Cite

@article{arxiv.2305.15542,
  title  = {TOAST: Transfer Learning via Attention Steering},
  author = {Baifeng Shi and Siyu Gai and Trevor Darrell and Xin Wang},
  journal= {arXiv preprint arXiv:2305.15542},
  year   = {2023}
}

Comments

Code is available at https://github.com/bfshi/TOAST

R2 v1 2026-06-28T10:45:14.166Z