[Paper Review] Unified Vision and Language Prompt Learning
Proposes Unified Prompt Tuning (UPT) to jointly tune text and visual prompts in vision-language models, outperforming single-modal prompt tuning on few-shot and domain-generalization tasks in CLIP-like setups.
Prompt tuning, a parameter- and data-efficient transfer learning paradigm that tunes only a small number of parameters in a model's input space, has become a trend in the vision community since the emergence of large vision-language models like CLIP. We present a systematic study on two representative prompt tuning methods, namely text prompt tuning and visual prompt tuning. A major finding is that none of the unimodal prompt tuning methods performs consistently well: text prompt tuning fails on data with high intra-class visual variances while visual prompt tuning cannot handle low inter-class variances. To combine the best from both worlds, we propose a simple approach called Unified Prompt Tuning (UPT), which essentially learns a tiny neural network to jointly optimize prompts across different modalities. Extensive experiments on over 11 vision datasets show that UPT achieves a better trade-off than the unimodal counterparts on few-shot learning benchmarks, as well as on domain generalization benchmarks. Code and models will be released to facilitate future research.
Motivation & Objective
- Assess limitations of existing unimodal prompt tuning (text or visual) in VL models like CLIP.
- Develop a multimodal prompt learning method that jointly optimizes prompts across text and visual modalities.
- Demonstrate that unified prompts yield better few-shot and domain-generalization performance across diverse datasets.
Proposed method
- Analyze limitations of text prompt tuning (CoOp) and visual prompt tuning (VPT) using intra-class visual variance and inter-class text variance metrics.
- Introduce Unified Prompt Tuning (UPT): learn a small multimodal prompt U that is transformed by a lightweight Transformer layer to produce modality-specific prompts for text and image encoders.
- Freeze image and text encoders; optimize U and the Transformer theta only.
- Inject transformed prompts into multiple layers of both text and image encoders in a jointly learned fashion.
- Optionally provide layer-wise prompts U^i and split transformed prompts into text and visual parts for insertion.
- Show that self-attention-based transformation of U yields better cross-modal interaction and alignment.
Experimental results
Research questions
- RQ1Can unimodal prompt tuning (text or visual) consistently improve VL model performance across diverse datasets?
- RQ2Does a multimodal, unified prompt better bridge the gap between text classifiers and visual feature spaces than single-modal prompts?
- RQ3How does unified prompt learning perform on few-shot learning and domain generalization compared to CoOp and VPT?
- RQ4What design choices (e.g., shared prompts, MLP vs. Transformer) impact the effectiveness of multimodal prompts?
Key findings
- UPT generally outperforms single-modal prompt tuning (CoOp and VPT) across 11 datasets in few-shot settings.
- In-domain few-shot accuracy gains for UPT over CoOp range around 0.48 to 3.19 percentage points depending on shot count (16-shot showing notable gains).
- UPT also improves over VPT-deep by about 0.89 to 2.70 percentage points across shot settings.
- In domain generalization, UPT achieves competitive results with CoCoOp and often the best results on several target datasets, demonstrating robust OOD performance.
- Ablation studies show that the self-attention based transformation of unified prompts is beneficial over simple joint training or shared prompts, and that MLP-based prompts can be competitive but generally underperform the Transformer approach.
- Qualitative attention visualizations indicate UPT yields stronger self-attention between prompts and image tokens, suggesting better cross-modal interaction.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.