Progressive Visual Prompt Learning with Contrastive Feature Re-formation

Chen Xu, Haocheng Shen, Fengyuan Shi, Boheng Chen, Yixuan Liao, Xiaoxin Chen, Limin Wang · OpenReview

Abstract

Prompt learning has been designed as an alternative to fine-tuning for adapting Vision-language (V-L) models to the downstream tasks. Previous works mainly focus on text prompt while visual prompt works are limited for V-L models. The existing visual prompt methods endure either mediocre performance or unstable training process, indicating the difficulty of visual prompt learning. In this paper, we propose a new Progressive Visual Prompt (ProVP) structure to strengthen the interactions among prompts of different layers. More importantly, our ProVP could effectively propagate the image embeddings to deep layers and behave partially similar to an instance adaptive prompt method. To alleviate generalization deterioration, we further propose a new contrastive feature re-formation, which prevents the serious deviation of the prompted visual feature from the fixed CLIP visual feature distribution. Combining both, our method (ProVP-Ref) is evaluated on 11 image benchmark datasets and achieves 7/11 state-of-the-art results on both few-shot and base-to-novel settings. To the best of our knowledge, we are the first to demonstrate the superior performance of visual prompts in V-L models to previous prompt-based methods in downstream tasks. Meanwhile, it implies that our ProVP-Ref shows the best capability to adapt and to generalize.

Introduction

Adapting massive Vision-Language (V-L) models like CLIP to specific tasks usually involves a trade-off: full fine-tuning is computationally expensive and risks "breaking" the model's general knowledge, while simple "prompt tuning" (adding a few learnable tokens) can be unstable and prone to overfitting. In their paper "Progressive Visual Prompt Learning with Contrastive Feature Re-formation," Chen Xu and colleagues introduce ProVP-Ref, a framework that stabilizes visual prompt learning and ensures that the model doesn't forget its general-purpose roots while learning new tricks.

Problem Statement

While text-based prompting (like CoOp) has seen significant success, visual prompting—inserting learnable tokens into the image encoder—has remained a "wild west" of instability. The authors identify two primary hurdles:

  1. Training Instability: In existing methods like Visual Prompt Tuning (VPT), prompts in different layers are learned independently. This lack of interaction often leads to volatile training curves where accuracy can suddenly plummet to near zero.
  2. Generalization Deterioration: When training prompts on a specific set of classes (the "base" set), the model often loses its ability to recognize "new" classes it previously knew in a zero-shot setting. The learnable prompts essentially "distort" the feature space too much, moving it away from the well-aligned distribution CLIP learned during pre-training.

Methodology

The authors propose a two-pronged solution: Progressive Visual Prompt (ProVP) and Contrastive Feature Re-formation (Ref).

The ProVP-Ref architecture, illustrating the progressive visual prompt modeling and the contrastive feature re-formation loss.

Progressive Visual Prompt (ProVP)

Instead of treating prompts at each layer as isolated islands, ProVP establishes a "progressive connection." The prompt embedding at layer $i$ is a weighted combination of a new learnable prompt and the output of the prompt embedding from the previous layer. This allows information to flow through the prompt sequence, creating an "instance-specific" effect where the prompts interact with the actual image data as it moves deeper into the network. This significantly smoothens the optimization landscape.

Contrastive Feature Re-formation (Ref)

To stop the model from "forgetting" its general knowledge, the authors introduce a new loss function. It forces the visual features produced by the prompted encoder to stay close to the features produced by the original frozen CLIP encoder for the same image. Unlike previous methods that regularize based on output labels (logits), this works directly in the feature space. This provides more flexibility, especially when the downstream task looks very different from CLIP’s original training data (e.g., satellite imagery vs. natural photos).

Key Insights and Results

The researchers evaluated their method across 11 diverse image recognition datasets, including generic objects (ImageNet), fine-grained categories (OxfordPets, FGVCAircraft), and specialized domains (EuroSAT, DTD).

Stability in Training

The "aha moment" for training stability was realizing that isolated prompts cause gradient confusion. By linking them progressively, the authors achieved a smooth training trajectory compared to the erratic "crashes" seen in previous methods like VPT-Deep.

Comparison of training stability between VPT-Deep and ProVP, demonstrating the smoother accuracy curve achieved by progressive connections.

Performance Highlights

  • Superior Generalization: In base-to-new settings, ProVP-Ref improved the Harmonic mean by 3.53% over the standard ProVP and outperformed the previous text-based SOTA (ProGrad) by 1.37%.
  • Handling Domain Shifts: On the EuroSAT dataset (satellite images), ProVP-Ref showed a massive improvement of +10.28% over CoOp, proving its robustness when the visual data is far removed from standard web images.
  • Few-Shot Prowess: In 16-shot scenarios, the method achieved an average absolute improvement of 2.83% over the previous best-performing methods across all 11 datasets.

Conclusion

ProVP-Ref demonstrates that visual prompts can outperform text-based prompting methods in V-L models, particularly when there is a significant domain gap. By introducing progressive connections and feature-space regularization, the authors provide a stable and generalizable way to adapt large-scale vision models to specialized downstream tasks.

Summary updated

BibTeX
@article{xu2025progressive,
  author = {Chen Xu and Haocheng Shen and Fengyuan Shi and Boheng Chen and Yixuan Liao and Xiaoxin Chen and Limin Wang},
  title = {{Progressive Visual Prompt Learning with Contrastive Feature Re-formation}},
  journal = {Int. J. Comput. Vis.},
  year = {2025},
  doi = {10.1007/s11263-024-02172-x},
}
Figure