Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Tree of Attributes Prompt Learning for Vision-Language Models

About

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.

Tong Ding, Wanhua Li, Zhongqi Miao, Hanspeter Pfister• 2024

Related benchmarks

TaskDatasetResultRank
Image ClassificationEuroSAT
Accuracy46
497
Image ClassificationFlowers102
Accuracy70.93
478
Image ClassificationImageNet--
429
Image ClassificationDTD
Accuracy50.2
419
Image ClassificationUCF101
Top-1 Acc68.9
404
Image ClassificationFood101
Accuracy86.1
309
Image ClassificationStanfordCars
Accuracy80.7
266
Image ClassificationSUN397
Accuracy68.3
246
Image ClassificationFGVCAircraft
Accuracy24.57
225
Image ClassificationCaltech101
Accuracy94.3
162
Showing 10 of 36 rows

Other info

Follow for update