TL;DR
CreatiLayout is a new framework that brings precise, fine-grained layout control to Multimodal Diffusion Transformers (MM-DiTs) like SD3 and FLUX. By introducing a "siamese" attention mechanism to prevent layout instructions from being ignored and contributing a massive new dataset (LayoutSAM), it achieves state-of-the-art performance in generating images that strictly follow complex spatial and attribute-based prompts.
What Problem Does This Paper Address?
While text-to-image models have become incredibly powerful, getting them to place specific objects in exact locations with precise attributes (like "a pink neon sign saying 'HELLO FRIENDS' on the left") remains a challenge. This field, known as Layout-to-Image (L2I) generation, has traditionally relied on older UNet-based architectures.
The industry is currently shifting toward Multimodal Diffusion Transformers (MM-DiTs) because they handle text and images more effectively. However, simply adding layout information (bounding boxes and descriptions) to these models doesn't work well. The authors identify a phenomenon called "modality competition": because the model is already heavily pre-trained on text and images, the new layout modality gets "drowned out" in the attention layers, leading the model to ignore spatial constraints in favor of the general text prompt.
Methods
The authors propose a three-part solution called CreatiLayout:
-
SiamLayout Architecture: To solve modality competition, the researchers decoupled the interaction. Instead of one giant attention block for text, image, and layout, they use two parallel "siamese" branches. One branch handles the standard image-text interaction, while the other focuses solely on image-layout interaction. These are fused in a later stage, ensuring the layout has a "fair say" in the final image. An overview of the proposed SiamLayout pipeline.
-
LayoutDesigner: This is a fine-tuned Large Language Model (Llama-3.1) that acts as a "brain" for the system. It can take vague user inputs—like a rough idea, a center point, or a scribble—and convert them into a structured, aesthetically pleasing layout plan that the diffusion model can understand. An overview of layout generation and optimization using LayoutDesigner.
-
Training Strategies: They use "biased time step sampling" (focusing training on the early stages of image generation where structure is formed) and a "region-aware loss" to force the model to pay more attention to the pixels inside the specified bounding boxes.
Datasets
A major contribution of this work is the LayoutSAM dataset. Existing datasets were often too small or had "closed-set" labels (e.g., just "dog" or "car").
- LayoutSAM: Derived from the Segment Anything Model (SAM) dataset, it contains 2.7 million image-text pairs and 10.7 million entities.
- Fine-grained Annotations: Unlike previous datasets, each entity has a detailed description (averaging 15 tokens) covering color, texture, and shape, rather than just a simple category label.
- LayoutSAM-Eval: A new benchmark of 5,000 prompts designed to test how well models follow complex, multi-attribute spatial instructions.
Key Insights and Ideas
- The "Modality Competition" Discovery: The authors proved that in standard joint-attention models, the similarity between layout and image tokens is significantly lower than between text and image. This explains why previous attempts to add layout to Transformers often failed.
- Decoupling is Key: By using siamese branches, the model can learn layout-to-image alignment without fighting against the strong, pre-existing text-to-image alignment.
- Attribute-Level Control: Because LayoutSAM includes detailed descriptions for every box, the model learns that a "wooden table" isn't just a brown rectangle; it learns to render the specific grain and texture within that specific box.
Key Results
SiamLayout significantly outperforms previous state-of-the-art models like GLIGEN and InstanceDiff across almost all metrics:
- Spatial Accuracy: On the LayoutSAM-Eval benchmark, SiamLayout-SD3 achieved a 92.67% spatial score, a +7.68 improvement over previous bests.
- Attribute Precision: It showed massive gains in rendering correct colors (+11.52), textures (+10.75), and shapes (+11.70).
- Qualitative Superiority: As seen in Figure 6, SiamLayout is uniquely capable of following complex prompts involving text rendering (neon signs) and specific material properties (weathered wood, leather) within defined regions.
Limitations and Future Work
- Computational Cost: Using an LLM (LayoutDesigner) for planning adds an extra step and more compute compared to end-to-end models. The authors suggest integrating this into a single model in the future.
- Entity Density: While the model is robust, very crowded scenes with dozens of overlapping entities still pose a challenge for perfect adherence.
- Rich Text: While it handles short text in images well (like signs), rendering long, complex paragraphs within a layout is still an open research area.
Summary updated