Prototype-Based Embedding Network for Scene Graph Generation

Chaofan Zheng, Xinyu Lyu, Lianli Gao, Bo Dai, Jingkuan Song

Abstract

Scene Graph Generation (SGG) aims to transform images into structured semantic graphs, yet it is often hindered by significant intra-class variation and inter-class similarity. This paper introduces the Prototype-based Embedding Network (PE-Net), a framework that maps entities and relationships into a shared semantic space aligned with class-representative "prototypes." By enforcing compact clusters for identical relationships and distinct separation between different ones, PE-Net achieves state-of-the-art performance on major benchmarks, particularly in identifying rare, fine-grained predicates.

Introduction

Scene Graph Generation (SGG) is a fundamental task in computer vision that involves identifying objects (entities) and their interactions (predicates) within an image. While critical for downstream applications such as image retrieval and Visual Question Answering (VQA), SGG faces two primary challenges that limit the effectiveness of traditional models:

  1. Intra-class Variation: The visual manifestation of a relationship can vary wildly depending on the participants. For example, the visual features of "eating" differ significantly when the subject is a human eating pizza versus a giraffe eating leaves.
  2. Inter-class Similarity: Distinct relationship categories often share nearly identical visual contexts. A person "holding" a plate and "eating" from a plate may appear visually similar, leading models to default to generic, high-frequency predicates like "on" or "near"—a phenomenon known as long-tail bias.

To address these hurdles, the Prototype-based Embedding Network (PE-Net) shifts the focus from raw visual feature matching to a structured semantic space anchored by class prototypes.

The PE-Net Framework

PE-Net introduces a methodology that aligns visual features with semantic anchors derived from word embeddings (e.g., GloVe). The architecture is built upon three core components:

Prototype-based Modeling

Rather than relying solely on noisy visual features from a detector, PE-Net utilizes a gating mechanism to filter out class-irrelevant visual information. These filtered features are then aligned with fixed semantic prototypes, which serve as stable anchors for each relationship category.

Prototype-guided Learning (PL)

To ensure that instance features are correctly categorized, the PL strategy employs two specific constraints:

  • Cosine Similarity: Aligns the angles of instance features with their respective prototypes.
  • Triplet Loss: Uses Euclidean distance to ensure that an instance is physically closer to its correct prototype than to any other prototype in the latent space.

Prototype Regularization (PR)

To prevent overlap between different relationship categories, PR "pushes" the prototypes themselves apart. By utilizing $l_{2,1}$-norm minimization and widening Euclidean distances between prototypes, the model ensures that the "territory" for each relationship remains distinct and non-overlapping.

Experimental Evaluation

PE-Net was evaluated on two gold-standard benchmarks: Visual Genome (VG) and Open Images (OI) V6.

Beyond standard accuracy metrics, the authors introduced two new metrics to measure the quality of the latent space: Intra-class Variance (IV) and Intra-class to Inter-class Variance Ratio (IIVR). These metrics confirmed that PE-Net creates significantly tighter and more distinct clusters compared to previous architectures like "Motifs."

Key Results

  • State-of-the-Art Performance: On the Visual Genome PredCls task, PE-Net achieved a Mean Recall (mR@100) of 33.8%, a significant improvement over the previous state-of-the-art of approximately 30.4%.
  • Zero-shot Generalization: The model demonstrated superior performance in predicting relationship triplets not seen during training, reaching 20.89% on Zero-shot Recall@100 (PredCls), outperforming existing de-biasing methods like TDE.
  • Latent Space Clarity: t-SNE visualizations indicate that PE-Net produces clean, separated feature clusters centered around prototypes, whereas traditional models often result in overlapping, ambiguous feature clouds.

Conclusion

PE-Net demonstrates that semantic stability is a powerful tool for overcoming visual ambiguity in Scene Graph Generation. By anchoring visual features to semantic prototypes and regularizing the latent space, the model achieves superior robustness and generalization. While the system remains dependent on the quality of the underlying object detector, future work aims to integrate prototype-based modeling directly into the detection phase to create a more unified, end-to-end scene understanding framework.

Summary updated

BibTeX
@inproceedings{zheng2023prototype,
  author = {Chaofan Zheng and Xinyu Lyu and Lianli Gao and Bo Dai and Jingkuan Song},
  title = {{Prototype-Based Embedding Network for Scene Graph Generation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2023},
}
Figure