NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Semantic-visual shared knowledge graph for zero-shot learning

Beibei Yu, Cheng Xie, Peng Tang, Bin Li

TL;DR

This paper introduces a "Semantic-Visual Shared Knowledge Graph" (SVKG) to improve zero-shot learning (ZSL) on real-world datasets like ImageNet, which lack pre-defined attributes. By combining semantic information from knowledge graphs with fine-grained visual features extracted directly from images, SVKG overcomes the "domain shift" problem and achieves state-of-the-art results.

What Problem Does This Paper Address?

Traditional zero-shot learning (ZSL) methods rely heavily on datasets with pre-defined attributes for each class (e.g., "has wings," "color is blue"). While effective on these benchmark datasets, these methods struggle when applied to real-world scenarios like ImageNet, where such explicit attributes are absent. Recent attempts to use general knowledge graphs (like WordNet) as a substitute for attributes have faced a "domain shift" problem. This means the coarse-grained semantics from these graphs aren't detailed enough to distinguish between visually similar classes, leading to poor performance. The core challenge is how to bridge the gap between high-level semantic information and the fine-grained visual details needed for accurate classification in attribute-scarce environments.

Methods

The authors propose a novel approach centered around a Semantic-Visual Shared Knowledge Graph (SVKG). Here's how it works:

  1. Semantic Embedding: High-level semantic information is captured using word embeddings (from GloVe) for nodes in a knowledge graph (WordNet).
  2. Fine-Grained Visual Feature Extraction: Crucially, instead of relying on pre-defined attributes, the method extracts fine-grained visual features directly from raw images using a pre-trained object detection model (EfficientDet). These features represent specific visual parts (e.g., "head," "wings," "breast") and act as a proxy for detailed attributes.
  3. Graph Construction: The semantic and visual features are integrated into a single graph structure. Semantic nodes are linked by WordNet relations (hyponymy/hypernymy), and visual features are connected to their corresponding semantic object nodes.
  4. Graph Augmentation: To mitigate overfitting and improve generalization, an augmentation node with zero-initialized features is added to the graph, connecting to all seen nodes. This helps moderate the influence of visual features during propagation.
  5. Multi-Modal Graph Convolutional Network (GCN): A GCN is employed to learn representations from this SVKG. This network is designed to fuse both semantic and visual modalities, creating a shared feature space.
  6. Cross-Modal Zero-Shot Learning: Finally, the learned graph representations are used for zero-shot classification. A loss function is introduced to align the graph features with real image features, forcing the model to learn a robust cross-modal mapping.

Datasets

The primary dataset used for evaluation is ImageNet. The authors create specific divisions of ImageNet for their experiments, including:

  • General Group:
    • 2-hops: 1K seen classes, 1.5K unseen classes.
  • 3-hops: 1K seen classes, 7.8K unseen classes.
  • All: 1K seen classes, 20K unseen classes. These "hops" refer to the number of steps in the WordNet graph to connect seen and unseen classes.

  • Detailed Group: This group focuses on specific categories within ImageNet to highlight the impact of fine-grained visual features. It includes four subsets: 'bird', 'snake', 'primate', and 'dog'.

Key Insights and Ideas

  • Visual Features as Attributes: The most significant insight is treating fine-grained visual features extracted from images as a direct substitute for pre-defined attributes. This bypasses the need for manual annotation and addresses the "domain shift" problem by grounding semantics in real visual data.
  • Shared Knowledge Graph: Integrating semantic and visual information into a single graph structure allows for richer representations and better understanding of relationships between classes.
  • Fine-Grained Semantics are Key: The success on real-world datasets hinges on capturing detailed visual semantics, which traditional knowledge graphs alone cannot provide.
  • Augmentation for Robustness: The zero-initialized augmentation node is a clever way to regularize the graph learning process, preventing overfitting and improving generalization.

Key Results

  • State-of-the-Art Performance: The proposed SVKG method achieves state-of-the-art results on ImageNet for zero-shot learning.
  • General Group Improvements: The method shows a significant increase in Top-1 accuracy compared to existing methods, with improvements of +2.8%, +0.5%, and +0.2% for the 2-hops, 3-hops, and "All" divisions, respectively.
  • Detailed Group Performance: In the detailed categories (bird, snake, primate, dog), the SVKG method significantly surpasses other methods on Top-1 to Top-5 accuracy evaluations, sometimes achieving 2-3 times higher accuracy. This highlights the effectiveness of fine-grained visual features.
  • Qualitative Improvements: The method predicts more specific class labels for unseen classes, indicating a deeper understanding of fine-grained distinctions. Visualizations show that SVKG features are more structured and closer to real image features than those from other methods.

Limitations and Future Work

  • Future Work on SVKG: The authors suggest expanding SVKG in the future by incorporating more types of relations and associated nodes, such as color, material, and shape, to further enhance model performance.
  • Performance on Top-k (k>5): While strong on Top-1 and Top-2, the method's performance on higher k-values (Top-5 to Top-20) is sometimes surpassed by methods like CL-DKG. The authors attribute this to fine-grained features potentially weakening generalization ability to some extent.
  • Dependence on Feature Extractor: The performance in the "Detailed" group is shown to be influenced by the quality of the upstream feature extractor (EfficientDet). Better feature extraction leads to better ZSL performance.

Summary updated

BibTeX
@inproceedings{yu2023semantic,
  author = {Beibei Yu and Cheng Xie and Peng Tang and Bin Li},
  title = {{Semantic-visual shared knowledge graph for zero-shot learning}},
  booktitle = {PeerJ Comput. Sci},
  year = {2023},
  url = {https://openreview.net/forum?id=dLyJ46lJWr},
}
Figure