Skip to main content
QUICK REVIEW

[Paper Review] Training-Free Structured Diffusion Guidance for Compositional Text-to-Image Synthesis

Weixi Feng, Xuehai He|arXiv (Cornell University)|Dec 9, 2022
Generative Adversarial Networks and Image SynthesisComputer Science70 citations
TL;DR

A training-free method that injects structured language guidance into Stable Diffusion's cross-attention to improve attribute binding and compositionality in T2I, evaluated with new ABC-6K and CC-500 benchmarks.

ABSTRACT

Large-scale diffusion models have achieved state-of-the-art results on text-to-image synthesis (T2I) tasks. Despite their ability to generate high-quality yet creative images, we observe that attribution-binding and compositional capabilities are still considered major challenging issues, especially when involving multiple objects. In this work, we improve the compositional skills of T2I models, specifically more accurate attribute binding and better image compositions. To do this, we incorporate linguistic structures with the diffusion guidance process based on the controllable properties of manipulating cross-attention layers in diffusion-based T2I models. We observe that keys and values in cross-attention layers have strong semantic meanings associated with object layouts and content. Therefore, we can better preserve the compositional semantics in the generated image by manipulating the cross-attention representations based on linguistic insights. Built upon Stable Diffusion, a SOTA T2I model, our structured cross-attention design is efficient that requires no additional training samples. We achieve better compositional skills in qualitative and quantitative results, leading to a 5-8% advantage in head-to-head user comparison studies. Lastly, we conduct an in-depth analysis to reveal potential causes of incorrect image compositions and justify the properties of cross-attention layers in the generation process.

Motivation & Objective

  • Improve attribution binding between objects and attributes in T2I outputs.
  • Enhance compositional generation for multi-object scenes without additional training data.
  • Leverage structured language representations to guide cross-attention in diffusion models.
  • Introduce benchmarks to quantify compositionality and binding accuracy (ABC-6K).

Proposed method

  • Use constituency parsing or scene graph to extract multiple noun phrases from prompts.
  • Encode each text span with a frozen CLIP text encoder and realign embeddings with the full prompt sequence.
  • Modify cross-attention by using attention maps to map text-span semantics to attended image regions.
  • Compute and fuse attention-based value vectors from all structured text spans into the diffusion guidance (Equations 1–4).
  • Introduce a variant that aggregates multiple attention maps for conjunction prompts (Equations 5–6).
  • Demonstrate training-free integration with Stable Diffusion without additional data.

Experimental results

Research questions

  • RQ1Does structured cross-attention guidance improve attribute-object binding in T2I generation?
  • RQ2How do structured representations (constituency trees vs scene graphs) affect compositionality and image fidelity?
  • RQ3Can the approach generalize to general prompts while preserving image quality?
  • RQ4What are the causes of incorrect compositions, and how do attention maps relate to layout and content?

Key findings

  • StructureDiffusion yields a 5-8% advantage in head-to-head user comparisons over baseline Stable Diffusion.
  • The method improves object-level and scene-level compositionality, including color correctness and reducing missing objects.
  • The approach maintains overall image fidelity and diversity comparable to baseline metrics (IS/FID/R-Prec).
  • Scene graph inputs and constituency parses both support structured guidance, with qualitative improvements in color binding and object completeness.
  • A new ABC-6K benchmark is proposed to evaluate attribute binding in compositional prompts, alongside CC-500 and general MSCOCO prompts.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.