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.
Figures & tables
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.
Figure 2: Workflow of Graph2Scene.
Figure 3: Illustration of graph-guided attention computation. Cross-attention associates element and relation tokens with the corresponding image regions, while self-attention allows information exchange within each region and between graph-connected regions.
Figure 4: Visualization of two typical attention failures. Example (a) shows attention overlap between the boy and girl tokens, while example (b) shows attention leakage of the relation tokens pushes and pulls .
Method
VLM-based Evaluation ↑
Official Evaluation ↑
Acc exist
Acc attribute
Acc relationship
Attribute Binding
Object Relationships
Complex
Color
Shape
Texture
Spatial
Non-spatial
FLUX.1
0.79
0.66
0.60
0.7763
0.6370
0.8057
0.3499
0.3057
0.3858
GLIGEN
0.67
0.43
0.62
0.1762
0.3428
0.4926
0.2715
0.3090
0.3020
Composable
0.61
0.41
0.44
0.2503
0.3776
0.5324
0.0000
0.2822
0.2867
Attend-and-Excite
0.64
0.42
0.28
0.3638
0.4320
0.6444
0.0789
0.3082
0.2785
Table 1: Quantitative comparison on T2I-CompBench using VLM-based accuracies and the official benchmark metrics. Higher scores indicate better performance.
Method
Acc exist↑
Acc attribute↑
Acc relationship↑
CLIPScore ↑
HPSv2 ↑
PickScore ↑
FLUX.1
0.75
0.31
0.42
24.82
0.27
22.31
GLIGEN
0.28
0.04
0.06
19.28
0.21
20.04
Composable
0.17
0.17
0.04
16.51
0.19
19.44
Attend-and-Excite
0.33
0.06
0.10
20.20
0.22
20.50
MS-Diffusion
0.47
0.06
0.11
21.76
0.28
21.97
LLM-Blueprint
0.29
0.06
0.11
19.66
0.21
20.09
Table 2: Quantitative comparison on ConceptMix.
Figure 5: Visualization example of a complex scene in ConceptMix.
Figure 6: Parameter sensitivity analysis of Graph2Scene.
Configuration
Acc exist↑
Acc attr↑
Acc rel↑
FLUX.1 (Original)
0.75
0.31
0.42
FLUX.1 (Rewritten)
0.69
0.32
0.35
Layout-only ( Tc=15 )
0.86
0.61
0.53
Layout-only ( Tc=20 )
0.79
0.53
0.52
Layout-only (Adaptive Tc )
0.80
0.64
0.59
Relation-only ( Tc=15 )
0.55
0.15
0.37
Table 3: Ablation study of Graph2Scene components and control strategies. L+R denotes Layout and Relation Guidance; Dyn. denotes dynamic ratio adjustment.
Appendix figures & tables12 assets
Supplementary material from the paper’s appendix.
Appendix
Figure 1: Prompt-to-JSON conversion template used in Graph2Scene.
Figure 2: Organization of image information in Graph2Scene.
Figure 3: Examples of artifacts caused by excessive control.
Method
Acc exist↑
Acc attribute↑
Acc relationship↑
CLIPScore ↑
HPSv2 ↑
PickScore ↑
SG2IM
0.553
0.286
0.366
16.552
0.125
17.976
SGDiff
0.336
0.208
0.253
19.307
0.131
18.453
CanonicalSg2Im
0.032
0.016
0.000
12.195
0.085
16.349
Graph2Scene
0.927
0.893
0.872
26.296
0.294
22.845
Appendix
Table 2: Quantitative comparison with scene graph-based methods.
Figure 4: Case studies comparing Graph2Scene with existing Scene Graph based methods on the COCO-Stuff dataset.
Figure 5: Case studies comparing Graph2Scene with existing scene graph-based methods on the open complex prompts.
Figure 6: Prompt template used for scene graph construction.
Figure 7: Prompt templates used to evaluate Accexist , Accattribute , and Accrelationship with a VLM.
(a) Prompt Scaling ( 1024×1024 , seconds)
Prompt Tokens
Method
VLM Planning
Warm-up & Analysis
Mask Construction
Final Generation
Total Runtime
Acc exist↑
Acc attr↑
Acc rel↑
200–400
Graph2Scene
28.42
22.85
0.34
35.32
86.93 ×1.37
1.00 ×1.00
0.88 ×0.88
0.93 ×1.09
Regional Prompt
28.69
–
0.09
34.76
63.54
1.00
1.00
0.85
400–600
Graph2Scene
39.44
24.07
0.35
37.42
101.28 ×1.35
0.94 ×1.00
0.89 ×1.01
0.88 ×1.24
Regional Prompt
39.08
–
0.09
36.00
75.17
0.94
0.88
0.71
600–800
Graph2Scene
41.37
25.40
0.38
39.88
107.03 ×1.38
0.80 ×1.00
0.74 ×1.19
0.66 ×1.89
Appendix
Table 3: Runtime breakdown and compositional quality of Graph2Scene and Regional Prompt under different prompt lengths and image resolutions. All runtime results are reported in seconds and averaged over five runs. The VLM-based metrics evaluate object existence, attribute binding, and relationship accuracy. Superscript ratios in (a) are computed relative to Regional Prompt.
Figure 8: Qualitative examples of Graph2Scene on simple scenes.
Figure 9: Visualization examples on ConceptMix with increasing scene complexity.
Figure 10: Qualitative comparisons on LongBench-T2I with three different prompts.
Text-to-image generation creates images from natural-language prompts using generative models, with research focused on fidelity, control, efficiency, and safety.
Scene graphs (SGs) represent objects and their relationships as structured graphs, enabling applications in image generation, robotics, and 3D understanding. Recent work suggests that conditioning image generation on scene graphs improves compositional fidelity compared to text-only prompting. However, since users typically provide text rather than structured graphs, a key challenge is to generate scene graphs from natural language. Prior work on discrete diffusion has demonstrated success in generating generic graphs such as molecules and circuits, but fails to account for the hierarchical structure and strong dependencies between objects, edges, and relations in scene graphs. We address this limitation by introducing a dependency-aware, hierarchically constrained discrete diffusion model for scene graph generation. Our approach decouples structure and semantics across the forward and reverse processes, enabling the model to capture conditional dependencies. At inference time, we perform training-free conditioning to sample text-aligned scene graphs. We evaluate our method on standard SG benchmarks and demonstrate improvements over both continuous and discrete graph generation baselines across graph and layout metrics. When fed to downstream image generation, our approach yields improved compositional alignment compared to text-to-image models, particularly in multi-object scenarios.
Layout-based compositional methods improve text-to-image generation by specifying where objects should appear, but most rely on sparse 2D constraints with limited appearance, occlusion, and depth-aware cues. We show that compositional generation can be substantially improved by replacing purely geometric guidance with an editable visual prior for diffusion initialization. We introduce ComposeAnything, an inference-time framework built around a 2.5D Composite Object Prior, an editable RGB image that specifies object appearance, layout, scale, and depth-aware ordering. We transfer this prior through Prior-Guided Diffusion, which combines Object Prior Reinforcement (OPR) to preserve object structure and appearance with Spatial-Controlled Denoising (SCD) to improve region-text alignment and reduce semantic leakage. Early guidance preserves the prior structure, after which standard denoising refines the image coherently. Extensive evaluations on T2I-CompBench, NSR-1K, and GenEval show strong gains in spatial reasoning, 3D-spatial relations, counting, and surreal compositions while maintaining visual quality and efficiency.
Zeeshan Khan, Shizhe Chen, Cordelia Schmid
Inria, École normale supérieure, CNRS, PSL Research University
Text-to-image diffusion models can generate individual concepts well, but they often omit or merge concepts incorrectly with multiple concepts. We trace these failures to an early coordination bottleneck: before denoising begins, prompt-conditioned attention may allocate different concepts to strongly overlapping spatial support, which can keep their attention coupled as denoising proceeds. This observation motivates treating compositional generation as a boundary-condition problem rather than repeatedly controlling the evolving trajectory. To this end, we propose Rectify-then-Diffuse (RTD), a training-free framework that rectifies the initial allocation once before standard denoising. Firstly, we propose Soft-Overlap Disentanglement (SOD), which converts normalized overlap between pilot concept maps into a differentiable and layout-agnostic separation objective. Secondly, we introduce Isotropic Gradient Rectification (IGR), which normalizes the SOD gradient and applies a bounded latent displacement with a consistent scale across prompts and initializations. Extensive experiments show that RTD achieves state-of-the-art compositional fidelity and robust gains. On the AE-Bench object pair subset, RTD improves BLIP-VQA by 45.8% and ImageReward by 19.6% over CO3 while running 2.3× faster. Code will be released at https://github.com/Z-yiwei/rectify-then-diffuse
Ning Zhu, An Chen, Mengfei Zhao +4
Glasgow College, University of Electronic Science and Technology of China · School of Mathematical Sciences, University of Electronic Science and Technology of China