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

Abstract

Current text-to-image (T2I) diffusion models often struggle with complex compositional prompts and lack the ability to self-correct during the generative process. We present GenArtist, a unified framework that treats a Multimodal Large Language Model (MLLM) as an agentic controller for a suite of specialized image generation and editing tools. By employing a hierarchical planning tree and an iterative verification mechanism, GenArtist decomposes complex tasks into manageable sub-operations, significantly improving attribute binding and spatial accuracy. Our evaluation on T2I-CompBench and MagicBrush shows that GenArtist outperforms state-of-the-art monolithic models like DALL-E 3, particularly in multi-turn editing and complex compositional scenarios.

1. Introduction

The rapid advancement of diffusion models has revolutionized digital content creation. However, monolithic models like SDXL and DALL-E 3 frequently encounter three primary challenges: prompt neglect, attribute bleeding, and a lack of self-correction. These models typically operate in a "one-shot" fashion, where a single forward pass must interpret the prompt and generate the final pixels. When faced with intricate descriptions—such as specific spatial arrangements or multiple objects with distinct attributes—these models often fail to capture every detail or incorrectly swap attributes between objects.

Furthermore, the tasks of image generation and image editing have historically been treated as separate domains, requiring different models and interfaces. GenArtist addresses these gaps by introducing an agentic framework that unifies generation and editing through a "divide-and-conquer" strategy.

2. Methodology

GenArtist utilizes an MLLM (e.g., GPT-4V) as a central reasoning engine to coordinate a diverse library of specialized tools. The system architecture is built upon three fundamental pillars:

2.1 Task Decomposition

Rather than processing a complex prompt as a single instruction, GenArtist decomposes it into a sequence of sub-tasks. For instance, a prompt requiring a specific background with multiple foreground objects is broken down into steps such as "Generate background," "Place object A at coordinates (x,y)," and "Modify attribute of object B."

2.2 Planning Tree with Iterative Verification

The core of GenArtist is its planning tree. Each node in the tree represents a specific tool operation. Crucially, the system does not proceed blindly. After each step, the MLLM performs a verification phase, inspecting the intermediate output against the original requirements. If the verification fails—for example, if an object was placed incorrectly or an attribute is missing—the agent can backtrack to a previous node and attempt a different strategy or tool. This mimics the iterative workflow of a human artist.

2.3 Position-Aware Tool Execution

To bridge the gap between natural language and the coordinate-based requirements of editing tools (like inpainting or object addition), GenArtist incorporates an Auxiliary Tool Library. This library includes object detectors and segmentors that allow the agent to automatically generate bounding boxes and masks. This spatial awareness enables precise manipulation of specific image regions without requiring the user to provide manual coordinates.

3. Experimental Setup

The performance of GenArtist was evaluated using two benchmark datasets:

  • T2I-CompBench: This benchmark focuses on compositional text-to-image generation, specifically testing attribute binding (color, shape, texture) and spatial relationships.
  • MagicBrush: A dataset designed for instruction-based image editing, facilitating the evaluation of both single-turn and multi-round interactive editing capabilities.

The tool library integrated into GenArtist includes SDXL and PixArt-α for base generation, ControlNet for layout-guided generation, and specialized models such as LaMa for object removal and AnyDoor for zero-shot object insertion.

4. Results and Key Insights

GenArtist achieves state-of-the-art (SOTA) results across both generation and editing benchmarks.

4.1 Compositional Accuracy

On T2I-CompBench, GenArtist demonstrated a significant lead over monolithic baselines. It outperformed DALL-E 3 by over 7% in attribute binding tasks. The improvement was most pronounced in spatial relationship tasks, where GenArtist showed an improvement of nearly 20% over several baseline models. This success is attributed to the agent's ability to verify and correct the placement of objects iteratively.

4.2 Editing Excellence

In the MagicBrush benchmark, GenArtist proved highly effective at maintaining consistency across multi-turn dialogues. By treating editing as a continuation of the planning tree, the agent can track the state of the image and apply precise modifications without degrading the overall quality of the composition.

4.3 The Power of Verification

A key insight from this research is the asymmetry between generation and perception in MLLMs. While current MLLMs may not yet be capable of generating high-fidelity pixels directly, they are exceptionally proficient at verifying visual content. GenArtist leverages this by using the MLLM as a supervisor that critiques and guides specialized generative tools.

5. Limitations and Future Work

Despite its performance, GenArtist has several limitations. The system's overall intelligence is bounded by the capabilities of the underlying MLLM; errors in perception lead to errors in the final output. Additionally, as a coordinator, GenArtist is limited by the quality of the tools in its library. Finally, the iterative nature of the planning tree and multiple model calls result in higher inference latency compared to single-pass models. Future research will focus on optimizing the pipeline for speed and exploring the integration of human-in-the-loop feedback during the verification stages.

6. Conclusion

GenArtist represents a shift from monolithic generative models toward modular, agentic systems. By combining the reasoning and verification capabilities of MLLMs with a specialized tool library, GenArtist provides a robust and flexible solution for complex image generation and editing, setting a new standard for compositional fidelity in AI-driven art.

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