Skip to main content
QUICK REVIEW

[Paper Review] Low-rank Attention Side-Tuning for Parameter-Efficient Fine-Tuning

Ningyuan Tang, Minghao Fu|arXiv (Cornell University)|Feb 6, 2024
Sparse and Compressive Sensing TechniquesEngineering3 citations
TL;DR

This paper proposes Low-rank Attention Side-Tuning (LAST), a parameter-efficient fine-tuning method that replaces the frozen pretrained model with a side-network of low-rank self-attention modules, eliminating gradient computation for the backbone. LAST achieves state-of-the-art accuracy on VTAB-1K with 30% lower GPU memory and 60% faster training than prior PEFT methods, while enabling efficient hyperparameter search via parallel training.

ABSTRACT

In finetuning a large pretrained model to downstream tasks, parameter-efficient fine-tuning (PEFT) methods can effectively finetune pretrained models with few trainable parameters, but suffer from high GPU memory consumption and slow training speed. Because learnable parameters from these methods are entangled with the pretrained model, gradients related to the frozen pretrained model's parameters have to be computed and stored during finetuning. We propose Low-rank Attention Side-Tuning (LAST), which disentangles the trainable module from the pretrained model by freezing not only parameters but also outputs of the pretrained network. LAST trains a side-network composed of only low-rank self-attention modules. By viewing the pretrained model as a frozen feature extractor, the side-network takes intermediate output from the pretrained model and focus on learning task-specific knowledge. We also show that LAST can be highly parallel across multiple optimization objectives, making it very efficient in downstream task adaptation, for example, in finding optimal hyperparameters. LAST outperforms previous state-of-the-art methods on VTAB-1K and other visual adaptation tasks with roughly only 30\% of GPU memory footprint and 60\% of training time compared to existing PEFT methods, but achieves significantly higher accuracy.

Motivation & Objective

  • To address high GPU memory consumption and slow training speed in parameter-efficient fine-tuning (PEFT) methods.
  • To overcome the trade-off between accuracy and efficiency in existing side-tuning and non-side-tuning PEFT approaches.
  • To enable efficient hyperparameter search by supporting parallel training of multiple LAST models with different configurations.
  • To demonstrate that low-rank attention modules alone can outperform full feed-forward networks in side-tuning for downstream adaptation.
  • To show that freezing both parameters and outputs of the pretrained model enables significant memory and speed gains without sacrificing performance.

Proposed method

  • LAST introduces a side-network composed solely of low-rank self-attention modules that attend to intermediate features from the frozen pretrained ViT.
  • The side-network is trained end-to-end while the pretrained model’s parameters and activations are fully frozen, eliminating gradient computation for the backbone.
  • Low-rank attention modules use rank-4 or rank-8 projections instead of full attention matrices, drastically reducing parameters and memory.
  • A bias correction mechanism is applied to the low-rank attention to stabilize training and improve performance.
  • The method supports parallel training across multiple hyperparameter configurations, enabling efficient hyperparameter search.
  • The side-network is stacked across multiple layers of the ViT with a configurable gap factor $ g $ and stack factor $ T $, allowing flexible architecture design.

Experimental results

Research questions

  • RQ1Can a side-tuning method based solely on low-rank attention modules achieve higher accuracy than existing PEFT methods while maintaining low memory and fast training?
  • RQ2Does removing the feed-forward network from the side-network in side-tuning lead to better parameter efficiency and performance?
  • RQ3Can the proposed method train the large ViT-g model on a single 12GB GPU (TITAN Xp) with batch size 32, despite its size?
  • RQ4How does the performance of LAST scale with increasing stack factor $ T $ and gap factor $ g $?
  • RQ5Can LAST enable efficient parallel hyperparameter search by training multiple models with different configurations simultaneously?

Key findings

  • LAST achieves state-of-the-art average accuracy of 76.5% on VTAB-1K using ViT-B, outperforming LoRA, VPT-Deep, and BitFit.
  • LAST reduces GPU memory usage to 1.33 GB on a TITAN Xp GPU, representing a 78% reduction compared to full fine-tuning (6.09 GB).
  • Training speed improves to 281 ms/batch, a 52% reduction compared to full fine-tuning (582 ms/batch).
  • Removing the feed-forward network from the side-network leads to a 76.5% average accuracy, while adding it causes no improvement and increases memory and parameters.
  • The method enables training the ViT-g model on a single TITAN Xp GPU with batch size 32, a feat not previously possible with standard PEFT methods.
  • t-SNE visualization shows that LAST produces better class clustering than linear probing, LoRA, and full fine-tuning on VTAB datasets.

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.