arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2312.06401cs.CV
收藏

通过图像自适应线索进行复合文本引导的提示调优

Compound Text-Guided Prompt Tuning via Image-Adaptive Cues

Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);University of Chinese Academy of Sciences(中国科学院大学);MEGVII Technology(旷视科技);CAIR, HKISI, Chinese Academy of Sciences(中国科学院香港创新研究院人工智能与机器人创新中心)

Hao Tan, Jun Li, Yizhuang Zhou, Jun Wan, Zhen Lei, Xiangyu Zhang

AI总结:

针对提示调优内存开销大且依赖类别名称的问题,本文提出TGP-T,利用类别级与内容级文本监督及Bonder视觉条件模块,在降低93%显存的同时提升16-shot ImageNet性能2.5%。

摘要:

诸如CLIP之类的视觉-语言模型(VLM)已展现出卓越的下游任务泛化能力。然而,现有的基于提示调优的框架需要为所有类别并行化可学习的文本输入,当目标数据集中存在大量类别时,会遭受巨大的GPU内存消耗。此外,以往工作要求在提示中包含类别名称,在处理模糊的类别名称时表现欠佳。为解决这些不足,我们提出了复合文本引导提示调优(TGP-T),它显著降低了资源需求,同时取得了优越性能。我们将文本监督引入提示优化,这带来两点益处:1)在推理期间解除模型对预定义类别名称的依赖,从而实现更灵活的提示生成;2)减少文本编码器的输入数量,显著降低GPU内存消耗。具体而言,我们发现复合文本监督(即类别级和内容级监督)非常有效,因为它们分别提供类间可分性并捕捉类内变化。此外,我们通过一个名为Bonder的模块,使提示生成以视觉特征为条件,这促进了提示与视觉特征之间的对齐。在小样本识别和域泛化上的大量实验表明,TGP-T以持续更低的训练成本取得了优越性能。它将GPU内存使用降低93%,并在16-shot ImageNet上获得2.5%的性能提升。代码可在https://github.com/EricTan7/TGP-T获取。

英文摘要:

Vision-Language Models (VLMs) such as CLIP have demonstrated remarkable generalization capabilities to downstream tasks. However, existing prompt tuning based frameworks need to parallelize learnable textual inputs for all categories, suffering from massive GPU memory consumption when there is a large number of categories in the target dataset. Moreover, previous works require to include category names within prompts, exhibiting subpar performance when dealing with ambiguous category names. To address these shortcomings, we propose Compound Text-Guided Prompt Tuning (TGP-T) that significantly reduces resource demand while achieving superior performance. We introduce text supervision to the optimization of prompts, which enables two benefits: 1) releasing the model reliance on the pre-defined category names during inference, thereby enabling more flexible prompt generation; 2) reducing the number of inputs to the text encoder, which decreases GPU memory consumption significantly. Specifically, we found that compound text supervisions, i.e., category-wise and content-wise, is highly effective, since they provide inter-class separability and capture intra-class variations, respectively. Moreover, we condition the prompt generation on visual features through a module called Bonder, which facilitates the alignment between prompts and visual features. Extensive experiments on few-shot recognition and domain generalization demonstrate that TGP-T achieves superior performance with consistently lower training costs. It reduces GPU memory usage by 93% and attains a 2.5% performance gain on 16-shot ImageNet. The code is available at https://github.com/EricTan7/TGP-T.

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

↑