CPT: Colorful Prompt Tuning for Pre-trained Vision-Language Models

Yuan Yao, Ao Zhang, Zhengyan Zhang, Zhiyuan Liu, Tat-Seng Chua +1 more
9/24/2021
267 citations
cs.CVcs.CL
lora-peft-merging

Official code: thunlp/CPT (50 stars, Python, MIT, last commit 2022-11-01).

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

thunlp/CPTOfficial100%
MIT

Colorful Prompt Tuning for Pre-trained Vision-Language Models

503Python, CudaApr 28, 20224 years agoMIT

Similar Papers

Cite this paper

@article{yao2021cpt,
  title  = {CPT: Colorful Prompt Tuning for Pre-trained Vision-Language Models},
  author = {Yuan Yao and Ao Zhang and Zhengyan Zhang and Zhiyuan Liu and Tat-Seng Chua and Maosong Sun},
  year   = {2021},
  eprint = {2109.11797},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2109.11797}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2109.11797.svg)](https://codeofpaper.com/paper/2109.11797)

Discussion