Conditional Prompt Learning for Vision-Language Models

计算机科学 人工智能 一般化 机器学习 背景(考古学) 集合(抽象数据类型) 班级(哲学) 编码(集合论) 领域(数学分析) 自然语言处理 程序设计语言 数学 生物 数学分析 古生物学
作者
Kaiyang Zhou,Jingkang Yang,Chen Change Loy,Ziwei Liu
标识
DOI:10.1109/cvpr52688.2022.01631
摘要

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.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
刚刚
paige完成签到,获得积分10
1秒前
1秒前
刘小t发布了新的文献求助10
2秒前
张靖完成签到,获得积分10
2秒前
Hanoi347发布了新的文献求助10
4秒前
liaosion发布了新的文献求助10
4秒前
阿may完成签到,获得积分10
5秒前
5秒前
6秒前
爆米花应助刘小文采纳,获得10
6秒前
YJ完成签到,获得积分10
7秒前
xupeng发布了新的文献求助10
7秒前
7秒前
科研通AI6.1应助WN采纳,获得30
8秒前
夏12完成签到,获得积分10
8秒前
8秒前
YJ发布了新的文献求助10
10秒前
永远55度发布了新的文献求助10
10秒前
11秒前
在水一方应助xupeng采纳,获得10
12秒前
12秒前
跳跃白云发布了新的文献求助10
13秒前
林yp发布了新的文献求助20
13秒前
13秒前
李爱国应助科研通管家采纳,获得10
15秒前
池木发布了新的文献求助10
15秒前
15秒前
小二郎应助科研通管家采纳,获得10
15秒前
研友_VZG7GZ应助科研通管家采纳,获得10
15秒前
15秒前
xuanqing发布了新的文献求助20
15秒前
15秒前
Lucas应助科研通管家采纳,获得10
15秒前
无花果应助科研通管家采纳,获得10
15秒前
CipherSage应助科研通管家采纳,获得10
15秒前
SciGPT应助科研通管家采纳,获得10
15秒前
15秒前
15秒前
李健应助科研通管家采纳,获得10
15秒前
高分求助中
Clinical Epidemiology: The Essentials, 6e 10000
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
The Graphene Handbook (2019 Edition) 800
Adhesion Science: Principles & Practice 800
Signals, Systems, and Signal Processing 610
Fundamentals of Pharmaceutical and Biologics Regulations: A Global Perspective, Second Edition 600
The Immune System (Fifth Edition) 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 物理 内科学 复合材料 催化作用 物理化学 光电子学 电极 细胞生物学 基因 无机化学
热门帖子
关注 科研通微信公众号,转发送积分 6567788
求助须知:如何正确求助?哪些是违规求助? 8347557
关于积分的说明 17884843
捐赠科研通 5694371
什么是DOI,文献DOI怎么找? 2943911
邀请新用户注册赠送积分活动 1919816
关于科研通互助平台的介绍 1795530