HGCLIP: Exploring Vision-Language Models with Graph Representations for Hierarchical Understanding
Peng Xia, Xingtong Yu, Ming Hu, Lie Ju, Zhiyong Wang, Peibo Duan, Zongyuan Ge
TL;DR
HGCLIP tackles hierarchical image classification by marrying Vision-Language Models with graph-based hierarchies. It introduces learnable multi-modal prompts and dual graph encoders to propagate hierarchical structure into textual and visual representations, while using prototype-based visual terms and attention to align patch-level features with class prototypes. The method achieves state-of-the-art performance across 11 hierarchical benchmarks and demonstrates robustness to noisy hierarchy inputs from large language models and to distribution shifts. This work highlights a scalable, trainable approach to multi-granularity understanding that can adapt to datasets with or without predefined hierarchies, advancing practical hierarchical recognition in vision-language systems.
Abstract
Object categories are typically organized into a multi-granularity taxonomic hierarchy. When classifying categories at different hierarchy levels, traditional uni-modal approaches focus primarily on image features, revealing limitations in complex scenarios. Recent studies integrating Vision-Language Models (VLMs) with class hierarchies have shown promise, yet they fall short of fully exploiting the hierarchical relationships. These efforts are constrained by their inability to perform effectively across varied granularity of categories. To tackle this issue, we propose a novel framework (HGCLIP) that effectively combines CLIP with a deeper exploitation of the Hierarchical class structure via Graph representation learning. We explore constructing the class hierarchy into a graph, with its nodes representing the textual or image features of each category. After passing through a graph encoder, the textual features incorporate hierarchical structure information, while the image features emphasize class-aware features derived from prototypes through the attention mechanism. Our approach demonstrates significant improvements on 11 diverse visual recognition benchmarks. Our codes are fully available at https://github.com/richard-peng-xia/HGCLIP.
