Abstract
LayoutDiffusion is a novel one-stage diffusion model designed to generate high-quality images from coarse layouts consisting of bounding boxes and categories. By unifying image patches and layout objects into a single coordinate space and utilizing a transformer-based fusion module, LayoutDiffusion overcomes the "spatial common sense" limitations of traditional text-to-image models. Experimental results on COCO-stuff and Visual Genome demonstrate a significant leap in performance, improving image quality (FID) by over 40% compared to existing diffusion-based baselines.
Introduction
While large-scale text-to-image (T2I) models like Stable Diffusion have achieved remarkable results, they often struggle with precise spatial control. Complex scenes requiring specific object placements frequently result in missing elements, strange overlaps, or incorrect positioning—a lack of "spatial common sense." Layout-to-image (L2I) generation addresses this by providing a "blueprint" of bounding boxes and labels. However, previous L2I methods faced challenges: GAN-based models are difficult to train and prone to mode collapse, while existing diffusion models often fail to bridge the multimodal gap between discrete layout coordinates and continuous image pixels.
Methods
LayoutDiffusion introduces three architectural innovations to ensure high-fidelity generation from layout blueprints.
Structural Image Patching
The core innovation is treating every image patch as a "special object" with its own bounding box. This approach allows the model to process image pixels and layout coordinates in a unified coordinate space, facilitating more effective multimodal fusion.
Layout Fusion Module (LFM)
Objects in a scene are rarely independent. The LFM employs a transformer encoder to model global relationships and spatial interactions (e.g., a laptop sitting on a desk). This allows the model to understand context and occlusion before the generation process begins.
Object-aware Cross Attention (OaCA)
To ensure spatial alignment, OaCA makes the cross-attention mechanism position-sensitive. This forces the model to pay closer attention to the correspondence between the layout's spatial requirements and the generated pixels.
Experimental Setup
The model was evaluated on two primary benchmarks:
- COCO-stuff: 164K images with 171 categories. Experiments focused on images containing 3 to 8 objects.
- Visual Genome (VG): A more complex dataset with dense annotations, using 3 to 30 bounding boxes per image to test scene complexity handling.
Results and Discussion
LayoutDiffusion establishes a new state-of-the-art (SOTA) across multiple metrics.
Quantitative Performance
- Image Quality: On COCO-stuff (256x256), LayoutDiffusion achieved an FID of 15.61, a dramatic improvement over the previous diffusion SOTA (LDM) at 40.91.
- Object Accuracy: The Classification Score (CAS) improved by 26.70% on COCO-stuff and 41.82% on Visual Genome, indicating that generated objects are highly recognizable and accurately placed.
Qualitative Comparison
As shown in the comparison below, LayoutDiffusion produces scenes that are significantly more coherent and faithful to the input layout than standard Latent Diffusion Models (LDM).
Key Insights
The "unified space" concept is pivotal; by converting image generation into a layout-to-layout matching problem, the model avoids learning complex cross-domain mappings. Furthermore, the model supports interactive editing, allowing users to build scenes incrementally while maintaining visual consistency.
Conclusion
LayoutDiffusion represents a significant advancement in controllable image synthesis. While challenges remain in generating perfectly realistic images for extremely dense layouts, the model's precision and efficiency (achieving high quality in just 25 iterations) set a new standard. Future work will explore integrating this layout-control logic into massive pre-trained models to combine broad world knowledge with precise spatial guidance.
Summary updated