TL;DR
coDrawAgents is an interactive multi-agent dialogue framework that tames the compositional chaos of complex text-to-image generation. By breaking down prompts into a step-by-step, visually grounded dialogue between four specialized agents (Interpreter, Planner, Checker, and Painter), it achieves state-of-the-art spatial accuracy and attribute binding without requiring any fine-tuning or extra training.
What Problem Does This Paper Address?
While modern text-to-image (T2I) diffusion models generate stunningly realistic textures and styles, they frequently stumble when handling complex scenes with multiple objects. Common failure modes include missing objects, incorrect counts, and "attribute bleeding" (e.g., rendering a blue cube and a red ball when prompted for a red cube and a blue ball).
Existing attempts to fix this using Large Language Models (LLMs) as layout planners usually suffer from two major flaws:
- Quadratic Complexity: Trying to plan the entire layout of a crowded scene all at once overwhelms the LLM's spatial reasoning.
- Open-Loop Execution: These systems generate layouts in a single forward pass without seeing what the image actually looks like. If an early spatial mistake is made, it propagates uncorrected through the entire diffusion pipeline.
Methods
The authors introduce coDrawAgents, a training-free, plug-and-play framework that replaces the traditional rigid generation pipeline with a closed-loop multi-agent dialogue.
The framework divides labor among four specialized agents:
- Interpreter: Analyzes the prompt and adaptively chooses between a direct "layout-free" path (for simple prompts) and a "layout-aware" path (for complex scenes). For complex scenes, it decomposes the prompt into attribute-rich object descriptors and groups them by semantic priority.
- Planner: Implements a Visualization Chain-of-Thought (VCoT). Instead of planning everything at once, it uses a divide-and-conquer strategy to propose layouts incrementally (one priority group at a time), explicitly grounding its decisions on the current state of the canvas.
- Checker: A two-stage verification module. It first checks individual object properties (size, scale) and global relationships. It then reviews the entire layout history to resolve cross-object conflicts like unrealistic overlaps or scale drift before rendering.
- Painter: Synthesizes the image step-by-step using a layout-to-image (L2I) model. In this paper, the authors pair Flux for base T2I generation with 3DIS for layout-conditioned rendering.
Datasets
The framework was evaluated on two prominent benchmarks designed for compositional text-to-image evaluation:
- GenEval: A standard benchmark focusing on fine-grained evaluation metrics including object presence, attribute binding, counting, and spatial relationships.
- DPG-Bench: A benchmark specifically designed to test long-context prompt adherence and dense, multi-object reasoning.
Key Insights and Ideas
- Divide-and-Conquer Layouts: Breaking down global layout planning into semantic priority levels drastically reduces the relational complexity that a single planner has to handle.
- Visual Grounding Beats Imagination: Forcing the Planner to look at the partially rendered canvas at each step prevents physical impossibilities (like floating objects or clipping) that occur when LLMs try to "imagine" layouts in isolation.
- Explicit Error Correction: The Checker introduces a crucial feedback loop. Because diffusion models lock in global structure during early denoising steps, having an agent that explicitly catches and adjusts bounding boxes before rendering prevents early mistakes from ruining the final image.
Key Results
coDrawAgents achieved state-of-the-art performance across both benchmarks:
- GenEval: Achieved an overall score of 0.94, significantly outperforming standalone models like FLUX.1-dev (0.67) and specialized layout frameworks like GoT (0.64). Notably, it scored 0.95 in spatial positioning and 0.94 in counting.
- DPG-Bench: Earned the highest overall score of 85.17, showing a massive lead in handling complex object relations (92.92) compared to existing multi-agent pipelines like T2I-Copilot (74.34).
Limitations and Future Work
The authors note that specific limitations are discussed in the Supplementary Material rather than the main text. However, based on the architecture, the iterative multi-agent dialogue naturally incurs higher computational latency and API call costs compared to single-forward-pass monolithic models. Future work will likely focus on optimizing agent efficiency and exploring tighter integration with next-generation multimodal models.
Summary updated