Visual-Semantic Graph Matching Net for Zero-Shot Learning

Bowen Duan, Shiming Chen, Yufei Guo, Guo-Sen Xie, Weiping Ding, Yisong Wang · DOI

Abstract

Zero-shot learning (ZSL) aims to leverage additional semantic information to recognize unseen classes. To transfer knowledge from seen to unseen classes, most ZSL methods often learn a shared embedding space by simply aligning visual embeddings with semantic prototypes. However, methods trained under this paradigm often struggle to learn robust embedding space because they align the two modalities in an isolated manner among classes, which ignore the crucial class relationship during the alignment process. To address the aforementioned challenges, this article proposes a visual-semantic graph matching net (VSGMN), which leverages semantic relationships among classes to aid in visual-semantic embedding. VSGMN uses a graph build net (GBN) and a graph matching net (GMN) to achieve two-stage visual-semantic alignment. Specifically, GBN first uses an embedding-based approach to build visual and semantic graphs in the semantic space and align the embedding with its prototype for first-stage alignment. In addition, to supplement unseen class relationships in these graphs, GBN also builds the unseen class nodes based on semantic relationships. In the second stage, GMN continuously integrates neighbor and cross-graph information into the constructed graph nodes and aligns the node relationships between the two graphs under the class relationship constraint. Extensive experiments on three benchmark datasets demonstrate that VSGMN achieves superior performance in both conventional and generalized ZSL (GZSL) scenarios.

Introduction

Zero-Shot Learning (ZSL) is a fundamental challenge in computer vision: recognizing objects from categories that were not present during the training phase. To bridge this gap, models typically map visual features and semantic prototypes (e.g., attribute vectors) into a shared embedding space.

However, traditional methods often suffer from isolated alignment. As shown in Figure 1, standard visual-semantic embedding methods map individual images to prototypes without considering the broader structural relationships between classes. This neglect of class relationships leads to a brittle embedding space where unseen objects are easily misclassified into seen categories—a phenomenon known as the "bias problem" in Generalized ZSL (GZSL).

Comparison of VSGMN with existing visual-semantic embedding and category-relation based methods.

The VSGMN Framework

To overcome these limitations, we propose the Visual-Semantic Graph Matching Net (VSGMN). Instead of point-to-point matching, VSGMN treats ZSL as a graph matching problem, aligning the topological structures of the visual and semantic domains.

1. Graph Build Net (GBN)

The GBN performs the initial alignment and constructs the graphs. A key challenge in ZSL is the absence of visual features for unseen classes during training. GBN addresses this by generating virtual unseen visual features. These are "hallucinated" by aggregating features from semantically similar seen classes. To ensure these virtual features do not introduce noise, a Virtual Embedding Mask is employed to filter the generated data before it is integrated into the visual graph.

2. Graph Matching Net (GMN)

The GMN is the core component that achieves structural alignment through two main mechanisms:

  • Intra-graph Propagation: Using Graph Neural Networks (GNNs), nodes within each graph (visual and semantic) exchange information with their neighbors, capturing higher-order relational dependencies.
  • Cross-graph Matching: The model employs a Class Relationship Constraint Loss ($L_{CRC}$). By minimizing the KL divergence between the adjacency matrices of the visual and semantic graphs, the model forces the visual space to mirror the well-defined relationships of the semantic space.
Detailed architecture of the Visual-Semantic Graph Matching Net (VSGMN), featuring the Graph Build Net (GBN) and Graph Matching Net (GMN).

Experimental Evaluation

The VSGMN was evaluated on three benchmark datasets: CUB (fine-grained birds), SUN (fine-grained scenes), and AWA2 (coarse-grained animals).

Key Results

VSGMN demonstrated state-of-the-art performance among embedding-based methods:

  • Accuracy Improvements: On the AWA2 dataset, VSGMN improved the Harmonic mean (H-score) by 0.9% over the baseline. Significant gains were also observed on CUB (1.3%) and SUN (0.3%).
  • Fine-Grained Recognition: The model's performance on the CUB dataset (77.8% CZSL accuracy) highlights the effectiveness of relationship constraints in distinguishing between highly similar classes.
  • Structural Robustness: Ablation studies confirmed that both the Graph Matching (GM) and Cross-Graph (CG) components are essential, proving that aligning the "web" of class relationships is superior to simple coordinate-based mapping.

Conclusion

VSGMN shifts the ZSL paradigm from isolated point alignment to holistic graph matching. By explicitly modeling class relationships and leveraging virtual features for unseen categories, the framework creates a more robust and discriminative embedding space. Future work will focus on optimizing the computational efficiency of graph construction and exploring more advanced generative techniques for unseen class features.

Summary updated

BibTeX
@article{duan2024visual,
  author = {Bowen Duan and Shiming Chen and Yufei Guo and Guo-Sen Xie and Weiping Ding and Yisong Wang},
  title = {{Visual-Semantic Graph Matching Net for Zero-Shot Learning}},
  journal = {IEEE Transactions on Neural Networks and Learning Systems},
  year = {2024},
  doi = {10.1109/tnnls.2024.3499377},
}
Figure