Scene Graph-Grounded Image Generation

Fuyun Wang, Tong Zhang, Yuanzhi Wang, Xiaoya Zhang, Xin Liu, Zhen CuiAAAI 2025

Abstract

Generating high-fidelity images from complex scene descriptions remains a challenge for traditional text-to-image models due to linguistic ambiguity. We present Scene Graph-Grounded Image Generation (SGG-IG), a framework that leverages structured scene graphs to bypass the limitations of coarse spatial layouts. By incorporating masked self-supervised learning and a novel image-scene alignment loss, SGG-IG ensures precise rendering of intricate object interactions, achieving state-of-the-art performance on benchmark datasets like Visual Genome and COCO-Stuff.

Introduction

While text-to-image (T2I) models like Stable Diffusion have achieved remarkable success, they often struggle with "linguistic ambiguity." Natural language is inherently linear and frequently fails to precisely describe complex, non-spatial relationships between multiple objects in a crowded scene. Scene graphs offer a structured alternative, representing a scene as a web of objects (nodes) and their relationships (edges).

However, existing scene-graph-to-image (SG2I) methods face two major hurdles: the layout bottleneck, where coarse bounding boxes fail to capture intricate interactions (e.g., "wearing"), and semantic drift, where generated images deviate from the scene graph's instructions during the iterative denoising process.

Methodology

The SGG-IG framework operates through three distinct stages: pre-training, fine-tuning, and inference.

Enhanced Scene Graph Representation

The model utilizes a Graph Convolutional Network (GCN) to process the scene graph. To deepen the model's understanding of scene logic, the authors implement a Masked Auto-Encoder (MAE). By randomly masking objects in the graph and requiring the model to predict them based on surrounding relationships, the encoder learns robust contextual knowledge.

Implicit Spatial Layout and Alignment

Rather than relying on explicit bounding boxes, SGG-IG employs a Spatial Constraint Loss ($L_{con}$). This uses contrastive learning to bridge the gap between abstract symbols and visual content. To combat semantic drift, a novel Image-Scene Alignment ($L_{ISA}$) loss is introduced during the fine-tuning of the Stable Diffusion model. This loss acts as a persistent anchor, ensuring visual features remain mathematically aligned with the original scene graph throughout the denoising process.

Experimental Results

SGG-IG was evaluated on the Visual Genome (VG) and COCO-Stuff benchmarks.

Quantitative Performance

On the Visual Genome dataset ($256 \times 256$ resolution), SGG-IG achieved a state-of-the-art FID of 21.9, significantly outperforming the previous best diffusion method, SGDiff (26.0). Its Inception Score (IS) reached 20.4, compared to SGDiff’s 16.4.

Qualitative Comparison

Visual comparisons demonstrate that SGG-IG excels at rendering specific interactions. While competing models often place objects near each other without proper interaction, SGG-IG correctly renders complex relationships such as a person wearing a jacket or a giraffe eating from a tree.

Qualitative comparison of SGG-IG against baseline models (SG2IM, Stable Diffusion, and SGDiff) using input scene graphs.

As shown in the figure above, SGG-IG produces images with higher semantic fidelity and fewer hallucinated artifacts compared to existing methods.

Conclusion

SGG-IG represents a significant step forward in scene-graph-to-image generation by bypassing explicit layouts in favor of implicit alignment. By treating the scene graph as a structured anchor for the diffusion process, the model achieves superior realism and relationship accuracy. Future work will focus on streamlining the multi-stage pipeline into a unified, end-to-end training process.

Summary updated

BibTeX
@inproceedings{wang2025scene,
  author = {Fuyun Wang and Tong Zhang and Yuanzhi Wang and Xiaoya Zhang and Xin Liu and Zhen Cui},
  title = {{Scene Graph-Grounded Image Generation}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i7.32823},
}
Figure