Scene Graph Generation With External Knowledge and Image Reconstruction.

Jiuxiang Gu, Handong Zhao, Zhe Lin, Sheng Li, Jianfei Cai, Mingyang Ling · DOI

Abstract

Scene graph generation—the task of identifying objects and their semantic relationships within an image—is a cornerstone of high-level visual understanding. However, existing models often struggle with dataset biases, long-tail distributions, and noisy annotations. This paper introduces KB-GAN, a novel framework that addresses these challenges through a dual-strategy approach: incorporating external commonsense knowledge from ConceptNet and employing an auxiliary image reconstruction path as a regularizer. By refining visual features with semantic context and enforcing structural consistency through generative reconstruction, KB-GAN achieves state-of-the-art results on the Visual Relationship Detection (VRD) and Visual Genome datasets.

Introduction

A scene graph provides a structured representation of an image, mapping objects as nodes and their interactions (e.g., "man-riding-bike") as edges. While vital for downstream tasks like image captioning and visual question answering, generating accurate scene graphs is notoriously difficult.

High-level overview of the KB-GAN framework, showing the integration of ConceptNet and image reconstruction.

The authors identify two primary obstacles in the field. First, dataset bias leads models to over-predict frequent relationships (like "on") while failing on rare, long-tail interactions. Second, noisy and missing annotations in large-scale datasets like Visual Genome result in poor object detection, which fundamentally limits relationship recognition. KB-GAN proposes to solve these by grounding visual features in external knowledge and enforcing structural consistency through generative reconstruction.

Methodology: The KB-GAN Framework

The KB-GAN architecture extends standard scene graph pipelines with two innovative modules: Knowledge-Based Feature Refinement and Image Reconstruction Regularization.

Detailed architecture of the proposed scene graph generation pipeline, including the feature refining module and the reconstruction branch.

Knowledge-Based Feature Refinement

To overcome visual ambiguity, the model leverages ConceptNet, a massive external commonsense knowledge base. After predicting initial object labels, the system queries ConceptNet for relevant facts. For instance, detecting a "human" and "skis" might retrieve the fact (skis, UsedFor, skiing).

These facts are processed using a Dynamic Memory Network (DMN), which performs multi-hop reasoning to refine visual features with semantic context. This "sanity check" allows the model to leverage priors about real-world relationships, helping it generalize to rare triplets that are underrepresented in the training data.

Image Reconstruction as Regularization

To mitigate the impact of noisy labels, the authors introduce an auxiliary branch that attempts to reconstruct the original image using only the predicted object labels and bounding boxes. This branch utilizes a Cascaded Refinement Network and a Generative Adversarial Network (GAN) loss.

If the model incorrectly identifies "snow" as "grass," the reconstructed image will deviate significantly from the original, resulting in a high loss that penalizes the incorrect detection. This generative path forces the object detector to be more precise. Crucially, this branch is used only during training to regularize the network and is discarded during inference to maintain computational efficiency.

Experimental Results

The KB-GAN model was evaluated on two benchmark datasets: Visual Relationship Detection (VRD) and Visual Genome (VG-MSDN).

On the VRD dataset, KB-GAN achieved a 27.39% Recall@50 for Phrase Detection (PhrDet), outperforming previous state-of-the-art methods like Factorizable Net (26.03%). Similarly, on Visual Genome, the model reached 23.51% Recall@50 for PhrDet.

Ablation studies confirmed the efficacy of the dual-strategy approach. The Knowledge Base (KB) component significantly boosted object detection accuracy (mAP), demonstrating that semantic context helps resolve visual uncertainty. Meanwhile, the GAN component provided a consistent performance lift across relationship prediction metrics.

Discussion and Conclusion

The success of KB-GAN highlights the importance of moving beyond purely visual data for scene understanding. By integrating external commonsense, the model gains a "world view" that compensates for dataset limitations. Furthermore, the use of image reconstruction as a "corrective force" proves that generative tasks can effectively regularize discriminative models.

While powerful, the approach is limited by the quality of the external knowledge base and the increased computational cost during training. Future work may explore more efficient generative architectures or the integration of even larger-scale knowledge graphs to handle extremely rare "zero-shot" relationships. Ultimately, the "generative regularization" concept introduced here offers a promising path for improving robustness in various computer vision tasks plagued by noisy annotations.

Summary updated

BibTeX
@inproceedings{gu2019scene,
  author = {Jiuxiang Gu and Handong Zhao and Zhe Lin and Sheng Li and Jianfei Cai and Mingyang Ling},
  title = {{Scene Graph Generation With External Knowledge and Image Reconstruction.}},
  booktitle = {CVPR},
  year = {2019},
  doi = {10.1109/cvpr.2019.00207},
}
Figure