Graph2Scene: Relation-Aware Text-to-Image Generation with Graph-Guided Diffusion Model

Peizheng Li, Xin Ai, Guanghui Cheng, Zikang Dong, Qiange Wang, Yanfeng ZhangarXiv 2026

It’s late, you’re tired, and you just want your AI image generator to do one simple thing: draw a girl giving a balloon to a boy. But instead, it gives you a girl, a boy, a balloon, and—for some reason—the balloon is floating near a random man in the background.

This is the "compositional" headache of modern diffusion models. They are great at "nouns" (objects) but surprisingly bad at "verbs" (relations). A new paper, Graph2Scene, offers a clever, training-free way to fix this by treating the image generation process like a well-orchestrated stage play.

TL;DR

Graph2Scene uses "scene graphs" to guide the attention of diffusion models, ensuring that objects don't just appear in the right place, but actually interact correctly. By explicitly linking "relation" words (like giving or sitting on) to the specific objects involved, it boosts relationship accuracy in complex scenes from 59% to 84% without needing any extra training.

What Problem Does This Paper Address?

Even top-tier models like FLUX.1 struggle when a prompt gets crowded. The authors identify a phenomenon called attention leakage.

Imagine the model is processing the word "gives." Ideally, the "attention" for that word should be focused on the hands of the people interacting. In reality, that attention often "leaks" to irrelevant regions. If the model's attention for "gives" accidentally lands on a tree in the background, the actual interaction between the characters fails to materialize.

Existing solutions usually focus on "layout control"—putting objects in bounding boxes. While this helps put the girl and boy in the right spots, it doesn't tell the model how they should interact. As shown in the figure below, layout control alone often misses the mark on the actual "action."

Figure 1. Cross-attention visualization on FLUX.1 for a selected interaction (a girl gives a balloon to a boy) extracted from a complex prompt. Heatmaps show the aggregated attention of object and relation tokens. Rows compare (A) no control, (B) layout-only control, and (C) layout and relation control. White boxes indicate the regions to which the corresponding text tokens are constrained by the proposed control, while red boxes highlight the attention leakage phenomenon.

Methods

Graph2Scene is a training-free framework, meaning it plugs directly into existing models. It works in three main stages:

  1. Hierarchical Scene Graph Construction: First, it uses a Vision-Language Model (VLM) to parse your messy text prompt into a structured "Scene Graph." Objects become nodes (with bounding boxes), and interactions become edges.
  2. Graph-Guided Selective Attention: This is the core engine. It modifies the model's internal attention masks:
  3. Cross-Attention: It forces "relation" tokens to only look at the image regions of the objects they connect.
  4. Self-Attention: It allows pixels within related object boxes to "talk" to each other while keeping unrelated objects isolated to prevent "attribute bleeding" (e.g., the boy accidentally turning blue because the girl is wearing a blue shirt).
  5. Stage-Wise Execution: You can't micromanage the AI forever, or the image quality collapses. Graph2Scene performs a quick "warm-up" pass to see where the model is struggling, then applies strong guidance early in the process and gradually fades it out as the fine details emerge.
Figure 2. Workflow of Graph2Scene.

Datasets

The researchers put Graph2Scene through the ringer using three major benchmarks:

  • T2I-CompBench: A standard for compositional generation (attribute binding, spatial relations).
  • ConceptMix: The authors extended this benchmark to include high-density interactions (up to 20 objects per scene).
  • LongBench-T2I: A dataset of extremely long, complex prompts designed to break most models.

Key Insights and Ideas

  • Verbs Need Boxes Too: We’ve spent years giving AI "boxes" for nouns. This paper argues that "verbs" (relations) need to be grounded to those same boxes to prevent them from wandering off.
  • The Timing is Everything: The authors found that forcing "relation control" too early—before the layout is even settled—actually hurts the image. Their dynamic schedule lets the layout form first, then refines the interactions, and finally lets the model's natural "creativity" take over for the finishing touches.
  • Complexity-Awareness: Not every prompt needs a heavy hand. By analyzing the "attention overlap" in a preliminary pass, the system automatically decides how much guidance is necessary.

Key Results

The numbers are impressive, especially on the hardest tasks. On the ConceptMix benchmark (which is notoriously difficult), Graph2Scene improved relationship accuracy from 0.42 (base FLUX.1) to 0.84.

Qualitatively, the difference is night and day for "busy" scenes. In a prompt describing a crowded coffee shop with multiple people handing items, reading, and sitting, Graph2Scene managed to keep every interaction distinct, whereas baseline models often merged people together or "lost" the objects being handed over.

Limitations and Future Work

While powerful, Graph2Scene isn't magic.

  • VLM Dependency: It relies on a VLM to generate the initial scene graph and layout. If the VLM hallucinates a bad layout, the final image will follow that error.
  • Inherent Model Knowledge: Since it's training-free, it can't make a model draw something it doesn't already know how to draw; it can only help the model organize the concepts it already possesses.
  • Computational Cost: The "warm-up" pass and extra attention masking add about 35-50% to the generation time compared to simpler layout-control methods.

The authors suggest that future work could involve more sophisticated ways to handle "dynamic" relations or integrating this logic directly into the training process of next-generation models.

Summary updated

Abstract

Text-to-image diffusion models still struggle with complex prompts containing many elements and interactions. Existing attention-control methods mainly focus on controlling where elements appear, but often ignore how objects interact with each other. As a result, relation tokens describing interactions between elements may assign high attention to irrelevant regions, leading to missing or incorrect interactions. In this paper, we propose Graph2Scene, a training-free framework that treats scene graphs as a core control signal for diffusion generation. It represents elements as nodes and their relations as edges, and translates these element-relation dependencies into selective attention guidance. It grounds each element to its corresponding region and guides relational interactions among the involved elements. To achieve appropriate relation control without over-constraining the generation process, Graph2Scene further adapts the control duration to scene complexity and progressively relaxes graph guidance during denoising. Experiments on T2I-CompBench and ConceptMix show clear improvements in compositional generation, especially for object relations. On ConceptMix, Graph2Scene improves relationship accuracy from 0.59 to 0.84 over the strongest FLUX.1-based regional-control baseline. Results on LongBench-T2I further show its advantage on long and complex prompts.
BibTeX
@misc{li2026graph,
  author = {Peizheng Li and Xin Ai and Guanghui Cheng and Zikang Dong and Qiange Wang and Yanfeng Zhang},
  title = {{Graph2Scene: Relation-Aware Text-to-Image Generation with Graph-Guided Diffusion Model}},
  year = {2026},
  eprint = {2611.30964},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.30964},
}
Figure