SOTAVerified

Learning Hierarchical Prompt with Structured Linguistic Knowledge for Vision-Language Models

2023-12-11Code Available1· sign in to hype

Yubin Wang, Xinyang Jiang, De Cheng, Dongsheng Li, Cairong Zhao

Code Available — Be the first to reproduce this paper.

Reproduce

Code

Abstract

Prompt learning has become a prevalent strategy for adapting vision-language foundation models to downstream tasks. As large language models (LLMs) have emerged, recent studies have explored the use of category-related descriptions as input to enhance prompt effectiveness. Nevertheless, conventional descriptions fall short of structured information that effectively represents the interconnections among entities or attributes linked to a particular category. To address this limitation and prioritize harnessing structured knowledge, this paper advocates for leveraging LLMs to build a graph for each description to model the entities and attributes describing the category, as well as their correlations. Preexisting prompt tuning methods exhibit inadequacies in managing this structured knowledge. Consequently, we propose a novel approach called Hierarchical Prompt Tuning (HPT), which enables 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. Extensive experiments demonstrate that our HPT shows strong effectiveness and generalizes much better than existing SOTA methods. Our code is available at https://github.com/Vill-Lab/2024-AAAI-HPT.

Tasks

Benchmark Results

DatasetModelMetricClaimedVerifiedStatus
Caltech-101HPTHarmonic mean96.65Unverified
DTDHPTHarmonic mean72.16Unverified
EuroSATHPTHarmonic mean84.82Unverified
FGVC-AircraftHPTHarmonic mean40.28Unverified
Food-101HPTHarmonic mean91.01Unverified
ImageNetHPTHarmonic mean74.17Unverified
ImageNet-AHPTTop-1 accuracy %50.85Unverified
ImageNet-RHPTTop-1 accuracy %77.38Unverified
ImageNet-SHPTTop-1 accuracy %49.36Unverified
ImageNet V2HPTTop-1 accuracy %65.25Unverified
Oxford 102 FlowerHPTHarmonic mean87.16Unverified
Oxford-IIIT Pet DatasetHPTHarmonic mean96.71Unverified
Stanford CarsHPTHarmonic mean75.57Unverified
SUN397HPTHarmonic mean80.88Unverified
UCF101HPTHarmonic mean83.16Unverified

Reproductions