HPT++:结合多粒度知识生成与改进结构建模的视觉语言模型层次化提示
HPT++: Hierarchically Prompting Vision-Language Models with Multi-Granularity Knowledge Generation and Improved Structure Modeling
AI总结:
本文提出HPT++方法,通过利用LLM构建结构化知识图,结合多粒度知识生成、关系驱动注意力重加权及层次化文本编码器一致性约束,同时建模结构化与传统语言知识,有效提升了视觉语言模型在多种下游任务中的泛化性能。
摘要:
提示学习已成为将视觉语言基础模型(VLMs)如CLIP适配到下游任务的主流策略。随着大型语言模型(LLMs)的出现,近期研究探索了利用类别相关描述来增强提示有效性的潜力。然而,传统描述缺乏表示与特定类别相关的实体或属性等关键元素之间相互联系所需的结构化信息。由于现有的提示微调方法很少考虑管理结构化知识,本文主张利用LLMs为每个描述构建图,以优先处理此类结构化知识。因此,我们提出了一种名为层次化提示微调(HPT)的新方法,能够同时建模结构化和传统语言知识。具体而言,我们引入了关系引导注意力模块,以捕获实体和属性之间的成对关联,用于低层提示学习。此外,通过结合建模整体语义的高层和全局层提示,所提出的层次结构建立了跨层互联,并使模型能够处理更复杂和长期的关系。最后,通过增强多粒度知识生成,重新设计关系驱动的注意力重加权模块,并在层次化文本编码器中引入一致性约束,我们提出了HPT++,进一步提升了HPT的性能。我们的实验涵盖了广泛的评估设置,包括基类到新类泛化、跨数据集评估和域泛化。大量结果和消融研究证明了我们方法的有效性,其性能始终优于现有的SOTA方法。
英文摘要:
Prompt learning has become a prevalent strategy for adapting vision-language foundation models (VLMs) such as CLIP to downstream tasks. With the emergence of large language models (LLMs), recent studies have explored the potential of using category-related descriptions to enhance prompt effectiveness. However, conventional descriptions lack explicit structured information necessary to represent the interconnections among key elements like entities or attributes with relation to a particular category. Since existing prompt tuning methods give little consideration to managing structured knowledge, this paper advocates leveraging LLMs to construct a graph for each description to prioritize such structured knowledge. Consequently, we propose a novel approach called Hierarchical Prompt Tuning (HPT), enabling simultaneous modeling of both structured and conventional linguistic knowledge. Specifically, we introduce a relationship-guided attention module to capture pair-wise associations among entities and attributes for low-level prompt learning. In addition, by incorporating high-level and global-level prompts modeling overall semantics, the proposed hierarchical structure forges cross-level interlinks and empowers the model to handle more complex and long-term relationships. Finally, by enhancing multi-granularity knowledge generation, redesigning the relationship-driven attention re-weighting module, and incorporating consistent constraints on the hierarchical text encoder, we propose HPT++, which further improves the performance of HPT. Our experiments are conducted across a wide range of evaluation settings, including base-to-new generalization, cross-dataset evaluation, and domain generalization. Extensive results and ablation studies demonstrate the effectiveness of our methods, which consistently outperform existing SOTA methods.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。