Training-free Composite Scene Generation for Layout-to-Image Synthesis
Jiaqi Liu, Tao Huang, Chang Xu
TL;DR
This work addresses the challenge of generating images with precise spatial layouts from diffusion models without requiring additional training data. It introduces a training-free framework that uses selective sampling to refine intra-token loss, and adds inter-token and self-attention constraints, complemented by attention redistribution during forward diffusion, all guided by bounding-box layouts. The approach achieves superior object localization and semantic fidelity compared to existing training-free methods, demonstrating strong gains in AP$_{50}$, AP, and CLIP scores and compatibility with GLIGEN. These contributions significantly reduce data acquisition costs for layout-aware image synthesis and enhance the applicability of diffusion-based layout-to-image generation in multi-object scenes. $ \\ $
Abstract
Recent breakthroughs in text-to-image diffusion models have significantly advanced the generation of high-fidelity, photo-realistic images from textual descriptions. Yet, these models often struggle with interpreting spatial arrangements from text, hindering their ability to produce images with precise spatial configurations. To bridge this gap, layout-to-image generation has emerged as a promising direction. However, training-based approaches are limited by the need for extensively annotated datasets, leading to high data acquisition costs and a constrained conceptual scope. Conversely, training-free methods face challenges in accurately locating and generating semantically similar objects within complex compositions. This paper introduces a novel training-free approach designed to overcome adversarial semantic intersections during the diffusion conditioning phase. By refining intra-token loss with selective sampling and enhancing the diffusion process with attention redistribution, we propose two innovative constraints: 1) an inter-token constraint that resolves token conflicts to ensure accurate concept synthesis; and 2) a self-attention constraint that improves pixel-to-pixel relationships. Our evaluations confirm the effectiveness of leveraging layout information for guiding the diffusion process, generating content-rich images with enhanced fidelity and complexity. Code is available at https://github.com/Papple-F/csg.git.
