paper-with-me

홈 › Papers

Conditional Prompt Learning for Vision-Language Models

2022-03-10 · CVPR 2022 1 · Kaiyang Zhou, Jingkang Yang, Chen Change Loy, Ziwei Liu

With the rise of powerful pre-trained vision-language models like CLIP, it becomes essential to investigate ways to adapt these models to downstream datasets. A recently proposed method named Context Optimization (CoOp) introduces the concept of prompt learning -- a recent trend in NLP -- to the vision domain for adapting pre-trained vision-language models. Specifically, CoOp turns context words in a prompt into a set of learnable vectors and, with only a few labeled images for learning, can achieve huge improvements over intensively-tuned manual prompts. In our study we identify a critical problem of CoOp: the learned context is not generalizable to wider unseen classes within the same dataset, suggesting that CoOp overfits base classes observed during training. To address the problem, we propose Conditional Context Optimization (CoCoOp), which extends CoOp by further learning a lightweight neural network to generate for each image an input-conditional token (vector). Compared to CoOp's static prompts, our dynamic prompts adapt to each instance and are thus less sensitive to class shift. Extensive experiments show that CoCoOp generalizes much better than CoOp to unseen classes, even showing promising transferability beyond a single dataset; and yields stronger domain generalization performance as well. Code is available at https://github.com/KaiyangZhou/CoOp.

📄 PDF Abstract BibTeX arXiv:2203.05557

Code (12)

kaiyangzhou/coop 공식 구현 pytorch
Gahyeonkim09/AAPL pytorch
ThomasWangY/2024-AAAI-HPT pytorch
Vill-Lab/2024-TIP-MetaPrompt pytorch
azshue/TPT pytorch
healthx-lab/biomedcoop pytorch
hhenryd/tap pytorch
kaiyangzhou/on-device-dg pytorch
muzairkhattak/multimodal-prompt-learning pytorch
muzairkhattak/protext pytorch
saic-fi/bayesian-prompt-learning pytorch
vill-lab/2024-aaai-hpt pytorch

Tasks

Domain GeneralizationPrompt EngineeringPrompt Learning

Methods 이 논문이 사용한 방법론

CoOp CoOp, or Context Optimization, is an automated prompt engineering method that avoids manual prompt tuning by modeling context words with continuous vectors that are…
BASE 설명 없음
CLIP Contrastive Language-Image Pre-training (CLIP), consisting of a simplified version of ConVIRT trained from scratch, is an efficient method of image representation learning…

Similar Papers 제목 키워드 기반

Multi-modal Mutual-Guidance Conditional Prompt Learning for Vision-Language Models

2025-07-11 · Shijun Yang, Xiang Zhang, Wanqing Zhao, Hangzai Luo 외 arxiv

Prompt learning facilitates the efficient adaptation of Vision-Language Models (VLMs) to various downstream tasks. However, it faces two significant challenges: (1) inadequate modeling of class embedding distributions fo…

Progressive Multi-modal Conditional Prompt Tuning

2024-04-18 · Xiaoyu Qiu, Hao Feng, Yuechen Wang, Wengang Zhou 외

Pre-trained vision-language models (VLMs) have shown remarkable generalization capabilities via prompting, which leverages VLMs as knowledge bases to extract information beneficial for downstream tasks. However, existing…

CoDoL: Conditional Domain Prompt Learning for Out-of-Distribution Generalization

2025-09-18 · Min Zhang, Yuyin Wang, Zhongxiang Dai, Zhikang Chen 외 arxiv

Recent advances in pre-training vision-language models (VLMs), e.g., contrastive language-image pre-training (CLIP) methods, have shown great potential in learning out-of-distribution (OOD) representations. Despite showi…

Exploring Intra-Class Variation Factors With Learnable Cluster Prompts for Semi-Supervised Image Synthesis

2023-01-01 · CVPR 2023 1 · Yunfei Zhang, Xiaoyang Huo, Tianyi Chen, Si Wu 외

Semi-supervised class-conditional image synthesis is typically performed by inferring and injecting class labels into a conditional Generative Adversarial Network (GAN). The supervision in the form of class identity …

Conditional Image GenerationGenerative Adversarial NetworkImage Generation

Accelerating Conditional Prompt Learning via Masked Image Modeling for Vision-Language Models

2025-08-07 · Phuoc-Nguyen Bui, Khanh-Binh Nguyen, Hyunseung Choo arxiv

Vision-language models (VLMs) like CLIP excel in zero-shot learning but often require resource-intensive training to adapt to new tasks. Prompt learning techniques, such as CoOp and CoCoOp, offer efficient adaptation but…

Zero-Shot Learning