Release the Powers of Prompt Tuning: Cross-Modality Prompt Transfer

Ningyuan Zhang, Jie Lu, Keqiuyin Li, Zhen Fang, Guangquan Zhang

Introduction

Prompt Tuning (PT) has emerged as a highly effective strategy for Parameter-Efficient Transfer Learning (PETL). By keeping the massive underlying pre-trained model frozen and only training a few "trigger" embeddings at the input, PT drastically reduces computational overhead. However, it suffers from a notable "cold start" problem: optimizing these continuous embeddings requires a substantial amount of data. For data-scarce modalities or highly specialized niche tasks, PT often underperforms compared to more invasive fine-tuning methods.

While researchers have successfully transferred prompts within a single modality (e.g., from one NLP task to another), this paper explores a more ambitious frontier: Cross-Modality Prompt Transfer (CMPT). Specifically, the authors investigate whether the rich linguistic and logical knowledge captured in a text-based prompt can help a vision model better understand images. The primary hurdle is the massive "modality gap"—the fundamental difference in how text and images are represented—compounded by the "task gap," which dictates the difference in the specific problems being solved.

Methodology

To bridge the gap between a source NLP model (RoBERTa) and a target Vision Transformer (ViT), the authors systematically explore three increasingly sophisticated transfer mechanisms:

  1. Frozen Prompt Transfer: A baseline approach where text-pretrained prompts are plugged directly into a vision model without any modification, testing if "raw" cross-modal knowledge transfers naturally.
  2. Projection Transfer: A linear layer is trained to map the text prompt embeddings into the vision model's latent space, acting as a translator between the two distinct representational "languages."
Overview of Source Prompt Tuning, Frozen Prompt Transfer, and Projection Transfer.
  1. Attention Transfer: The most advanced method proposed, which utilizes a Prompt Concentrator (an attention block) to selectively extract and reorganize knowledge from the source prompt. It simultaneously injects a small set of learnable "target prompts" to capture task-specific visual nuances that text alone cannot provide.

Crucially, the authors introduce a novel framework to estimate transferability. Rather than relying solely on task similarity, they decompose the problem into two measurable metrics:

  • Modality Gap ($G_M$): Measured using Maximum Mean Discrepancy (MMD) to quantify how different the source prompt distribution is from the target image patch distribution.
  • Task Gap ($G_T$): Measured by using a "universal projector" to map source prompts into a shared space, allowing comparison to a "gold standard" vision prompt via cosine similarity.

The study's scope is extensive, transferring prompts from 13 source NLP tasks (spanning Sentiment Analysis, Natural Language Inference, Ethical Judgment, etc.) to the VTAB-1K benchmark, which comprises 19 diverse image classification tasks (Natural, Specialized, and Structured).

Key Findings and Results

Text Knowledge is Modality-Agnostic

Surprisingly, the study reveals that 61.5% of text-pretrained prompts outperformed randomly initialized prompts when applied directly to vision tasks. This suggests that the underlying "concepts" learned during prompt tuning on text—such as logical structures, feature weighting, or focus patterns—are fundamentally useful for visual processing as well.

Heatmaps detailing the relative performance of Frozen and Projection Transfer against random initialization and vanilla tuning baselines.

The Necessity of Measuring the Modality Gap

Previous in-modality transfer studies largely ignored the distribution of the data itself. This paper proves that in cross-modality settings, accounting for the physical difference between data types (pixels vs. tokens) is mandatory to accurately predict which prompt will perform best. Their dual-gap estimation method ($G_M$ & $G_T$) achieved a Kendall’s coefficient of 80.63, vastly outperforming traditional methods like Average Cosine Similarity (-10.86).

State-of-the-Art Performance

The proposed Attention Transfer method achieved a mean accuracy of 53.47% across the VTAB-1K benchmark. This notably outperforms the recent Self-Prompt Tuning (SPT) benchmark (52.86%), which was specifically designed for vision prompt initialization. Furthermore, on specific "Structured" tasks (like dSprites/loc), projection transfer from text prompts provided massive gains over vanilla visual prompt tuning.

Limitations and Future Directions

While groundbreaking, the study acknowledges a few limitations. The experiments primarily focused on RoBERTa (source) and ViT (target), leaving room to verify if these findings scale to larger multimodal architectures (like Llama or SigLIP). Additionally, training the "universal projector" for task gap estimation introduces a slight computational overhead, though it remains significantly cheaper than full prompt tuning.

Future work points toward Prompt Ensembling—combining knowledge from multiple diverse NLP tasks (e.g., merging sentiment analysis with logical inference) to create a robust, generalized "super-prompt" for downstream vision tasks.

Summary updated

BibTeX
@inproceedings{zhang2025release,
  author = {Ningyuan Zhang and Jie Lu and Keqiuyin Li and Zhen Fang and Guangquan Zhang},
  title = {{Release the Powers of Prompt Tuning: Cross-Modality Prompt Transfer}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=SYnIf4LxAG},
}
Figure