Skip to main content
QUICK REVIEW

[Paper Review] TOAST: Transfer Learning via Attention Steering

Baifeng Shi, Siyu Gai|arXiv (Cornell University)|May 24, 2023
Domain Adaptation and Few-Shot LearningComputer Science5 citations
TL;DR

TOAST is a novel transfer learning method that enhances model performance by refocusing attention on task-relevant features without fine-tuning the backbone. It uses a top-down attention module to selectively boost relevant features in self-attention layers, achieving state-of-the-art results on FGVC (86.2% accuracy) and instruction-following benchmarks while tuning only a small number of parameters.

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.

Motivation & Objective

  • To address the limitation of existing transfer learning methods that fail to focus model attention on task-relevant features.
  • To improve downstream performance in transfer learning by explicitly refocusing attention rather than relying on parameter updates.
  • To achieve state-of-the-art results with minimal parameter tuning, avoiding the computational cost of full fine-tuning.
  • To explore whether attention refocusing alone can surpass fully fine-tuned models in performance while maintaining parameter efficiency.

Proposed method

  • TOAST introduces a top-down attention module that selects task-relevant features from the backbone's output and feeds them back into each self-attention layer.
  • The feedback signal enhances attention on task-specific features by modulating query, key, and value projections in the attention mechanism.
  • The pre-trained backbone remains frozen, and only the top-down attention module is fine-tuned on downstream tasks.
  • The method uses token-wise and channel-wise attention in the feature selection module to identify and amplify relevant spatial and channel-wise features.
  • TOAST-Lite is a parameter-efficient variant that matches TOAST performance with fewer tunable parameters, comparable to LoRA.
  • The approach includes a pre-tuning stage to initialize the top-down module with better starting weights, improving convergence and performance.

Experimental results

Research questions

  • RQ1Can refocusing model attention on task-relevant features lead to improved transfer learning performance without fine-tuning the backbone?
  • RQ2How does top-down attention steering compare to full fine-tuning and parameter-efficient methods like LoRA and prompt tuning on downstream benchmarks?
  • RQ3What is the impact of architectural components such as pre-tuning and channel-wise attention on TOAST's performance?
  • RQ4Can TOAST generalize beyond vision to large language models, such as LLaMA-7B, for instruction-following tasks?
  • RQ5How does computational overhead affect performance, and can it be reduced without significant accuracy loss?

Key findings

  • TOAST achieves 86.2% average accuracy on the FGVC benchmark, a 5% improvement over fully fine-tuned ViT-B and a 5.1% improvement over LoRA.
  • On the VTAB benchmark, TOAST outperforms other methods on 11 out of 18 tasks, demonstrating broad effectiveness across diverse vision tasks.
  • TOAST outperforms fully fine-tuned Alpaca and Vicuna models in instruction-following language generation, producing more detailed and informed responses.
  • TOAST-Lite matches TOAST's performance on FGVC while tuning only a small number of parameters, outperforming LoRA and VPT with similar parameter efficiency.
  • The ablation study shows that pre-tuning is crucial—removing it reduces performance from 86.2% to 81.9%, though it still exceeds fine-tuning.
  • Removing channel-wise attention has a larger negative impact than removing token-wise attention, indicating that channel-level feature selection is critical for performance.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.