Segmentation-grounded Scene Graph Generation

Siddhesh Khandelwal, Mohammed Suhail, Leonid SigalICCV 2021

Abstract

Scene graph generation has emerged as an important problem in computer vision. While scene graphs provide a grounded representation of objects, their locations and relations in an image, they do so only at the granularity of proposal bounding boxes. In this work, we propose the first, to our knowledge, framework for pixel-level segmentation-grounded scene graph generation. Our framework is agnostic to the underlying scene graph generation method and address the lack of segmentation annotations in target scene graph datasets (e.g., Visual Genome) through transfer and multi-task learning from, and with, an auxiliary dataset (e.g., MS COCO). Specifically, each target object being detected is endowed with a segmentation mask, which is expressed as a lingual-similarity weighted linear combination over categories that have annotations present in an auxiliary dataset. These inferred masks, along with a Gaussian masking mechanism which grounds the relations at a pixel-level within the image, allow for improved relation prediction. The entire framework is end-to-end trainable and is learned in a multi-task manner.

Introduction: The Limitation of Bounding Boxes

Scene Graph Generation (SGG) is the task of transforming an image into a structured graph where nodes represent objects and edges represent their relationships (e.g., "Lady" — wearing —> "Jacket"). Traditionally, SGG models have grounded these objects using rectangular bounding boxes. However, boxes are inherently noisy; they often include significant background or overlapping parts of other objects. This imprecision makes it difficult for a model to accurately identify the exact interface where a relationship occurs—such as the specific point where a hand holds a bag or a plate.

Comparison between traditional bounding-box-based grounding (top) and the proposed pixel-level segmentation grounding (bottom).

A major hurdle to adopting pixel-level grounding has been data scarcity: the primary SGG dataset, Visual Genome, lacks pixel-level segmentation masks. Manually annotating its 100k+ images would be prohibitively expensive. This work addresses this gap by introducing a framework that transfers segmentation knowledge from auxiliary datasets to SGG tasks.

Methodology

The proposed framework is model-agnostic and can be integrated into existing SGG architectures like MOTIF or VCTree. The approach is built on three main pillars:

  1. Zero-Shot Segmentation Transfer: To overcome the lack of masks in the target dataset, the model leverages an auxiliary dataset (MS COCO) that contains segmentations. Using GloVe linguistic embeddings, the model calculates semantic similarity between categories. For instance, if "Couch" is not in COCO but "Sofa" is, the model transfers segmentation knowledge from "Sofa" to "Couch" based on their semantic proximity.
  2. Gaussian Attention for Relations: Instead of analyzing the union of two bounding boxes to predict a relationship, the model utilizes inferred masks. A novel Gaussian attention mechanism focuses on the spatial "interface" between two objects, providing a cleaner signal for predicates like standing on or behind.
  3. Multi-Task Refinement: The framework is trained end-to-end, jointly optimizing for scene graph accuracy and segmentation quality. This allows the global context of the scene graph to help refine and "clean up" the predicted masks.
Overview of the proposed framework, integrating zero-shot segmentation and context encoding for scene graph generation.

Key Results and Insights

The researchers evaluated their approach by augmenting state-of-the-art models, observing significant performance gains:

  • Mean Recall (mR@K): The framework achieved consistent improvements across all tasks. On a VGG-16 backbone, relation prediction accuracy saw a relative improvement of up to 12%.
  • Zero-Shot Recall: In scenarios involving triplets never seen during training (e.g., "Cat" — under —> "Sign"), the method outperformed baselines by 94.5% to 97.9%. This suggests that pixel-level grounding helps the model learn the underlying logic of relationships rather than just memorizing training patterns.
  • Qualitative Improvements: Visualizations demonstrate that the model more accurately distinguishes between complex spatial relations like "behind" versus "on" compared to box-only models, which often default to the most frequent labels.

Conclusion and Future Work

By moving from coarse boxes to precise pixels, this framework sets a new standard for grounded scene graph generation. While the method is highly effective, it does introduce additional computational complexity and relies on semantic overlap between the target and auxiliary datasets. Future research may focus on scaling these techniques to extremely dense scenes and exploring transfer learning for highly specialized domains where auxiliary data is limited.

Summary updated

BibTeX
@inproceedings{khandelwal2021segmentation,
  author = {Siddhesh Khandelwal and Mohammed Suhail and Leonid Sigal},
  title = {{Segmentation-grounded Scene Graph Generation}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2021},
  url = {https://openreview.net/forum?id=jaz4ohSk1R},
}
Figure