Tree of Attributes Prompt Learning for Vision-Language Models

Tong Ding, Wanhua Li, Zhongqi Miao, Hanspeter Pfister
2/12/2026

No official code found. Best implementation: Gahyeonkim09/AAPL (34 stars, MIT, last commit 2024-05-08). 1 more below.

Abstract

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.

View on arXivView PDF

Code Implementations(2)

HHenryD/TAPCommunity100%
MIT

[ICLR'25] Official repository of paper titled "Tree of Attributes Prompt Learning for Vision-Language Models".

173Shell, PythonApr 22, 20251 years agoMIT
Gahyeonkim09/AAPLCommunity73%
MIT

AAPL: Adding Attributes to Prompt Learning for Vision-Language Models (CVPRw 2024)

342Shell, PythonApr 17, 20242 years agoMIT
prompt-learningvision-language-model

Similar Papers

Cite this paper

@article{ding2026tree,
  title  = {Tree of Attributes Prompt Learning for Vision-Language Models},
  author = {Tong Ding and Wanhua Li and Zhongqi Miao and Hanspeter Pfister},
  year   = {2026},
  eprint = {2410.11201},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2410.11201},
  journal = {ICLR 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2410.11201.svg)](https://codeofpaper.com/paper/2410.11201)

Discussion