通过优化文本与视觉提示,提升视觉语言模型零样本泛化能力。
Constrained Prompt Enhancement for Improving Zero-Shot Generalization of Vision-Language Models
- 用大模型生成语义完备的文本提示,结合拓扑分析筛选关键描述。
- 基于激活图识别判别性视觉区域,去除冗余噪声,生成紧凑视觉提示。
- 采用测试时自适应与最优传输匹配,有效对齐图文特征,适合部署于下游任务。
视觉语言模型(VLMs)在大规模网络数据上预训练后展现出良好的零样本泛化能力,但因预训练与下游任务间存在领域差距,常出现语义错位。现有方法主要依赖类别特定的文本提示和通过裁剪图像区域与文本描述对齐的视觉-文本适配,但仍面临文本提示不完整、视觉提示含噪等问题。本文提出一种新型约束提示增强(CPE)方法,从语义角度构建全面的文本提示与紧凑的视觉提示。具体包括两个核心组件:拓扑引导的同义语义生成(TGSSG)和类别无关的判别区域选择(CADRS)。文本上,利用大语言模型生成每类的同义语义集合,并基于语义模糊熵与持久同调分析构建完整的文本提示;视觉上,通过预训练视觉模型输出的激活图识别判别性区域,有效过滤噪声区域,生成紧凑视觉提示。结合生成的完整文本提示集与紧凑视觉提示集,设计两种基于测试时自适应(TTA)与最优传输(OT)的集对集匹配策略,实现高效视觉-文本对齐,显著提升VLMs的零样本泛化性能。
原文摘要 · Abstract (English)
Vision-language models (VLMs) pre-trained on web-scale data exhibit promising zero-shot generalization but often suffer from semantic misalignment due to domain gaps between pre-training and downstream tasks. Existing approaches primarily focus on text prompting with class-specific descriptions and visual-text adaptation via aligning cropped image regions with textual descriptions. However, they still face the issues of incomplete textual prompts and noisy visual prompts. In this paper, we propose a novel constrained prompt enhancement (CPE) method to improve visual-textual alignment by constructing comprehensive textual prompts and compact visual prompts from the semantic perspective. Specifically, our approach consists of two key components: Topology-Guided Synonymous Semantic Generation (TGSSG) and Category-Agnostic Discriminative Region Selection (CADRS). Textually, to address the issue of incomplete semantic expression in textual prompts, our TGSSG first generates synonymous semantic set for each category via large language models, and constructs comprehensive textual prompts based on semantic ambiguity entropy and persistent homology analysis. Visually, to mitigate the irrelevant visual noise introduced by random cropping, our CADRS identifies discriminative regions with activation maps outputted by a pre-trained vision model, effectively filtering out noisy regions and generating compact visual prompts. Given the comprehensive set of textual prompts and compact set of visual prompts, we introduce two set-to-set matching strategies based on test-time adaptation (TTA) and optimal transport (OT) to achieve effective visual-textual alignment, and so improve zero-shot generalization of VLMs.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。