Unified Vision and Language Prompt Learning

Yuhang Zang, Wei Li, Kaiyang Zhou, Chen Huang, Chen Change Loy
10/13/2022
cs.CVcs.AI
lora-peft-merging

Official code: yuhangzang/UPT (61 stars, Python, last commit 2025-05-02).

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

yuhangzang/UPTOfficial100%
612Python, ShellOct 13, 20221 years ago

Similar Papers

Cite this paper

@article{zang2022unified,
  title  = {Unified Vision and Language Prompt Learning},
  author = {Yuhang Zang and Wei Li and Kaiyang Zhou and Chen Huang and Chen Change Loy},
  year   = {2022},
  eprint = {2210.07225},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.07225}
}

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/2210.07225.svg)](https://codeofpaper.com/paper/2210.07225)

Discussion