Table of Contents
Fetching ...

Visual Fourier Prompt Tuning

Runjia Zeng, Cheng Han, Qifan Wang, Chunshu Wu, Tong Geng, Lifu Huang, Ying Nian Wu, Dongfang Liu

TL;DR

This work proposes the Visual Fourier Prompt Tuning (VFPT) method, which innovatively incorporates the Fast Fourier Transform into prompt embeddings and harmoniously considers both spatial and frequency domain information, and exhibits superior performance across all datasets.

Abstract

With the scale of vision Transformer-based models continuing to grow, finetuning these large-scale pretrained models for new tasks has become increasingly parameter-intensive. Visual prompt tuning is introduced as a parameter-efficient finetuning (PEFT) method to this trend. Despite its successes, a notable research challenge persists within almost all PEFT approaches: significant performance degradation is observed when there is a substantial disparity between the datasets applied in pretraining and finetuning phases. To address this challenge, we draw inspiration from human visual cognition, and propose the Visual Fourier Prompt Tuning (VFPT) method as a general and effective solution for adapting large-scale transformer-based models. Our approach innovatively incorporates the Fast Fourier Transform into prompt embeddings and harmoniously considers both spatial and frequency domain information. Apart from its inherent simplicity and intuitiveness, VFPT exhibits superior performance across all datasets, offering a general solution to dataset challenges, irrespective of data disparities. Empirical results demonstrate that our approach outperforms current state-of-the-art baselines on two benchmarks, with low parameter usage (e.g., 0.57% of model parameters on VTAB-1k) and notable performance enhancements (e.g., 73.20% of mean accuracy on VTAB-1k). Our code is avaliable at https://github.com/runtsang/VFPT.

Visual Fourier Prompt Tuning

TL;DR

This work proposes the Visual Fourier Prompt Tuning (VFPT) method, which innovatively incorporates the Fast Fourier Transform into prompt embeddings and harmoniously considers both spatial and frequency domain information, and exhibits superior performance across all datasets.

Abstract

With the scale of vision Transformer-based models continuing to grow, finetuning these large-scale pretrained models for new tasks has become increasingly parameter-intensive. Visual prompt tuning is introduced as a parameter-efficient finetuning (PEFT) method to this trend. Despite its successes, a notable research challenge persists within almost all PEFT approaches: significant performance degradation is observed when there is a substantial disparity between the datasets applied in pretraining and finetuning phases. To address this challenge, we draw inspiration from human visual cognition, and propose the Visual Fourier Prompt Tuning (VFPT) method as a general and effective solution for adapting large-scale transformer-based models. Our approach innovatively incorporates the Fast Fourier Transform into prompt embeddings and harmoniously considers both spatial and frequency domain information. Apart from its inherent simplicity and intuitiveness, VFPT exhibits superior performance across all datasets, offering a general solution to dataset challenges, irrespective of data disparities. Empirical results demonstrate that our approach outperforms current state-of-the-art baselines on two benchmarks, with low parameter usage (e.g., 0.57% of model parameters on VTAB-1k) and notable performance enhancements (e.g., 73.20% of mean accuracy on VTAB-1k). Our code is avaliable at https://github.com/runtsang/VFPT.

Paper Structure

This paper contains 34 sections, 4 equations, 9 figures, 31 tables.

Figures (9)

  • Figure 1: Overview of VPT $vs.$ VFPT (ours) frameworks. (a) Original Visual Prompt Tuning. (b) 2D Fast Fourier Transform operations in partial visual prompts along hidden and sequence length dimensions. (c) The overall architecture of our proposed VFPT (see §\ref{['subsec:VFPT']}).
  • Figure 2: Image classification accuracy of various Fourier percentages of VTAB-1k zhai2019large for ViT-Base/16 dosovitskiy2020image. For better illustration, we randomly select 3 datasets in each group of VTAB-1k. The "Average FID Score of Each Group" is reported in <·>. Our conclusion aligns with 16 of 19 cases. The cross framed by the square indicates the best percentage for each downstream task. Those datasets with only three Fourier percentage reports are due to the prompt length limits.
  • Figure 3: Visualization of loss landscape and the ratio map of Hessian li2018visualizing.
  • Figure 4: Study of interpretability. (a) The 3D and 2D attention map in VPT and VFPT on a randomly selected sample. The colors , and indicate class, prompt and patch tokens, respectively. (b) Corresponding GradCAM selvaraju2017grad maps. Note that red regions correspond to a high score for the class. We present more visualization results in §\ref{['appendix:visualization']}
  • Figure S1: Sensitivity of visual Fourier prompt percentages and its prompt lengths on VTAB-1k zhai2019large DTD.
  • ...and 4 more figures