Skip to main content
QUICK REVIEW

[Paper Review] E^2VPT: An Effective and Efficient Approach for Visual Prompt Tuning

Cheng Han, Qifan Wang|arXiv (Cornell University)|Jul 25, 2023
Domain Adaptation and Few-Shot LearningComputer Science10 citations
TL;DR

E^2VPT introduces learnable key-value prompts and visual prompts in self-attention and input layers, coupled with a two-level prompt pruning strategy, to achieve superior parameter-efficient fine-tuning of vision transformers with strong performance gains over VPT and competitive results to full fine-tuning.

ABSTRACT

As the size of transformer-based models continues to grow, fine-tuning these large-scale pretrained vision models for new tasks has become increasingly parameter-intensive. Parameter-efficient learning has been developed to reduce the number of tunable parameters during fine-tuning. Although these methods show promising results, there is still a significant performance gap compared to full fine-tuning. To address this challenge, we propose an Effective and Efficient Visual Prompt Tuning (E^2VPT) approach for large-scale transformer-based model adaptation. Specifically, we introduce a set of learnable key-value prompts and visual prompts into self-attention and input layers, respectively, to improve the effectiveness of model fine-tuning. Moreover, we design a prompt pruning procedure to systematically prune low importance prompts while preserving model performance, which largely enhances the model's efficiency. Empirical results demonstrate that our approach outperforms several state-of-the-art baselines on two benchmarks, with considerably low parameter usage (e.g., 0.32% of model parameters on VTAB-1k). Our code is available at https://github.com/ChengHan111/E2VPT.

Motivation & Objective

  • Motivate sustainable deployment of large vision transformers by reducing fine-tuning parameters without sacrificing performance.
  • Enhance prompt-based adaptation by integrating architecture-aware key-value prompts into self-attention.
  • Reduce parameter counts via a two-level prompt pruning (token-wise and segment-wise) with rewinding to preserve performance.
  • Demonstrate strong empirical gains on VTAB-1k and FGVC benchmarks across ViT and Swin backbones and on self-supervised pretraining objectives.

Proposed method

  • Introduce visual prompts (P_I) prepended to input token sequences at each encoder layer.
  • Introduce key-value prompts (P_K, P_V) concatenated with transformer attention keys and values to guide attention.
  • Share prompt parameters within each layer to halve learnable parameters.
  • Apply a two-level cascade pruning (token-wise and segment-wise) to remove less important prompts, followed by a rewinding retraining stage.

Experimental results

Research questions

  • RQ1How can prompt tuning be made more effective by explicitly enhancing the self-attention mechanism in vision transformers?
  • RQ2How far can parameter efficiency be pushed in visual prompt tuning without large performance degradation?

Key findings

  • E^2VPT beats several state-of-the-art baselines on VTAB-1k and FGVC benchmarks while using only about 0.32% of backbone parameters (ViT-Base/16) on VTAB-1k.
  • It outperforms full fine-tuning in 21 of 24 tasks and generally surpasses VPT while requiring fewer tunable parameters.
  • Key-value prompts improve attention interaction, addressing limitations of input-only prompts.
  • Two-level pruning with rewinding maintains or improves performance while significantly reducing parameters (e.g., 0.39% tuned parameters for ViT-Base/16).
  • E^2VPT also shows strong generalization to Swin backbones and to self-supervised pretraining objectives (MAE, MoCo v3).

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.