Abstract
As vision models scale to billions of parameters, full fine-tuning becomes computationally prohibitive. Visual Prompt Tuning (VPT) offers a parameter-efficient alternative by training a small set of learnable tokens while keeping the backbone frozen. However, VPT's reliance on random initialization often leads to suboptimal performance, particularly on self-supervised models like Masked Autoencoders (MAE). This paper introduces Self-Prompt Tuning (SPT), a method that initializes prompts using data-driven prototypes instead of random noise. SPT achieves significant performance gains—up to 30% accuracy improvements on certain tasks—while tuning less than 0.4% of the total model parameters.
Introduction
The paradigm of "pre-train then fine-tune" has dominated computer vision. However, the sheer size of modern Vision Transformers (ViTs) makes updating all weights for every new task impractical. Parameter-efficient fine-tuning (PEFT) methods, such as Visual Prompt Tuning (VPT), address this by prepending learnable "prompts" to the input sequence. Despite its efficiency, VPT is sensitive to initialization and struggles with self-supervised backbones. This study investigates the nature of effective prompts and introduces a data-centric initialization strategy to bridge the performance gap.
Methodology: Self-Prompt Tuning (SPT)
The core insight of this work is that effective prompts should reflect the underlying data distribution of the downstream task. The authors observed that during training, prompts naturally align with image patch embeddings, sharing high Normalized Mutual Information (NMI). Based on this, they propose initializing prompts using Token Prototypes derived directly from the target dataset.
Prompt Construction
Instead of starting with random noise, prompts are initialized by sampling or pooling patch embeddings from a single forward pass of the training data. This ensures the prompts start within a relevant feature space, facilitating faster convergence and a higher performance ceiling. This process adds negligible computational overhead compared to traditional clustering methods like K-means.
Architectures
The paper explores two primary variants of the architecture:
- SPT-Shallow: Prompts are introduced only at the initial input layer.
- SPT-Deep: Prompts are inserted into every transformer block, providing multi-level contextual guidance throughout the network.
Experimental Evaluation
The authors evaluated SPT across a wide array of benchmarks, including Fine-Grained Visual Classification (FGVC), the Visual Task Adaptation Benchmark (VTAB-1K), and iNaturalist 2018.
Key Results
- Performance Gains: SPT-Deep achieved a mean accuracy of 91.40% on FGVC, surpassing other popular PEFT methods like SSF and Adapter tuning.
- Synergy with Self-Supervision: On MAE-pretrained models, SPT improved average accuracy by 10% to 30% compared to standard VPT, suggesting that self-supervised features require the specific "contextual guidance" provided by data-driven prompts.
- Efficiency vs. Power: SPT outperformed full fine-tuning in 19 out of 24 cases while training fewer than 0.4% of the total parameters.
- Robustness: Unlike VPT, which can degrade if prompt length is not perfectly tuned, SPT is remarkably stable across different prompt counts, reducing the need for expensive hyperparameter searches.
Discussion and Future Work
SPT demonstrates that the sensitivity of prompt tuning to initialization can be resolved by leveraging the data itself. By providing a better starting point, SPT enables parameter-efficient tuning to match or exceed full fine-tuning performance across various backbones and tasks.
Future research directions include exploring more sophisticated token selection methods and extending SPT to multi-modal models like CLIP, where data-driven prompts could potentially bridge the gap between text and vision more effectively.
Summary updated