Exploring Hierarchical Graph Representation for Large-Scale Zero-Shot Image Classification

Kai Yi, Xiaoqian Shen, Yunhao Gou, Mohamed Elhoseiny

Zero-Shot Learning (ZSL) aims to recognize objects from categories never seen during training by leveraging semantic descriptions. While ZSL has shown promise on small datasets, scaling it to "wild" benchmarks like ImageNet-21K—which contains over 21,000 fine-grained categories—remains a significant challenge. This paper introduces HGR-Net (Hierarchical Graphical knowledge Representation network), a novel approach that achieves a 7% performance boost by exploiting the inherent hierarchical relationships between classes.

The Challenge of Large-Scale Zero-Shot Learning

Existing large-scale ZSL models face two primary bottlenecks. First, standard text embeddings (such as GloVe or Word2Vec) often lack the discriminative power to distinguish between highly similar subspecies. Second, most models treat classification as a "flat" task, where every incorrect label is penalized equally. In reality, misclassifying a "Husky" as a "Wolf" is a more semantic mistake than misclassifying it as a "Toaster."

The hierarchical structure of categories in WordNet, illustrating ancestral paths from specific breeds to general concepts like 'animal'.

By ignoring these relationships, models fail to capture the hierarchical nuance essential for transferring knowledge from seen to unseen classes. HGR-Net addresses this by treating a specific category, such as a "Hunting Dog," as both a unique breed and a member of broader ancestral groups like "Dog" and "Animal."

HGR-Net: Architecture and Hierarchical Contrastive Learning

The core innovation of HGR-Net is the Hierarchical Contrastive Loss, which utilizes a Directed Acyclic Graph (DAG) derived from WordNet to guide the learning process. Unlike flat models, HGR-Net identifies the full ancestral path for every image and performs learning at multiple levels of abstraction.

The HGR-Net architecture, featuring hierarchical path tracking, a two-level contrastive loop, and adaptive loss re-weighting.

Key Technical Components

  • Two-Level Contrastive Loop: The model employs an Outer Loop to iterate through hierarchical levels (from abstract to concrete) and an Inner Loop to perform contrastive learning at each level. By comparing an image against its "siblings" in the graph (e.g., comparing a Husky to a Malamute), the model learns highly discriminative features.
  • Adaptive Re-weighting: Recognizing that not all levels of the hierarchy are equally informative, HGR-Net uses a learnable attention mechanism to dynamically weight the importance of different conceptual levels during training.
  • Transformer-based Encoders: The system utilizes pre-trained CLIP (Vision Transformer) encoders, providing a robust foundation for vision-language alignment.

Key Results and Insights

HGR-Net sets a new state-of-the-art on the ImageNet-21K benchmark, boosting Hit@1 performance by 7% over previous methods. Beyond standard accuracy, the authors introduced new metrics—Top-Overlap Ratio (TOR) and Point-Overlap Ratio (POR)—to measure how well a model understands general categories even when it misses a specific label. HGR-Net dominated these metrics, proving its superior grasp of class relationships.

Furthermore, the hierarchy acts as a powerful regularizer, preventing the model from overfitting to specific visual features of seen classes. This leads to remarkable efficiency in "low-shot" scenarios; in 10-shot tests, HGR-Net's performance was nearly double that of competitive baselines, suggesting the hierarchical structure provides a more effective "mental map" for rapid learning.

Conclusion

By moving beyond flat classification and embracing the structured nature of human knowledge, HGR-Net demonstrates that hierarchical representation is key to scaling visual recognition. While the method currently relies on the quality of the underlying WordNet graph and involves higher computational complexity than flat models, it opens new avenues for multi-modal tasks like image retrieval and captioning in massive, fine-grained category spaces.

Summary updated

BibTeX
@inproceedings{yi2022exploring,
  author = {Kai Yi and Xiaoqian Shen and Yunhao Gou and Mohamed Elhoseiny},
  title = {{Exploring Hierarchical Graph Representation for Large-Scale Zero-Shot Image Classification}},
  booktitle = {European Conference on Computer Vision},
  year = {2022},
  doi = {10.1007/978-3-031-20044-1\_7},
}
Figure