Prompt Tuning for CLIP on the Pretrained Manifold

Xi Yang, Yuanrong Xu, Weigang Zhang, Guangming Lu, David Zhang, Jie Wen

Executive Summary

Adapting Vision-Language Models (VLMs) like CLIP to downstream tasks often relies on prompt tuning—a parameter-efficient method that introduces learnable prompt vectors while keeping the base model frozen. However, in low-data regimes, prompt tuning can cause "manifold drift," where the model overfits to dataset-specific shortcuts and loses its broad generalization capabilities. To combat this, researchers introduce ManiPT (Manifold Prompt Tuning). By enforcing geometric consistency and utilizing a novel additive structural bias, ManiPT ensures that adapted features remain anchored to the robust pretrained manifold, significantly improving generalization in few-shot and cross-domain tasks.

The Problem: Manifold Drift and Shortcut Learning

Adapting large-scale foundation models to specific tasks requires balancing task-specific learning with the preservation of pretrained knowledge. While prompt tuning is highly parameter-efficient, it frequently struggles in low-data (few-shot) environments.

The core issue identified by the authors is manifold drift. Under limited supervision, the optimization process tends to exploit "shortcuts"—discriminative signals like background noise or texture artifacts that are present in a small training set but fail to generalize to broader contexts. Geometrically, this optimization drives the learned features away from the high-quality, transferable "manifold" established during CLIP's massive pretraining phase. Once the model drifts off this manifold, it loses its "open-vocabulary" capabilities, leading to poor generalization on new classes or different domains.

The ManiPT Framework

To anchor the model to its pretrained roots, ManiPT introduces three key mechanisms:

1. Cosine Consistency Constraints

ManiPT applies a loss function that penalizes the angular distance between the prompt-tuned features and the original frozen CLIP features. Applied to both the visual and textual modalities, this constraint ensures that the adaptation remains within a tight "geometric neighborhood" of the original pretrained manifold.

2. Structural Bias via Additive Fusion

Instead of entirely replacing the original features with prompt-tuned ones, ManiPT employs a residual-like structure: $$f = \text{normalize}(z_{frozen} + h_{prompt})$$ This mathematically forces the final representation to act as an "incremental correction" rather than an arbitrary shift. The authors prove (via Lemma 4.2) that this fusion naturally contracts the feature space, making it significantly harder for the model to wander into non-transferable shortcut subspaces.

3. LLM-Based Knowledge Enrichment

To create a stable "anchor" for the text modality, the authors query a Large Language Model (like GPT-3) to generate detailed class descriptions. These descriptions are averaged into a semantic prototype, serving as a much more robust reference point for the consistency constraint than a simple, generic template like "a photo of a {class}."

Experimental Setup

The framework was rigorously evaluated across a comprehensive suite of 15 datasets:

  • Standard Benchmarks: ImageNet, Caltech101, OxfordPets, StanfordCars, Flowers102, Food101, FGVCAircraft, SUN397, DTD, EuroSAT, and UCF101.
  • Domain Generalization: Four ImageNet variants representing natural shifts, sketches, adversarial examples, and artistic renditions (ImageNet-V2, -Sketch, -A, -R).

Key Insights and Results

ManiPT consistently outperformed state-of-the-art baseline methods (including CoOp, CoCoOp, MaPLe, and PromptSRC) across multiple settings:

  • Base-to-Novel Generalization: ManiPT achieved an average harmonic mean of 82.09%, surpassing the previous best method (LLaMP at 81.27%).
  • Few-Shot Performance: The framework demonstrated the most significant gains in the highly restrictive 1-shot and 2-shot regimes, proving its robustness when training data is exceptionally scarce.
  • Cross-Dataset Transfer: When trained on ImageNet and tested on 10 other datasets, ManiPT reached a top average accuracy of 68.04%.
  • The Geometry of Overfitting: Using PCA to quantify manifold drift, the authors demonstrated that standard prompt tuning (like MaPLe) significantly increases variance in "off-manifold" directions. In contrast, ManiPT keeps this drift near zero.
  • Training Efficiency: Despite its dual-branch architecture, ManiPT is highly efficient. It trains in approximately 34 seconds per epoch on ImageNet—7x faster than MaPLe and 24x faster than CoCoOp—while utilizing only 0.25M trainable parameters.

Limitations and Future Directions

While ManiPT offers a robust solution to manifold drift, the authors note a few limitations:

  • Inference Latency: Because ManiPT relies on a dual-branch fusion (frozen + prompt-tuned), it incurs a slightly higher inference latency (6.96 ms/img) compared to single-branch methods (~3.5 ms/img), though it remains well within the bounds for real-time application.
  • Knowledge Dependency: The quality of the text anchors relies heavily on the LLM's internal knowledge. In highly specialized or niche domains, the LLM might generate inaccurate descriptions, potentially anchoring the model to an incorrect semantic neighborhood.
  • The Plasticity Trade-off: In scenarios involving extreme distribution shifts—where the optimal features are genuinely far from the pretrained manifold—ManiPT’s strict geometric confinement might limit the model's necessary adaptability. Finding the optimal balance between "manifold preservation" and "task-specific plasticity" remains an exciting open challenge for future research.

Summary updated

BibTeX
@inproceedings{yang2026prompt,
  author = {Xi Yang and Yuanrong Xu and Weigang Zhang and Guangming Lu and David Zhang and Jie Wen},
  title = {{Prompt Tuning for CLIP on the Pretrained Manifold}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=ROFqW86Dca},
}
Figure