Training-Free Layout-to-Image Generation with Marginal Attention Constraints
On the map: Diffusion models → Image generation, text-to-image and editing
Abstract (arXiv)
Recently, many text-to-image diffusion models have excelled at generating high-resolution images from text but struggle with precise control over spatial composition and object counting. To address these challenges, prior works have developed layout-to-image (L2I) approaches that incorporate layout instructions into text-to-image models. However, existing L2I methods typically require fine-tuning of pre-trained parameters or training additional control modules for diffusion models. In this work, we propose a training-free L2I approach, MAC (Marginal Attention Constrained Generation), which eliminates the need for additional modules or fine-tuning. Specifically, we use text-visual cross-attention feature maps to quantify inconsistencies between the layout of the generated images and the provided instructions, and then compute loss functions to optimize latent features during the diffusion reverse process. To enhance spatial controllability and mitigate semantic failures under complex layout instructions, we leverage pixel-to-pixel correlations in self-attention feature maps to align cross-attention maps and combine three loss functions constrained by boundary attention to update latent features. Comprehensive experimental results on both L2I and non-L2I pretrained diffusion models demonstrate that our method outperforms existing training-free L2I techniques, both quantitatively and qualitatively, in terms of image composition on the DrawBench and HRS benchmarks.
Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). Placed in Image generation, text-to-image and editing, one of 14 directions in Diffusion models. Builds on 34 of its 38 references that are in the map. First posted on arXiv 15 Nov 2024.
Builds on
34 of 38 references.
Closest ancestors · 19
Same direction, newest first
- 2024HiCo: Hierarchical Controllable Diffusion Model for Layout-to-image Generation18 Oct
- 2024Training-free Composite Scene Generation for Layout-to-Image Synthesis18 Jul
- 2024Be Yourself: Bounded Attention for Multi-Subject Text-to-Image Generation25 Mar
- 2024Box It to Bind It: Unified Layout Control and Attribute Binding in T2I Diffusion Models27 Feb
- 2023LoCo: Locally Constrained Training-Free Layout-to-Image Synthesis21 Nov
- 2023R&B: Region and Boundary Aware Zero-shot Grounded Text-to-image Generation13 Oct
- 2023Dense Text-to-Image Generation with Attention Modulation24 Aug
- 2023BoxDiff: Text-to-Image Synthesis with Training-Free Box-Constrained Diffusion20 Jul
- 2023Grounded Text-to-Image Synthesis with Attention Refocusing8 Jun
- 2023GeoDiffusion: Text-Prompted Geometric Control for Object Detection Data Generation7 Jun
- 2023HRS-Bench: Holistic, Reliable and Scalable Benchmark for Text-to-Image Models11 Apr
- 2023LayoutDiffusion: Controllable Diffusion Model for Layout-to-image Generation30 Mar
7 more
- 2023DiffusionSeg: Adapting Diffusion Towards Unsupervised Object Discovery17 Mar
- 2023Adding Conditional Control to Text-to-Image Diffusion Models10 Feb
- 2023Attend-and-Excite: Attention-Based Semantic Guidance for Text-to-Image Diffusion Models31 Jan
- 2023GLIGEN: Open-Set Grounded Text-to-Image Generation17 Jan
- 2022SpaText: Spatio-Textual Representation for Controllable Image Generation25 Nov
- 2022Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding23 May
- 2022Hierarchical Text-Conditional Image Generation with CLIP Latents13 Apr
Other references · 15
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,744
- 2020Denoising Diffusion Probabilistic Modelscited by 21,076
- 2015U-Net: Convolutional Networks for Biomedical Image Segmentationcited by 19,713
- 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,863
- 2014Microsoft COCO: Common Objects in Contextcited by 17,608
- 2020Denoising Diffusion Implicit Modelscited by 9,781
- 2020Score-Based Generative Modeling through Stochastic Differential Equationscited by 9,122
- 2022Generative Adversarial Networkscited by 5,627
- 2023SDXL: Improving Latent Diffusion Models for High-Resolution Image Synthesiscited by 4,356
- 2022LAION-5B: An open large-scale dataset for training next generation image-text modelscited by 4,152
- 2023Grounding DINO: Marrying DINO with Grounded Pre-Training for Open-Set Object Detectioncited by 3,332
- 2022Prompt-to-Prompt Image Editing with Cross Attention Controlcited by 2,431
3 more
Built on by
Citing papers per year: 2025: 2; 2026: 2.
4 papers.
- 2025Control and Realism: Best of Both Worlds in Layout-to-Image without Trainingcited by 3
- 2025Task-Oriented Data Synthesis and Control-Rectify Sampling for Remote Sensing Semantic Segmentationcited by 2
- 2026Spatially-Grounded Text-to-Video Generation via Inference-Time Gradient-Free Optimizationcited by 0
- 2026Panoptic Scene Program Diffusion Transformercited by 0
- 2026Panoptic Scene Program Diffusion Transformer24 Sep 2026
- 2026Spatially-Grounded Text-to-Video Generation via Inference-Time Gradient-Free Optimization13 Aug 2026
- 2025Task-Oriented Data Synthesis and Control-Rectify Sampling for Remote Sensing Semantic Segmentation18 Dec 2025
- 2025Control and Realism: Best of Both Worlds in Layout-to-Image without Training18 Jun 2025
Similar, not cited
Close in wording, no citation either way
- 2024Enhancing Image Layout Control with Loss-Guided Diffusion Models
- 2024Layout-to-Image Generation with Localized Descriptions using ControlNet with Cross-Attention Control
- 2023Masked-Attention Diffusion Guidance for Spatially Controlling Text-to-Image Generation
- 2023Harnessing the Spatial-Temporal Attention of Diffusion Models for High-Fidelity Text-to-Image Synthesis
- 2024Layout Control and Semantic Guidance with Attention Loss Backward for T2I Diffusion Model
- 2023Reason out Your Layout: Evoking the Layout Master from Large Language Models for Text-to-Image Synthesis
- 2023SSMG: Spatial-Semantic Map Guided Diffusion Model for Free-form Layout-to-Image Generation
- 2023LayoutLLM-T2I: Eliciting Layout Guidance from LLM for Text-to-Image Generation