Learning from the Scene and Borrowing from the Rich: Tackling the Long Tail in Scene Graph Generation

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

Abstract

Scene Graph Generation (SGG) is a critical task for structured image understanding, yet it is plagued by the "long-tail" problem where a few dominant predicates (e.g., "on", "has") overshadow rare but informative ones (e.g., "playing", "across"). This paper introduces a framework designed to mitigate this bias through two primary mechanisms: a Scene-Object Interaction (SO) module that utilizes global scene context to disambiguate relations, and a Long-tail Knowledge Transfer (KT) module that enhances the representation of rare predicates by "borrowing" features from a learned set of knowledge codewords. Experimental results on the Visual Genome dataset demonstrate significant improvements in mean recall, particularly for tail relations.

Introduction

Scene Graph Generation (SGG) transforms visual data into semantic triples of (subject, predicate, object). While object detection has matured, relationship identification remains challenging due to extreme distributional bias. In the Visual Genome dataset, "head" relations appear tens of thousands of times, while "tail" relations may appear fewer than ten times. This imbalance causes standard models to become "lazy," frequently predicting common predicates regardless of visual evidence.

Example of a scene graph structure showing various object relations.

Methodology

The proposed framework addresses the long-tail challenge through three integrated components:

  1. Scene-Object Interaction Module (SO): This module leverages the global "vibe" of a scene. By treating the set of annotated objects as a scene label, the model extracts a global feature that is fused with individual object features via additive attention. This ensures that predicted relations are contextually appropriate (e.g., "riding" in an outdoor scene).
  2. Long-tail Knowledge Transfer (KT): To bolster data-starved tail relations, the model employs a "hallucination" strategy. It learns "Knowledge Codewords"—representative vectors for each relation—and augments visual features of tail relations with a weighted sum of these codewords, effectively borrowing knowledge from the "rich" head relations.
  3. Feature Calibration (FC): To prevent the final classifier from being overwhelmed by the high confidence of head relations, the model uses its own prediction confidence to scale features, creating a mathematical separation between well-defined head features and augmented tail features.
The full architecture of the proposed SGG framework, highlighting the Scene-Object Interaction and Knowledge Transfer modules.

Experiments and Results

The model was evaluated on the Visual Genome (VG) dataset using standard tasks: Predicate Classification (PredCls), Scene Graph Classification (SGCls), and Scene Graph Detection (SGDet).

The framework achieved state-of-the-art performance, particularly in Mean Recall (mR), which prioritizes tail performance. On PredCls, the model reached 68.0% R@100, outperforming strong competitors like Neural Motifs. Notably, the "mounted on" relation saw a dramatic jump from 0.04% to 3.04% recall. Ablation studies confirmed that the SO module provides a critical "sanity check," with its removal leading to a 2–3% performance drop.

Conclusion

By combining global scene context with feature hallucination from common relations, this framework effectively tackles the long-tail bias in SGG. While extremely rare predicates like "flying in" remain difficult to capture due to extreme data scarcity, the dual-strategy approach provides a robust path forward for more balanced and context-aware scene understanding. Future work may focus on refining object labels to provide even cleaner signals for relationship detection.

Summary updated

BibTeX
@inproceedings{he2020learning,
  author = {Tao He and Lianli Gao and Jingkuan Song and Jianfei Cai and Yuan-Fang Li},
  title = {{Learning from the Scene and Borrowing from the Rich: Tackling the Long Tail in Scene Graph Generation}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2020},
  doi = {10.24963/ijcai.2020/82},
}
Figure