[Paper Review] LLM-grounded Diffusion: Enhancing Prompt Understanding of Text-to-Image Diffusion Models with Large Language Models
This paper introduces a two-stage, training-free approach (LLM-grounded Diffusion, LMD) that uses an LLM to generate scene layouts and a layout-grounded controller to steer diffusion models, significantly improving prompt understanding and multi-round scene specification.
Recent advancements in text-to-image diffusion models have yielded impressive results in generating realistic and diverse images. However, these models still struggle with complex prompts, such as those that involve numeracy and spatial reasoning. This work proposes to enhance prompt understanding capabilities in diffusion models. Our method leverages a pretrained large language model (LLM) for grounded generation in a novel two-stage process. In the first stage, the LLM generates a scene layout that comprises captioned bounding boxes from a given prompt describing the desired image. In the second stage, a novel controller guides an off-the-shelf diffusion model for layout-grounded image generation. Both stages utilize existing pretrained models without additional model parameter optimization. Our method significantly outperforms the base diffusion model and several strong baselines in accurately generating images according to prompts that require various capabilities, doubling the generation accuracy across four tasks on average. Furthermore, our method enables instruction-based multi-round scene specification and can handle prompts in languages not supported by the underlying diffusion model. We anticipate that our method will unleash users' creativity by accurately following more complex prompts. Our code, demo, and benchmark are available at: https://llm-grounded-diffusion.github.io
Motivation & Objective
- Improve prompt understanding in text-to-image diffusion models without additional training.
- Leverage a pretrained LLM to generate structured image layouts from prompts.
- Guide an off-the-shelf diffusion model to render images grounded on LLM-generated layouts.
- Enable instruction-based multi-round scene specification and cross-language image generation.
- Provide a benchmark to assess prompt-following ability of diffusion models.
Proposed method
- Stage 1: Use a frozen LLM to generate a scene layout as captioned bounding boxes plus a background caption from the input prompt.
- Stage 2: Apply a novel layout-grounded controller to steer an existing diffusion model to generate images that follow the LLM-produced layout, without retraining.
- Grounding is achieved by per-box masked latents and attention-guided denoising to ensure instance-level control.
- Composition step combines per-box latent generations into a coherently grounded final image.
- Optional integration with training-based methods (e.g., GLIGEN) to further enhance instance/attribute control (LMD+).
- Supports instruction-based, multi-round scene specification and generation from prompts in languages unsupported by the base diffusion model.
Experimental results
Research questions
- RQ1Can an LLM-generated layout improve diffusion model adherence to complex prompts (negation, numeracy, spatial relations, attribute binding)?
- RQ2Does a training-free, two-stage LLM-grounded pipeline outperform base diffusion models and baselines on prompt-following tasks?
- RQ3Can the approach enable multi-round scene specification and non-native-language prompts without retraining?
- RQ4What is the effect of integrating training-based adapters (e.g., GLIGEN) with LMD?
Key findings
- LMD significantly outperforms the base Stable Diffusion model across four prompt-following tasks, doubling average generation accuracy on average.
- On benchmark tasks: Negation—SD 28% vs LMD 100% (3.6x); Generative Numeracy—SD 39% vs LMD 62% (1.6x) and LMD+ 86% (2.2x); Attribute Binding—SD 52% vs LMD 65% (1.3x) and LMD+ 69% (1.3x); Spatial Relationships—SD 28% vs LMD 79% (2.8x) and LMD+ 67% (2.4x); Average—SD 37% vs LMD 77% (2.1x) and LMD+ 81% (2.2x).
- LMD+ (with GLIGEN adapters) yields further improvements, surpassing GLIGEN-alone baselines in several tasks.
- The layout generation stage (stage 1) reliably produces layouts that align with prompts, and bottlenecks arise in the layout-to-image stage rather than layout generation.
- LMD remains effective when swapping base diffusion models (e.g., SDv1.5 to SDv2.1) without hyperparameter tuning, highlighting compatibility with future diffusion models.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.