Skip to main content
QUICK REVIEW

[论文解读] Visual Fourier Prompt Tuning

Rui Zeng, Cheng Han|arXiv (Cornell University)|Nov 2, 2024
Neural Networks and ApplicationsComputer Science被引用 3
一句话总结

本文提出视觉傅里叶提示微调(VFPT),一种参数高效的微调方法,通过将快速傅里叶变换(FFT)集成到可学习的视觉提示嵌入中,联合利用空间域与频域信息。通过此方法,VFPT在VTAB-1k上仅使用模型参数的0.57%即达到最先进性能,平均准确率达到73.20%,同时保持较低的训练开销,并在大规模数据分布偏移下提升泛化能力。

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.

研究动机与目标

  • 为解决预训练与微调数据集在分布上显著不同时视觉提示微调性能持续下降的问题。
  • 通过模拟人类视觉认知的多域处理机制,提升提示微调在多样化数据集上的泛化性与鲁棒性。
  • 开发一种简单、高效且可解释的方法,无需架构修改即可将频域信息融入视觉提示微调。
  • 证明在提示中结合空间与频域表示可提升模型性能与优化稳定性。

提出的方法

  • 该方法对可学习的视觉提示嵌入应用快速傅里叶变换(FFT),将其从空间域转换至频域。
  • 引入一个傅里叶百分比超参数α,用于控制提示表示中保留的频域分量比例。
  • 随后将频域提示嵌入用于调节冻结的视觉Transformer,实现空间与频谱特征的联合处理。
  • 该方法兼容标准的预训练-微调范式,且由于FFT的O(n log n)复杂度,保持了较低的计算成本。
  • 该方法在PyTorch中实现,可无缝集成至现有的视觉Transformer主干网络与提示微调框架中。
  • 通过可视化注意力图增强了可解释性,结果显示在引入频域分量后,注意力更集中于相关区域。

实验结果

研究问题

  • RQ1在分布差异较大的数据集之间,提示微调能否实现有效泛化?
  • RQ2如何有效将频域信息整合到视觉提示微调中以提升鲁棒性与性能?
  • RQ3能否通过基于傅里叶的提示微调,在视觉模型中模拟人类视觉认知机制——即跨多域处理信号?
  • RQ4在提示中结合空间与频域表示是否能带来更平坦的优化景观并改善收敛性?
  • RQ5在提示中空间与频域分量之间应如何取得最优平衡以实现最佳泛化?

主要发现

  • VFPT在VTAB-1k基准上实现了73.20%的平均准确率,显著优于现有最先进基线方法。
  • 该方法仅使用全模型0.57%的参数,展现出极高的参数效率。
  • 与标准视觉提示微调相比,训练速度仅降低2.8%,表明计算开销极低。
  • 优化过程表现出更高的平坦性与凸性,暗示收敛更平滑且泛化能力更强。
  • 注意力图显示,当使用频域分量时,得分在相关区域的集中度显著提高,解释了性能增益。
  • 傅里叶百分比超参数α可依据数据集差异进行指导:低分布差异任务偏好较小的α,而高分布差异任务则从较大的α中受益。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。