[Paper Review] CPT: Colorful Prompt Tuning for Pre-trained Vision-Language Models
CPT introduces cross-modal prompt tuning that marks image regions with colors and rewrites queries as color-filled templates, enabling strong zero-shot and few-shot visual grounding for pre-trained vision-language models without adding new parameters. It achieves large gains over fine-tuning in low-data regimes and remains competitive in fully supervised settings.
Pre-Trained Vision-Language Models (VL-PTMs) have shown promising capabilities in grounding natural language in image data, facilitating a broad variety of cross-modal tasks. However, we note that there exists a significant gap between the objective forms of model pre-training and fine-tuning, resulting in a need for large amounts of labeled data to stimulate the visual grounding capability of VL-PTMs for downstream tasks. To address the challenge, we present Cross-modal Prompt Tuning (CPT, alternatively, Colorful Prompt Tuning), a novel paradigm for tuning VL-PTMs, which reformulates visual grounding into a fill-in-the-blank problem with color-based co-referential markers in image and text, maximally mitigating the gap. In this way, CPT enables strong few-shot and even zero-shot visual grounding capabilities of VL-PTMs. Comprehensive experimental results show that the prompt-tuned VL-PTMs outperform their fine-tuned counterparts by a large margin (e.g., 17.3% absolute accuracy improvement, and 73.8% relative standard deviation reduction on average with one shot in RefCOCO evaluation). We make the data and code for this paper publicly available at https://github.com/thunlp/CPT.
Motivation & Objective
- Bridge the gap between pre-training (MLM-based objectives) and fine-tuning (task-specific classification) for VL-PTMs.
- Formulate visual grounding as a fill-in-the-blank task using color-based cross-modal prompts.
- Develop a principled method to search for high-quality cross-modal color prompts.
- Demonstrate strong zero-shot and few-shot visual grounding and competitive fully supervised performance.
Proposed method
- Two-part CPT framework: a visual sub-prompt that colors image regions with unique colors, and a textual sub-prompt that places the query in a color-based template.
- Grounding is achieved by recovering the color text that corresponds to the target region via the MLM head, without introducing new parameters.
- Cross-modal prompt search (CPS) jointly optimizes visual appearances and color texts to maximize decoding scores, selecting color pairs that the VL-PTM associates most strongly.
- Image region batching to handle many proposals, with a none-token for batches not containing the target region.
- Extension to visual relation detection using templates that reconstruct relation tokens from masked positions.
Experimental results
Research questions
- RQ1Can cross-modal color prompts enable VL-PTMs to ground referring expressions with minimal or no task-specific fine-tuning?
- RQ2How should one select color appearances and color texts to maximize cross-modal grounding performance across datasets and tasks?
- RQ3Does CPT improve data efficiency and stability in zero-shot and few-shot settings compared to standard fine-tuning?
- RQ4Can CPT be extended to related cross-modal tasks like visual relation detection with minimal architectural changes?
Key findings
- CPT substantially improves zero-shot and few-shot grounding accuracy compared with strong fine-tuning baselines (e.g., on RefCOCO with one shot).
- Using colored segmentation masks as visual prompts yields larger gains than colored blocks, due to better alignment with object outlines.
- CPT achieves much lower relative standard deviation than fine-tuning, indicating greater training stability in low-data regimes.
- In fully supervised settings, CPT-attached prompts perform comparably to strong fine-tuned VL-PTMs, with CPT-Seg often leading.
- Cross-modal prompt search (CPS) improves color selection over naive frequency-based choices, enhancing both mean accuracy and stability.
- CPT extends effectively to visual relation detection, offering competitive zero-/few-shot performance and strong gains over fine-tuning.
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.