Abstract
Generating complex images with multiple specific objects remains a significant challenge for standard diffusion models, often leading to "attribute leakage"—where properties of one object incorrectly bleed into another. This paper introduces a novel two-stage framework that leverages a lightweight 1B-parameter model, Janus-Pro, to parse text into precise spatial layouts, followed by a parameter-efficient plug-in, MIGLoRA, to render these layouts into high-fidelity images. Our system achieves state-of-the-art accuracy on complex scenes while utilizing 86% fewer trainable parameters than previous leading methods.
Introduction
Current text-to-image (T2I) models like Stable Diffusion excel at general concepts but frequently struggle with Multi-Instance Generation (MIG). Common failures include swapping object positions, merging distinct entities into hybrids, or omitting requested objects entirely. Existing solutions typically fall into two categories: training-free methods, which often fail to disentangle attributes in dense layouts, and parameter-intensive methods (like ControlNet), which are computationally expensive and difficult to scale to modern architectures like Diffusion Transformers (DiT). This research aims to bridge the gap between free-form language and pixel-perfect spatial grounding without massive computational overhead.
Methodology
The proposed framework, Janus-Pro-Driven Prompt Parsing, decouples the generation process into two distinct stages: layout planning and image synthesis.
Stage I: Text-to-Layout (The Architect)
Rather than relying on massive 8B+ parameter Large Language Models (LLMs), the authors fine-tune Janus-Pro-1B. This multimodal model is uniquely suited for the task as it unifies visual understanding and generation. It processes a user prompt to output a structured layout consisting of bounding boxes for every object and specific "sub-captions" for each box, providing a blueprint for the subsequent stage.
Stage II: Layout-to-Image (The Painter)
The core of the rendering stage is MIGLoRA, a "plug-and-play" module based on Low-Rank Adaptation (LoRA). The implementation varies by architecture:
- For UNet (SD1.5/SDXL): A "Divide-and-Conquer" strategy is employed. Each object instance is processed separately through LoRA-enhanced encoders and then fused using a mask-based approach to suppress background noise.
- For DiT (SD3): Layout tokens are injected directly into the Transformer blocks, allowing image tokens to attend to both text and spatial coordinates simultaneously.
To ensure natural results, the model utilizes Time-Dependent Guidance, strictly following the layout in early diffusion steps and relaxing constraints in later steps to prioritize photorealistic textures.
Evaluation and Results
To support this research, the authors introduced DescripBox, a massive benchmark containing 2.44M images with complex multi-element scenes. Evaluation was also conducted on public benchmarks like COCO and LVIS to test zero-shot spatial localization.
Key Performance Metrics
- Efficiency: MIGLoRA reduces trainable parameters by 86% compared to previous SOTA methods like CreatiLayout and cuts computational costs by 40%.
- Image Quality: On the COCO benchmark, the system achieved a FID (Fréchet Inception Distance) of 14.9, outperforming existing models in both visual quality and layout adherence.
- Spatial Accuracy: In LVIS zero-shot tests, it achieved the highest IoU (Intersection over Union), confirming that objects are rendered precisely within their designated bounding boxes.
Discussion and Future Work
While the framework sets a new standard for efficient MIG, some limitations remain. The Janus-Pro parser currently generates layouts at a 384x384 resolution, which can act as a bottleneck for detail preservation in extremely dense scenes. Additionally, quadratic token growth in self-attention layers can weaken text-layout interaction when the number of objects exceeds four. Future research will focus on integrating this framework into larger models like FLUX and exploring end-to-end training paradigms to further streamline the generation pipeline.
Summary updated