arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2307.07397cs.CVcs.LG
收藏

利用合成提示改进 CLIP 的零样本泛化能力

Improving Zero-Shot Generalization for CLIP with Synthesized Prompts

University of Science and Technology of China(中国科学技术大学);Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);University of Chinese Academy of Sciences(中国科学院大学);Beijing Wenge Group(北京文格集团);Nanjing University(南京大学)

Zhengbo Wang, Jian Liang, Ran He, Nan Xu, Zilei Wang, Tieniu Tan

AI总结:

针对部分类别完全无标注的问题,提出即插即用的 SHIP,通过变分自编码器式提示生成器合成视觉特征并结合现成微调方法,显著提升 CLIP 的零样本泛化与迁移性能。

摘要:

随着人们对 CLIP 等预训练视觉-语言模型的兴趣日益增长,近期研究集中于将这些模型适配到下游任务。尽管取得了令人鼓舞的结果,但大多数现有方法都要求所有类别均具备标注数据;由于长尾分布和 Zipf 定律,这在现实应用中可能并不成立。例如,某些类别可能完全缺乏标注数据,如新兴概念。为解决这一问题,我们提出了一种即插即用的生成式方法,名为 SyntHesIzed Prompts(SHIP),用于改进现有微调方法。具体而言,我们遵循变分自编码器,引入一个生成器:该生成器将合成提示及相应类别名称输入 CLIP 的文本编码器,从而重建视觉特征。通过这种方式,我们可以轻松获得其余仅有标签的类别的合成特征。此后,我们结合标注特征与合成特征,使用现成方法对 CLIP 进行微调。在基类到新类泛化、跨数据集迁移学习以及广义零样本学习方面的大量实验证明了本方法的优越性。代码可在 https://github.com/mrflogs/SHIP 获取。

英文摘要:

With the growing interest in pretrained vision-language models like CLIP, recent research has focused on adapting these models to downstream tasks. Despite achieving promising results, most existing methods require labeled data for all classes, which may not hold in real-world applications due to the long tail and Zipf's law. For example, some classes may lack labeled data entirely, such as emerging concepts. To address this problem, we propose a plug-and-play generative approach called \textbf{S}ynt\textbf{H}es\textbf{I}zed \textbf{P}rompts~(\textbf{SHIP}) to improve existing fine-tuning methods. Specifically, we follow variational autoencoders to introduce a generator that reconstructs the visual features by inputting the synthesized prompts and the corresponding class names to the textual encoder of CLIP. In this manner, we easily obtain the synthesized features for the remaining label-only classes. Thereafter, we fine-tune CLIP with off-the-shelf methods by combining labeled and synthesized features. Extensive experiments on base-to-new generalization, cross-dataset transfer learning, and generalized zero-shot learning demonstrate the superiority of our approach. The code is available at \url{https://github.com/mrflogs/SHIP}.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑