CoT-lized Diffusion: Let's Reinforce T2I Generation Step-by-step

Zheyuan Liu, Munan Ning, Qihui Zhang, Shuo Yang, Zhongrui Wang, Yiwei Yang, Xianzhe Xu, Yibing Song, Weihua Chen, Fan Wang, Li Yuan · OpenReview

TL;DR

CoT-Diff is a novel framework that integrates a Multimodal Large Language Model (MLLM) with diffusion models for text-to-image generation. It achieves superior spatial control and compositional fidelity by enabling step-by-step, iterative refinement of 3D scene layouts during the generation process, outperforming existing methods by up to 34.7% in complex scene spatial accuracy.

What Problem Does This Paper Address?

Current text-to-image (T2I) generation models, while impressive in generating high-quality images, often struggle with precise spatial composition, especially in complex scenes involving multiple objects and intricate relationships. Existing layout-based approaches typically decouple layout planning from the generation process, making it difficult to refine the layout dynamically during synthesis. This leads to suboptimal spatial control and an inability to faithfully follow detailed spatial instructions within prompts. The paper aims to bridge this gap by enabling T2I models to reason about and dynamically control 3D spatial arrangements throughout the generation pipeline.

Methods

CoT-Diff introduces a "CoT-lized" (Chain-of-Thought) reasoning mechanism by tightly coupling a Multimodal Large Language Model (MLLM) with a diffusion model. The core innovation lies in an iterative, step-by-step process:

  1. Initial 3D Scene Planning: The MLLM parses the input text prompt to generate an initial 3D scene layout, identifying key entities, their attributes (size, position), and their spatial relationships.
  2. Stepwise Feedback-based Refinement: At each denoising step of the diffusion process, the MLLM evaluates the intermediate image prediction. If any misalignment with the prompt or the current layout is detected, the MLLM dynamically updates the 3D scene layout.
  3. Condition Injection: The refined 3D layout is converted into two types of spatial conditions:
  4. Semantic Layout: Encodes global and entity-specific semantics.
  5. Depth Map: Represents the relative depth of objects. These conditions are then injected into the diffusion model's latent features using dedicated Low-Rank Adaptation (LoRA) modules.

  6. Condition-Aware Attention Mechanism: A novel attention mechanism is employed to integrate semantic and depth conditions without cross-interference. It selectively injects control signals into relevant image regions, ensuring disentangled and precise control.

This approach allows for inline scene reasoning and dynamic layout adjustment within a single diffusion round, avoiding the need for multi-round generation or iterative editing.

Datasets

  • 3DSceneBench: A newly constructed dataset designed to evaluate T2I models on complex 3D spatial relationships. It includes prompts categorized into "Basic Relation" (e.g., "object1 in front of object2") and "Hard Relation" (multi-relation and complex scene descriptions).
  • DVMP: An existing dataset for evaluating attribute binding in T2I generation.
  • T2I-CompBench: Another existing benchmark for evaluating compositional image generation.

Key Insights and Ideas

  • Entangled Layout Planning and Generation: The core insight is that decoupling layout planning from image generation limits controllability. CoT-Diff's tightly coupled, iterative approach allows for dynamic refinement, leading to significantly better spatial alignment.
  • MLLM as a Dynamic Layout Planner: Leveraging MLLMs for step-by-step reasoning and layout adjustment during diffusion is key. This allows the model to "think" about the scene and correct its course as it generates.
  • Disentangled Spatial Control: The use of separate semantic and depth conditions, along with a condition-aware attention mechanism, is crucial for preventing modality entanglement and achieving precise control over different aspects of the scene.
  • 3D-Awareness is Crucial for Complex Scenes: The success on 3DSceneBench highlights that true 3D spatial reasoning is necessary to handle complex prompts that go beyond simple 2D arrangements.

Key Results

  • Superior Spatial Alignment: CoT-Diff significantly outperforms state-of-the-art baselines (including FLUX, RPG, and EliGen) on the 3DSceneBench dataset, achieving up to 34.7% improvement in complex scene spatial accuracy.
  • Improved Attribute Binding: On the DVMP dataset, CoT-Diff achieves the highest scores across attribute-binding categories (Color, Shape, Texture), demonstrating stronger consistency between visual attributes and textual descriptions.
  • Robustness to Depth Variation: CoT-Diff maintains stable 3D consistency across varying depth gaps, outperforming EliGen, which struggles with larger depth differences.
  • Effective for Complex Prompts: CoT-Diff achieves a 75.4% spatial success rate on complex prompts from 3DSceneBench, significantly higher than baselines like FLUX (41.6%).

Limitations and Future Work

  • Inference Cost: The reliance on an MLLM for per-step reasoning introduces non-negligible inference costs.
  • MLLM Dependency for Layout: Layout planning is currently fully dependent on the MLLM, with no integrated spatial reasoning capacity within the generative model itself.
  • Future Work: The authors suggest exploring endowing the generator with internal reasoning abilities for more efficient and unified control, potentially integrating layout reasoning directly into the generative model for end-to-end CoT-lized generation. They also acknowledge the potential for misuse and bias inherited from MLLMs, advocating for responsible deployment and transparency.

Summary updated

BibTeX
@inproceedings{liu2025cot,
  author = {Zheyuan Liu and Munan Ning and Qihui Zhang and Shuo Yang and Zhongrui Wang and Yiwei Yang and Xianzhe Xu and Yibing Song and Weihua Chen and Fan Wang and Li Yuan},
  title = {{CoT-lized Diffusion: Let's Reinforce T2I Generation Step-by-step}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=98TY64tOFB},
}
Figure