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

SEP:面向视觉-语言模型的自增强提示微调

SEP: Self-Enhanced Prompt Tuning for Visual-Language Model

Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所);Tianjin University of Technology(天津理工大学);University of Science and Technology of China(中国科学技术大学)

Hantao Yao, Rui Zhang, Lu Yu, Yongdong Zhang, Changsheng Xu

AI总结:

SEP 通过从预训练令牌中自适应生成自增强提示令牌,融合判别性先验知识,提升视觉-语言模型提示微调的判别能力与泛化性能。

摘要:

基于上下文优化(CoOp)的提示微调通过推断额外的可学习提示令牌,能够有效地将视觉-语言模型(VLMs)适配到下游任务。然而,这些令牌的判别性较弱,因为它们独立于预训练令牌,并且无法捕获输入特定的知识,例如类别感知的文本知识或实例感知的视觉知识。利用预训练令牌固有的判别能力和泛化能力,我们提出了一种名为自增强提示微调(SEP)的新方法。SEP 的核心原理是在每个编码器层中,从相应的自预训练令牌适配可学习提示令牌,从而显式地融入判别性先验知识,以增强文本级和视觉级嵌入。此外,SEP 的自增强令牌不仅提升了判别能力,还缓解了未见领域中的领域偏移问题,从而增强了泛化性能。在实际实现中,SEP 在文本/视觉编码器的每一层,为每个输入数据从所有预训练令牌中选择若干代表性令牌。随后,引入令牌融合模块(TFM),通过交叉注意力机制将这些代表性令牌与可学习令牌融合,生成自增强令牌。该自增强令牌随后与所有预训练令牌拼接,作为后续编码器层的输入,以生成相应的嵌入。在多个基准和任务上的综合评估证实了 SEP 在提示微调中的有效性。代码:https://github.com/htyao89/SEP。

英文摘要:

Prompt tuning based on Context Optimization (CoOp) effectively adapts visual-language models (VLMs) to downstream tasks by inferring additional learnable prompt tokens. However, these tokens are less discriminative as they are independent of the pre-trained tokens and fail to capture input-specific knowledge, such as class-aware textual or instance-aware visual knowledge. Leveraging the discriminative and generalization capabilities inherent in pre-trained tokens, we introduce a novel approach named Self-Enhanced Prompt Tuning (SEP). The core principle of SEP involves adapting the learnable prompt tokens at each encoder layer from the corresponding self-pretrained tokens, thereby explicitly incorporating discriminative prior knowledge to enhance both textual-level and visual-level embeddings. Furthermore, SEP's self-enhanced tokens not only boost discrimination but also mitigate domain shifts in unseen domains, enhancing generalization. In practice, SEP selects several representative tokens from all pre-trained tokens for each input data at every layer of the text/visual encoders. Subsequently, a Token Fusion Module (TFM) is introduced to generate a self-enhanced token by merging these representative tokens with the learnable tokens using a cross-attention mechanism. This self-enhanced token is then concatenated with all pre-trained tokens, serving as input for subsequent encoder layers to produce the relevant embeddings. Comprehensive evaluations across various benchmarks and tasks confirm SEP's efficacy in prompt tuning. Code: \href{Code}{https://github.com/htyao89/SEP}.

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

↑