TL;DR
This paper introduces CreatiLayout, a novel system for generating images from layout specifications and text prompts. It leverages a Siamese Multimodal Diffusion Transformer (SiamLayout) to effectively integrate layout information, a large-scale dataset (LayoutSAM) for training, and a layout planner (LayoutDesigner) powered by LLMs to enable creative and controllable image generation.
What Problem Does This Paper Address?
Generating images that precisely match user-defined layouts and textual descriptions has been a significant challenge. While diffusion models have excelled at text-to-image generation, controlling the spatial arrangement and attributes of multiple objects within an image remains difficult. Existing methods often rely on UNet architectures and struggle to effectively integrate layout information into powerful multimodal diffusion transformers (MM-DiTs), which treat text as an equally important modality. This paper addresses the complexity of incorporating layout into MM-DiTs, aiming to unlock their full potential for high-quality, fine-grained, and controllable image generation.
Methods
The core of CreatiLayout is SiamLayout, a novel network designed to integrate layout guidance into MM-DiTs. Key innovations include:
- Layout as an Independent Modality: SiamLayout treats layout information as a distinct modality, processed by separate transformer parameters, ensuring it's given equal importance to image and text.
- Siamese Branches for Decoupled Interaction: To mitigate "modality competition" (where new modalities like layout might be overshadowed by established ones like text), SiamLayout decouples the interactions into two parallel Siamese branches: one for image-text and another for image-layout. This allows for independent guidance from both text and layout before fusing them.
- Layout Designer: This component leverages large language models (LLMs) to act as a creative layout planner. It can interpret diverse user inputs (e.g., center points, masks, scribbles, or rough ideas) and transform them into harmonious and aesthetically pleasing layouts, going beyond simple bounding boxes.
The paper also explores and discards other integration strategies like a "Layout Adapter" (using cross-attention) and "M³-Attention" (treating all three modalities equally in a single attention mechanism), finding SiamLayout to be the most effective.
Datasets
- LayoutSAM: A newly introduced large-scale dataset for layout-to-image generation. It comprises 2.7 million image-text pairs and 10.7 million entities, each with a bounding box and a detailed description. This dataset is designed to overcome the limitations of existing closed-set and coarse-grained datasets.
- LayoutSAM-Eval: A benchmark derived from LayoutSAM, specifically designed for evaluating L2I generation quality.
- COCO 2017: Used for evaluating the generalization capabilities of SiamLayout on a coarse-grained, closed-set dataset.
- T2I-CompBench: Used to evaluate the impact of layout guidance on text-to-image generation.
Key Insights and Ideas
- Modality Competition is Real: The paper highlights that simply adding a new modality (like layout) to existing MM-DiTs can lead to "modality competition," where the new modality has less influence than established ones. This is attributed to a lack of pre-training and alignment on large-scale datasets.
- Siamese Architecture Solves Competition: Decoupling interactions into parallel Siamese branches (image-text and image-layout) effectively addresses modality competition, allowing layout to exert more consistent and influential guidance.
- LLMs as Creative Layout Planners: The integration of LLMs for layout planning (LayoutDesigner) opens up new possibilities for user interaction, enabling more flexible and sophisticated layout creation beyond rigid bounding boxes.
- Fine-grained Annotations Matter: The creation of LayoutSAM with detailed entity descriptions and bounding boxes is crucial for training models that can generate complex attributes like color, texture, and shape accurately.
Key Results
- SiamLayout Outperforms SOTA: On the LayoutSAM-Eval benchmark, SiamLayout significantly outperforms previous state-of-the-art methods in both spatial adherence and attribute accuracy, achieving improvements of up to +11.70% in spatial and +68.12% in attribute accuracy.
- Improved Image Quality: SiamLayout demonstrates a dominant advantage in overall image quality, producing more accurate and aesthetically appealing renderings of complex attributes.
- Generalization to COCO: SiamLayout also shows strong performance on the COCO dataset, outperforming previous methods on CLIP, FID, and IS metrics, though slightly inferior in spatial positioning compared to methods trained on more fine-grained COCO data.
- LayoutDesigner Superiority: The LayoutDesigner, fine-tuned with LoRA, significantly outperforms vanilla LLMs in layout planning accuracy and quality, producing more harmonious and aesthetically pleasing layouts.
Limitations and Future Work
- Computational Cost of LLMs: The paper acknowledges that integrating LLMs for layout planning introduces extra computational costs.
- End-to-End Integration: The authors suggest that integrating layout planning directly with L2I generation into an end-to-end model is a promising future direction.
- Handling Many Entities: Improving control accuracy in scenarios with a large number of entities or entities with rich text content is identified as an area for future research.
Summary updated