NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

GenArtist: Multimodal LLM as an Agent for Unified Image Generation and Editing

Zhenyu Wang, Aoxue Li, Zhenguo Li, Xihui Liu

TL;DR

GenArtist is a unified framework that transforms a Multimodal Large Language Model (MLLM) into an "artist agent" capable of orchestrating a library of specialized image generation and editing tools. By decomposing complex prompts into a verifiable planning tree, the system can systematically generate, verify, and self-correct images, significantly outperforming monolithic models like DALL-E 3 and SDXL in compositional accuracy and spatial reasoning.

What Problem Does This Paper Address?

Despite the impressive "one-shot" capabilities of models like DALL-E 3, they often stumble when faced with highly complex prompts involving multiple objects, specific spatial relationships, or intricate attribute bindings (e.g., "a red cat next to a blue dog"). Furthermore, these models lack a "closed-loop" mechanism; they cannot look at their own output, identify a mistake, and fix it.

Existing research has produced a fragmented landscape of specialized tools—some excel at layout, others at object removal, and others at fine-grained attribute editing. However, there hasn't been a unified way to combine these strengths into a single, reliable system that can handle both generation and editing while performing self-correction.

Methods

GenArtist operates as an AI agent coordinated by an MLLM (specifically GPT-4V in their experiments). The architecture consists of three core pillars:

  1. Decomposition and Planning Tree: When given a complex instruction, the agent doesn't try to solve it at once. It decomposes the prompt into a sequence of simpler sub-tasks (e.g., "generate background," "add object A," "change color of object B"). These are organized into a Planning Tree. Each node represents an operation, and the agent can explore different "branches" (different tools or random seeds) if a specific path fails.
  2. Unified Tool Library: The authors integrated a wide array of SOTA models into a single interface. This includes generation tools (SDXL, LMD, BoxDiff), editing tools (AnyDoor, LaMa, MagicBrush), and auxiliary tools (Grounding DINO for detection, Segment Anything for masking).
  3. Position-Aware Execution: MLLMs are notoriously poor at precise spatial coordinates. GenArtist solves this by using auxiliary detection tools to provide the agent with bounding box information. This allows the agent to "see" exactly where objects are located, enabling precise instructions for editing tools that require positional inputs.
  4. Step-by-Step Verification: After each operation, the MLLM acts as a critic. It compares the intermediate image against the sub-task requirements. If the verification fails, the agent backtracks or tries a different tool to self-correct.
The overview of GenArtist showing decomposition, planning, and tool execution.

Datasets

The authors evaluated GenArtist on two primary benchmarks to test its versatility:

  • T2I-CompBench: A comprehensive benchmark for open-world compositional text-to-image generation, focusing on attribute binding (color, shape, texture) and spatial relationships.
  • MagicBrush: A large-scale dataset for instruction-guided image editing, covering both single-turn and multi-turn editing scenarios.

Key Insights and Ideas

  • Perception is Easier than Generation: A key "aha" moment is the realization that while an MLLM might struggle to generate a complex scene perfectly in one go, it is excellent at verifying whether a generated image matches a text description. GenArtist leverages this asymmetry.
  • The Power of Backtracking: By using a tree structure rather than a linear chain, the system can recover from "dead ends." If an editing tool ruins an image while trying to add a small detail, the agent can revert to a previous successful state and try a different approach.
  • Bridging the Semantic-Spatial Gap: By incorporating object detectors into the loop, the authors provide the MLLM with the "spatial eyes" it lacks, allowing it to interface with coordinate-heavy computer vision tools effectively.
Illustration of the planning tree and how the agent explores different tools and self-correction paths.

Key Results

GenArtist achieves state-of-the-art performance across the board:

  • Compositional Generation: On T2I-CompBench, it outperformed DALL-E 3 by over 7% in attribute binding and achieved a staggering 20% improvement in spatial relationship accuracy.
  • Image Editing: It set new SOTA records on MagicBrush, outperforming specialized models like InstructPix2Pix and HIVE in both L1/L2 metrics and CLIP-based similarity scores.
  • Qualitative Superiority: As seen in Figure 1, GenArtist successfully handles prompts that cause other models to fail, such as maintaining the correct number of objects or specific color assignments in crowded scenes.
Visualized examples comparing GenArtist to SDXL and DALL-E 3.

Limitations and Future Work

  • Tool Dependency: The system's performance is ultimately capped by the quality of the tools in its library. For instance, if an editing tool lacks the resolution to add a "very small" object, the agent may fail despite correct planning.
  • Inference Latency: Because the system involves multiple LLM calls and iterative generation/verification steps, it is significantly slower than a single-pass model.
  • Error Propagation: While the system can self-correct, errors in the initial localization/detection tools can sometimes lead the agent astray during the planning phase.

The authors suggest that future work could involve incorporating human feedback directly into the verification loop and expanding the tool library to include video and 3D generation.

Summary updated

BibTeX
@inproceedings{wang2024genartist,
  author = {Zhenyu Wang and Aoxue Li and Zhenguo Li and Xihui Liu},
  title = {{GenArtist: Multimodal LLM as an Agent for Unified Image Generation and Editing}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=Ur00BNk1v2},
}
Figure