NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

GPT4SGG: Synthesizing Scene Graphs from Holistic and Region-specific Narratives

Zuyao Chen, Jinlin Wu, Zhen Lei, Zhaoxiang Zhang, Changwen ChenarXiv 2023 · DOI

Introduction: The Challenge of Language-Supervised SGG

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., "man—wearing—hat"). While language-supervised SGG offers a scalable alternative to expensive manual annotation by utilizing image-caption pairs, it faces three significant hurdles: brittle linguistic parsers, grounding ambiguity, and sparse or biased data.

Challenges in traditional language-supervised SGG: inaccurate parsing, grounding ambiguity, and sparse data.

Traditional NLP tools often fail to extract meaningful triplets from unstructured sentences. Furthermore, if a caption mentions a "person wearing a tie" in an image with multiple people, it is difficult to determine which node to link. Finally, global captions often describe only the most salient parts of an image, leaving the resulting scene graph incomplete.

The GPT4SGG Framework

To overcome these limitations, the authors propose GPT4SGG, a framework that "reverses" the traditional pipeline. Instead of parsing text and then attempting to ground objects, GPT4SGG grounds objects first to provide a concrete spatial context for reasoning.

The GPT4SGG pipeline vs. previous methods, highlighting grounding, decomposing, and relation reasoning steps.

The framework follows a three-step "divide-and-conquer" strategy:

  1. Object Grounding: An object detector identifies and localizes all entities in the image, assigning each a unique ID (e.g., person.2) and bounding box coordinates.
  2. Scene Decomposing: The system generates a "holistic narrative" for the entire image and multiple "region-specific narratives." This is achieved by cropping the image around overlapping object pairs and using a captioning model (like BLIP-2) to describe those specific areas.
  3. Relation Reasoning: The localized objects and the collection of narratives are fed into a Large Language Model (LLM) like GPT-4. The LLM acts as a logic engine, synthesizing a final, consistent scene graph based on both text and spatial coordinates.

Datasets and Evaluation

The study utilizes standard benchmarks like VG150 and COCO Captions, while introducing new LLM-synthesized datasets: COCO@GPT and VG@GPT. These contain hundreds of thousands of relationship triplets synthesized by GPT-4. To specifically test the grounding ambiguity problem, the authors also introduced VG@Poly, a subset of VG150 featuring images with multiple instances of the same object category.

Key Insights and Results

  • Reversing the Pipeline: By grounding objects before reasoning about relationships, the framework eliminates ambiguity. The LLM uses specific IDs and coordinates to map descriptions to the correct visual regions.
  • LLMs as Spatial Reasoners: GPT-4 does more than parse text; it uses bounding box coordinates for spatial deduction. For instance, it can infer a "wearing" relationship if a "tie" box is contained within a "person" box, even if the caption is vague.
  • Performance Boost: SGG models trained on GPT4SGG-generated data significantly outperformed those trained on standard captions. The OvSGTR model saw its R@50 score jump from 22.14 to 25.03 on the VG150 test set.
  • Solving the Long-Tail: GPT4SGG showed massive improvements in mean Recall (mR@K), proving it is far better at capturing rare relationships (like "riding" or "parked on") than traditional linguistic parsers.

Conclusion

GPT4SGG demonstrates that leveraging the reasoning power of LLMs with localized visual narratives can bridge the gap between weakly-supervised and fully-supervised scene graph generation. While computational costs remain a factor, the authors showed that fine-tuned open-source models like Llama 2 can also perform effectively, paving the way for more accessible, high-quality scene graph synthesis.

Summary updated

BibTeX
@misc{chen2023gpt,
  author = {Zuyao Chen and Jinlin Wu and Zhen Lei and Zhaoxiang Zhang and Changwen Chen},
  title = {{GPT4SGG: Synthesizing Scene Graphs from Holistic and Region-specific Narratives}},
  year = {2023},
  eprint = {2312.04314},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2312.04314},
}
Figure