HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

Revisiting the Power of Prompt for Visual Tuning

Yuzhu Wang Lechao Cheng Chaowei Fang Dingwen Zhang Manni Duan Meng Wang

Revisiting the Power of Prompt for Visual Tuning

Abstract

Visual prompt tuning (VPT) is a promising solution incorporating learnable prompt tokens to customize pre-trained models for downstream tasks. However, VPT and its variants often encounter challenges like prompt initialization, prompt length, and subpar performance in self-supervised pretraining, hindering successful contextual adaptation. This study commences by exploring the correlation evolvement between prompts and patch tokens during proficient training. Inspired by the observation that the prompt tokens tend to share high mutual information with patch tokens, we propose initializing prompts with downstream token prototypes. The strategic initialization, a stand-in for the previous initialization, substantially improves performance in fine-tuning. To refine further, we optimize token construction with a streamlined pipeline that maintains excellent performance with almost no increase in computational expenses compared to VPT. Exhaustive experiments show our proposed approach outperforms existing methods by a remarkable margin. For instance, it surpasses full fine-tuning in 19 out of 24 tasks, using less than 0.4% of learnable parameters on the FGVC and VTAB-1K benchmarks. Notably, our method significantly advances the adaptation for self-supervised pretraining, achieving impressive task performance gains of at least 10% to 30%. Besides, the experimental results demonstrate the proposed SPT is robust to prompt lengths and scales well with model capacity and training data size. We finally provide an insightful exploration into the amount of target data facilitating the adaptation of pre-trained models to downstream tasks. The code is available at https://github.com/WangYZ1608/Self-Prompt-Tuning.

Benchmarks

BenchmarkMethodologyMetrics
visual-prompt-tuning-on-fgvcSPT-Deep(ViT-B/16_MAE_pretrained_ImageNet-1K)
Mean Accuracy: 83.26
visual-prompt-tuning-on-fgvcSPT-Shallow(ViT-B/16_MoCo_v3_pretrained_ImageNet-1K)
Mean Accuracy: 84.08
visual-prompt-tuning-on-fgvcSPT-Shallow(ViT-B/16_MAE_pretrained_ImageNet-1K)
Mean Accuracy: 73.95
visual-prompt-tuning-on-fgvcSPT-Deep(ViT-B/16_MoCo_v3_pretrained_ImageNet-1K)
Mean Accuracy: 86.00
visual-prompt-tuning-on-vtab-1k-natural-7SPT-Shallow(ViT-B/16_MAE_pretrained_ImageNet-1K)
Mean Accuracy: 62.53
visual-prompt-tuning-on-vtab-1k-natural-7SPT-Deep(ViT-B/16_MoCo_v3_pretrained_ImageNet-1K)
Mean Accuracy: 76.20
visual-prompt-tuning-on-vtab-1k-natural-7SPT-Shallow(ViT-B/16_MoCo_v3_pretrained_ImageNet-1K)
Mean Accuracy: 74.47
visual-prompt-tuning-on-vtab-1k-natural-7SPT-Deep(ViT-B/16_MAE_pretrained_ImageNet-1K)
Mean Accuracy: 67.19
visual-prompt-tuning-on-vtab-1k-specialized-4SPT-Shallow(ViT-B/16_MoCo_v3_pretrained_ImageNet-1K)
Mean Accuracy: 83.93
visual-prompt-tuning-on-vtab-1k-specialized-4SPT-Deep(ViT-B/16_MAE_pretrained_ImageNet-1K)
Mean Accuracy: 83.15
visual-prompt-tuning-on-vtab-1k-specialized-4SPT-Deep(ViT-B/16_MoCo_v3_pretrained_ImageNet-1K)
Mean Accuracy: 84.95
visual-prompt-tuning-on-vtab-1k-specialized-4SPT-Shallow(ViT-B/16_MAE_pretrained_ImageNet-1K)
Mean Accuracy: 80.90
visual-prompt-tuning-on-vtab-1k-structured-8SPT-Deep(ViT-B/16_MAE_pretrained_ImageNet-1K)
Mean Accuracy: 59.23
visual-prompt-tuning-on-vtab-1k-structured-8SPT-Shallow(ViT-B/16_MoCo_v3_pretrained_ImageNet-1K)
Mean Accuracy: 55.16
visual-prompt-tuning-on-vtab-1k-structured-8SPT-Deep(ViT-B/16_MoCo_v3_pretrained_ImageNet-1K)
Mean Accuracy: 58.36
visual-prompt-tuning-on-vtab-1k-structured-8SPT-Shallow(ViT-B/16_MAE_pretrained_ImageNet-1K)
Mean Accuracy: 53.46

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp