用属性树结构增强视觉语言模型的类别理解能力
Tree of Attributes Prompt Learning for Vision-Language Models
- 基于概念-属性-描述结构生成类别属性树,构建层次化语义知识
- 在11个数据集上实现零样本跨域迁移与少样本分类性能领先
- 适合需要提升模型泛化能力的研究者使用
提示学习在适配视觉语言模型至下游任务方面表现优异。然而,现有方法通常仅将可学习提示标记附加到类别名称上获取文本特征,未能充分利用类别名称所蕴含的丰富上下文。为此,我们提出树状属性提示学习(TAP),首先指导大语言模型为每个类别生成具有“概念-属性-描述”结构的属性树,再通过视觉与文本提示标记学习其层级关系。与仅用无结构描述扩充类别名称的方法不同,本方法实质上从大语言模型中提炼出与类别名相关的结构化知识图谱。此外,设计了显式学习对应视觉属性的文本与视觉提示,使其充当领域专家。同时,基于类别名称生成的通用且多样化的描述可能在特定图像中错误或缺失,为此引入视觉条件池化模块以提取实例相关文本特征。大量实验表明,该方法在零样本基类到新类泛化、跨数据集迁移及少样本分类任务中均优于现有最优方法,在11个不同数据集上表现卓越。代码已公开于https://github.com/HHenryD/TAP。
原文摘要 · Abstract (English)
Prompt learning has proven effective in adapting vision language models for downstream tasks. However, existing methods usually append learnable prompt tokens solely with the category names to obtain textual features, which fails to fully leverage the rich context indicated in the category name. To address this issue, we propose the Tree of Attributes Prompt learning (TAP), which first instructs LLMs to generate a tree of attributes with a "concept - attribute - description" structure for each category, and then learn the hierarchy with vision and text prompt tokens. Unlike existing methods that merely augment category names with a set of unstructured descriptions, our approach essentially distills structured knowledge graphs associated with class names from LLMs. Furthermore, our approach introduces text and vision prompts designed to explicitly learn the corresponding visual attributes, effectively serving as domain experts. Additionally, the general and diverse descriptions generated based on the class names may be wrong or absent in the specific given images. To address this misalignment, we further introduce a vision-conditional pooling module to extract instance-specific text features. Extensive experimental results demonstrate that our approach outperforms state-of-the-art methods on the zero-shot base-to-novel generalization, cross-dataset transfer, as well as few-shot classification across 11 diverse datasets. Code is available at https://github.com/HHenryD/TAP.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。