[论文解读] E^2VPT: An Effective and Efficient Approach for Visual Prompt Tuning
E^2VPT 引入可学习的键值提示和视觉提示在自注意力和输入层,结合两层级的提示 pruning 策略,实现对视觉变换器的参数高效微调,相对于 VPT 有显著性能提升,且与全量微调竞争力。
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.
研究动机与目标
- 在不牺牲性能的前提下,通过减少微调参数来推动大规模视觉变换器的可持续部署。
- 通过将面向架构的键值提示整合到自注意力中,提升基于提示的自适应。
- 通过两级提示裁剪(按令牌和按段)并结合回滚,以保持性能来减少参数量。
- 在 ViT 和 Swin 主干以及自监督预训练目标上,在 VTAB-1k 和 FGVC 基准测试中展示显著的经验提升。
提出的方法
- 在每个编码器层中,将视觉提示 (P_I) 追加到输入令牌序列的前面。
- 引入与变换器注意力的键和值串联的键值提示 (P_K, P_V) 以引导注意力。
- 在每层内部共享提示参数,以将可学习参数量减半。
- 应用两级级联裁剪(按令牌和按段)以移除不那么重要的提示,随后进入回滚再训练阶段。
实验结果
研究问题
- RQ1如何通过显式增强视觉变换器中的自注意力机制来让提示调优更有效?
- RQ2在视觉提示调优中,在不产生较大性能下降的情况下,参数高效性还能推进到何种程度?
主要发现
- E^2VPT 在 VTAB-1k 和 FGVC 基准测试上超越了若干最先进基线,同时在 VTAB-1k 上仅使用主干参数的约 0.32%(ViT-Base/16)。
- 在 24 个任务中有 21 个任务的微调表现超过全量微调,且通常超过 VPT,同时需要更少的可调参数。
- 键值提示改善了注意力交互,解决了仅输入提示的局限。
- 两级裁剪结合回滚在显著减少参数的同时维持或提升性能(例如 ViT-Base/16 的可调参数仅 0.39%)。
- E^2VPT 也在 Swin 主干以及自监督预训练目标(MAE、MoCo v3)上显示出强泛化性。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。