Semantic Compositional Learning for Low-shot Scene Graph Generation

Tao He, Lianli Gao, Jingkuan Song, Jianfei Cai, Yuan-Fang LiarXiv 2021

Introduction

Scene Graph Generation (SGG) aims to transform visual data into structured representations where nodes represent objects and edges denote their semantic relationships. While foundational for high-level tasks like visual reasoning and navigation, SGG is plagued by a severe "long-tail" distribution in datasets like Visual Genome. Common relations (e.g., "man wearing shirt") dominate training, causing models to fail on rare but critical predicates (e.g., "flying in"). This research introduces Semantic Compositional Learning (DeC), a plug-and-play strategy designed to alleviate this imbalance by "imagining" new training scenarios through object decomposition and recomposition.

Methodology: The DeC Framework

The core of the proposed approach is the Decomposition and Composition (DeC) strategy. Instead of relying solely on existing image-predicate pairs, the framework generates synthetic yet realistic training samples by swapping objects between different contexts.

The DeC framework architecture, illustrating the pipeline from object detection to relation composition and loss calculation.

The process involves four primary stages:

  1. Anchor Relation Selection & Decomposition: The model identifies "Anchor Relations"—triples where one object is deemed "unessential" to the predicate's visual definition. For instance, in <man, standing on, skateboard>, the man's pose is the primary indicator of "standing on." The unessential object (the skateboard) is identified using geometric cues like bounding box area and Intersection over Union (IoU).
  2. Visual Components Dictionary: A global dictionary stores object features (visual, spatial, and semantic) extracted from the training set.
  3. Relation Composition: New triples are synthesized by replacing the unessential object with a candidate from the dictionary.
  4. Intra-class Composition: Swapping an object with another of the same category (e.g., a different car) to improve visual generalization.
  5. Inter-class Composition: Swapping with a semantically similar category (e.g., "car" to "bus") using language priors to facilitate zero-shot learning.
  6. Geometric Filtering: To maintain realism, a shape-similarity metric ensures the new object's bounding box is compatible with the original relationship's spatial context.

Experimental Results

The DeC strategy was evaluated on the Visual Genome benchmark using several baseline models, including Motifs and GPSN. The results demonstrate a significant breakthrough in handling the long-tail distribution.

Visual motivation (a) and performance comparison (b) showing the massive recall gains for rare predicates using the DeC-enhanced Motifs model.

Key findings include:

  • Substantial Gains on Rare Predicates: The DeC-enhanced models improved baseline performance by nearly 50% on average. For the rarest predicate, "flying in" (which has only 5 training samples), the model achieved a 100% Recall@100, whereas standard models failed completely.
  • Zero-Shot Performance: By composing unseen triples during training, DeC significantly outperformed state-of-the-art models like TDE in Zero-Shot Relation Retrieval.
  • Efficiency: The use of simple geometric shape similarity proved to be a computationally efficient alternative to complex visual feature matching for finding compatible objects.

Conclusion and Future Work

Semantic Compositional Learning effectively addresses the data scarcity problem in SGG by leveraging the inherent modularity of visual relationships. While the model shows a slight performance trade-off on extremely common "head" relations due to reduced bias, its ability to "slay the tail" makes it a powerful tool for robust scene understanding. Future work may explore extending this compositional logic to dynamic tasks like Human-Object Interaction (HOI) detection.

Summary updated

BibTeX
@misc{he2021semantic,
  author = {Tao He and Lianli Gao and Jingkuan Song and Jianfei Cai and Yuan-Fang Li},
  title = {{Semantic Compositional Learning for Low-shot Scene Graph Generation}},
  year = {2021},
  eprint = {2108.08600},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2108.08600},
}
Figure