Abstract
Open text-to-image models struggle with requests that leave key content implicit or impose many explicit constraints. Multimodal agents can infer or retrieve this content and verify generated images, but for each request they must decide which operations to run and what information each one receives. We introduce GenDAG, an agentic framework that makes both decisions jointly by synthesizing a query-adaptive directed acyclic graph (DAG) whose edges carry typed intermediate results between operators. Before execution, a checker type-checks every edge and returns diagnostics for repair. After generation, visual checks against stated and inferred requirements guide regeneration. These mechanisms adapt each workflow reliably before execution and ground generation and verification in the same context to catch omissions and errors that detailed prompts miss. Using Qwen-Image-2.1 without fine-tuning, GenDAG scores 88.70 on WISE and 89.32 on T2I-CoReBench, exceeding direct generation with GPT-Image-2 and Nano Banana Pro, while trailing GPT-Image-2 by 1.51 points on GenEval2. Applied to GPT-Image-2, the same agent further improves the generation quality of this strong commercial model.
How GenDAG works
The agent writes a typed plan for the request, a checker validates it, and the executor runs it with visual feedback. Hover any panel of the figure.Tap any panel of the figure.
Typed operators
Twelve operators, mined from about 156K agent trajectories, cover 86.68% of recorded actions. Select a type to see which operators produce and consume it, or an operator to see its inputs and output.
Plan checking and repair
A real first plan wires an image into a prompt port. Compare a bare rejection with a typed diagnostic.
Explore plans
Ten selected plans, two per benchmark, executed with Qwen-Image-2.1. Select a node to see what it produced.
Results
All open methods use the same Qwen-Image-2.1 generator. Scores are on a 0–100 scale and come from each benchmark's judge.
PE is the generator's official prompt enhancement.
† GEMS and GenRouter take no image inputs, so their Mind-Bench score covers the 350 text-to-image requests.
T2I-CoReBench by dimension
Across image generators
Analysis
Plans follow what each benchmark leaves unsaid, and one checked plan needs fewer LLM requests and tokens than step-by-step tool use.
Plans containing each operator
7,368 executions with Qwen-Image-2.1GenDAG vs. ReAct with the same operators
Gallery
Curated prompts from the paper. Each image is a system's first execution, and badges show the benchmark judge's score.
Direct generation vs. GenDAG with each generator
Four prompts per benchmark on which GenDAG improves over direct generation with all three generators.