Spatial Chain-of-Thought: Bridging Understanding and Generation Models for Spatial Reasoning Generation
Wei Chen, Yancheng Long, Mingqiao Liu, Haojie Ding, Yankai Yang, Hongyang Wei, Yi-Fan Zhang, Bin Wen, Fan Yang, Tingting Gao, Han Li, Long Chen
TL;DR
Spatial Chain-of-Thought (SCoT) tackles the challenge of embedding complex spatial reasoning into diffusion-based image generation. It introduces a grounded, two-component framework: SAGen, a spatially-aware diffusion backbone trained on dense caption-box data, and an off-the-shelf MLLM planner that outputs executable layouts via an interleaved text–coordinate representation. The authors also release dense grounding data (SCoT-DenseBox) and a high-aesthetic subset (SCoT-AestheticSFT) to train and fine-tune the system, achieving state-of-the-art results on T2ICoReBench, GenEval, OneIG-Bench, and COCO-MIG, and extending to image editing with IVEdit. The approach is plug-and-play and avoids joint pretraining while delivering precise spatial control over multi-object scenes.
Abstract
While diffusion models have shown exceptional capabilities in aesthetic image synthesis, they often struggle with complex spatial understanding and reasoning. Existing approaches resort to Multimodal Large Language Models (MLLMs) to enhance this capability. However, they either incur high computational costs through joint training or suffer from spatial information loss when relying solely on textual prompts. To alleviate these limitations, we propose a Spatial Chain-of-Thought (SCoT) framework, a plug-and-play approach that effectively bridges the reasoning capabilities of MLLMs with the generative power of diffusion models. Specifically, we first enhance the diffusion model's layout awareness by training it on an interleaved text-coordinate instruction format. We then leverage state-of-the-art MLLMs as planners to generate comprehensive layout plans, transferring their spatial planning capabilities directly to the generation process. Extensive experiments demonstrate that our method achieves state-of-the-art performance on image generation benchmarks and significantly outperforms baselines on complex reasoning tasks, while also showing strong efficacy in image editing scenarios.
