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

基于双重对齐的视觉语言模型上下文感知提示调优

Context-Aware Prompt Tuning for Vision-Language Model with Dual-Alignment

Shanghai Jiao Tong University(上海交通大学);ByteDance Inc(字节跳动公司)

Hongyu Hu, Tiancheng Lin, Jie Wang, Zhenbang Sun, Yi Xu

AI总结:

提出 DuAl-PT 方法,通过引入预训练 LLM 生成上下文描述并结合显式与隐式建模,利用双重对齐学习上下文感知提示,在 11 个数据集的小样本识别与基类到新类泛化上取得优异性能。

摘要:

大规模视觉语言模型(VLMs),例如 CLIP,从海量训练数据中学习广泛的视觉概念,展现出卓越的泛化能力。已有大量提示学习方法被提出,旨在仅用少量训练样本即可高效地将 VLMs 适配到下游任务。我们提出了一种新方法,通过引入预训练大语言模型(LLMs)来改进 VLMs 的提示学习,称为双重对齐提示调优(Dual-Aligned Prompt Tuning, DuAl-PT)。可学习的提示(如 CoOp)通过端到端训练隐式建模上下文,难以控制和解释。而由 LLMs(如 GPT-3)生成的显式上下文描述虽可直接用于零样本分类,但此类提示过度依赖 LLMs 且在小样本领域仍研究不足。在 DuAl-PT 中,我们提出学习更具上下文感知能力的提示,同时受益于显式与隐式上下文建模。为此,我们引入预训练 LLM 生成上下文描述,通过对齐促使提示学习 LLM 的知识,并实现提示与局部图像特征之间的对齐。实验表明,DuAl-PT 在 11 个下游数据集的小样本识别与基类到新类泛化任务上均取得优异性能。希望 DuAl-PT 能作为强有力的基线。代码将公开提供。

英文摘要:

Large-scale vision-language models (VLMs), e.g., CLIP, learn broad visual concepts from tedious training data, showing superb generalization ability. Amount of prompt learning methods have been proposed to efficiently adapt the VLMs to downstream tasks with only a few training samples. We introduce a novel method to improve the prompt learning of vision-language models by incorporating pre-trained large language models (LLMs), called Dual-Aligned Prompt Tuning (DuAl-PT). Learnable prompts, like CoOp, implicitly model the context through end-to-end training, which are difficult to control and interpret. While explicit context descriptions generated by LLMs, like GPT-3, can be directly used for zero-shot classification, such prompts are overly relying on LLMs and still underexplored in few-shot domains. With DuAl-PT, we propose to learn more context-aware prompts, benefiting from both explicit and implicit context modeling. To achieve this, we introduce a pre-trained LLM to generate context descriptions, and we encourage the prompts to learn from the LLM's knowledge by alignment, as well as the alignment between prompts and local image features. Empirically, DuAl-PT achieves superior performance on 11 downstream datasets on few-shot recognition and base-to-new generalization. Hopefully, DuAl-PT can serve as a strong baseline. Code will be available.

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

↑