Skip to main content
QUICK REVIEW

[Paper Review] Parameter-efficient Model Adaptation for Vision Transformers

Xuehai He, Chunyuan Li|arXiv (Cornell University)|Mar 29, 2022
Domain Adaptation and Few-Shot LearningComputer Science11 citations
TL;DR

This paper proposes Kronecker Adaptation (KAdaptation), a parameter-efficient method for fine-tuning Vision Transformers by projecting weight updates into low-rank Kronecker products, achieving state-of-the-art accuracy with only 0.09% of full model parameters under few-shot settings. It outperforms existing methods in both accuracy and parameter efficiency across 20 image classification datasets.

ABSTRACT

In computer vision, it has achieved great transfer learning performance via adapting large-scale pretrained vision models (e.g., vision transformers) to downstream tasks. Common approaches for model adaptation either update all model parameters or leverage linear probes. In this paper, we aim to study parameter-efficient model adaptation strategies for vision transformers on the image classification task. We formulate efficient model adaptation as a subspace training problem and perform a comprehensive benchmarking over different efficient adaptation methods. We conduct an empirical study on each efficient model adaptation method focusing on its performance alongside parameter cost. Furthermore, we propose a parameter-efficient model adaptation framework, which first selects submodules by measuring local intrinsic dimensions and then projects them into subspace for further decomposition via a novel Kronecker Adaptation (KAdaptation) method. We analyze and compare our method with a diverse set of baseline model adaptation methods (including state-of-the-art methods for pretrained language models). Our method performs the best in terms of the tradeoff between accuracy and parameter efficiency across 20 image classification datasets under the few-shot setting and 7 image classification datasets under the full-shot setting.

Motivation & Objective

  • To address the high storage and computational costs of full fine-tuning large-scale Vision Transformers.
  • To improve upon linear probing and existing parameter-efficient methods in accuracy and efficiency tradeoffs.
  • To establish a comprehensive benchmark for parameter-efficient ViT adaptation on image classification tasks.
  • To identify the most effective submodules for adaptation using local intrinsic dimension analysis.
  • To develop a novel method, KAdaptation, that decomposes weight updates via Kronecker products for improved parameter efficiency.

Proposed method

  • Formulates parameter-efficient adaptation as a subspace training problem, leveraging low-dimensional reparameterization of weight updates.
  • Measures local intrinsic dimension of ViT modules using Fastfood transforms to identify critical components for adaptation.
  • Applies KAdaptation to attention layers, where intrinsic dimension is lower (300 vs. 575 in MLP), indicating higher importance.
  • Decomposes weight updates into Kronecker products with shared slow weights and low-rank fast weights to reduce parameter count.
  • Freezes pretrained weights and only trains the Kronecker-adapted update matrices, minimizing inference overhead.
  • Employs parameterized hypercomplex multiplication to efficiently represent and update the low-rank Kronecker components.

Experimental results

Research questions

  • RQ1Which ViT modules (attention vs. MLP) exhibit lower intrinsic dimension and are thus more suitable for efficient adaptation?
  • RQ2Can Kronecker-based decomposition of weight updates achieve better accuracy-efficiency tradeoffs than existing methods like LoRA or adapters?
  • RQ3How does KAdaptation compare to full fine-tuning and linear probing in terms of accuracy, parameter count, memory, and inference speed?
  • RQ4Does the proposed method generalize across diverse image classification benchmarks under both few-shot and full-shot settings?
  • RQ5Can the intrinsic dimension measurement guide effective selection of submodules for efficient adaptation?

Key findings

  • KAdaptation achieves 79.2% average accuracy on 20 image classification datasets under few-shot settings, outperforming all baselines including LoRA and adapters.
  • KAdaptation uses only 0.09% of the full model's parameters (around 45% of LoRA's parameters), making it highly parameter-efficient.
  • The method reduces memory footprint by 86.0% compared to full fine-tuning, while maintaining inference speed comparable to vanilla ViT (6.93s per batch).
  • Attention modules have a lower local intrinsic dimension (300) than MLP modules (575), justifying their prioritization in adaptation.
  • Ablation studies confirm that KAdaptation on attention layers outperforms MLP adaptation and standard adapter-tuning, with 88.1% average accuracy on CIFAR10, CIFAR100, and SUN397.
  • KAdaptation maintains low inference latency (6.93s per batch), unlike adapter-based methods that incur 12.97s or more due to added layers.

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.