Full text not available for this paper
Summary (Overview)
- Problem Identification: The paper identifies the Context Gap — the mismatch between the user-provided context and the sufficient generation context required for text-to-image (T2I) models — as a fundamental challenge in real-world image generation where requests are often underspecified, implicit, or dependent on up-to-date knowledge.
- Proposed Framework: Qwen-Image-Agent, a unified agentic framework that integrates plan, reason, search, memory, and feedback in a context-centric manner, progressively constructing the full generation context through Context-Aware Planning and Context Grounding.
- New Benchmark: IA-Bench (Image Agent Bench), a benchmark covering four core image agent capabilities (Plan, Reason, Search, Memory) with 4 tasks, 17 subtasks, 730 test instances, and 1801 fine-grained binary checklist items.
- State-of-the-Art Results: Qwen-Image-Agent outperforms strong baselines on IA-Bench (IA-score of 45.4), WISE-Verified (0.9020 overall), and MindBench (0.42 overall), achieving state-of-the-art performance.
- Key Insight: The framework is training-free, compatible with existing image generators, and supports both multi-image and multi-turn interaction.
Introduction and Theoretical Foundation
Background and Motivation
Text-to-image (T2I) models have achieved remarkable progress in generating high-quality images from natural language prompts. However, as these systems move into real-world applications such as marketing, product design, and slide creation, they face a structural mismatch between training and deployment:
- Models are optimized for fully specified prompts, while real-world requests are often underspecified.
- Successful generation may require inferring implicit user intent, retrieving up-to-date knowledge or visual references from the web, and incorporating interaction history.
The Context Gap
The paper formally defines the Context Gap as the discrepancy between the provided user context and the generation context required for T2I models. This gap motivates a paradigm shift from traditional direct image generation to agentic image generation, where the system must:
- Identify missing context
- Acquire it
- Use it effectively during generation
Mathematical Formulation
The paper formalizes image generation as a conditional rendering problem. Given a user context with prompt and optional reference images , direct image generation renders output image in a single forward pass:
In real-world scenarios, the user context is often incomplete for the desired visual task. The paper distinguishes user context from generation context , which denotes the complete context needed for successful rendering.
Agentic image generation addresses this gap by treating as a renderer and introducing a context-construction process. At each step , the agent maintains a state , takes an action , and receives an observation , forming a trajectory:
The action space consists of basic operations to gather context: plan, reason, search, rewrite, and evaluate. The state is defined as where is the current context under construction, and is the set of accumulated intermediate results. Let denote the final generation context induced by trajectory . The agentic generation process is then:
Methodology
Qwen-Image-Agent Framework
The framework consists of two main modules: Context-Aware Planning and Context Grounding.
1. Context-Aware Planning
Operates at three levels:
Information-level Planning: Identifies the context gap and plans how to resolve it. The system raises explicit questions to characterize missing information, then routes each question to a suitable context grounding strategy (reasoning, web search, or image search).
Content-level Planning: Builds the generation context and plans image content. The system assembles context obtained during grounding and rewrites the user prompt into a detailed prompt specifying key generation elements: subject, attributes, layout, style, and textual elements.
Generation-level Planning: Allocates generation context in multi-image and multi-turn scenarios. For multi-turn settings, relevant information is selected from previous turns to avoid content drift. For multi-image settings, the generation context is distributed across individual images while accounting for dependencies (parallel, sequential, hybrid).
2. Context Grounding
A unified module that collects context through four channels:
Grounding via Reason: Makes implicit intents and requirements explicit using three forms of reasoning:
- Commonsense reasoning
- Logical reasoning
- Visual reasoning
For each question identified during Information-level Planning, a VLM infers the corresponding answer.
Grounding via Search: Handles requests dependent on up-to-date factual information or IP-related visual references:
- For factual knowledge: extract search keywords → web search → summarize retrieved results
- For visual references: retrieve candidate images → VLM ranking → retain most relevant
Grounding via Memory: Incorporates conversation history, extracts and updates user profiles, and supports external memory sources through a multimodal retriever.
Grounding via Feedback: After generation, plans a checklist of expected image attributes, uses a VLM to assess results against the checklist, and converts failures into feedback context for iterative refinement.
IA-Bench Benchmark
IA-Bench evaluates four core capabilities over 17 subtasks:
| Capability | Tasks | Description |
|---|---|---|
| Plan | Composition, Enumeration, Multi-Panel | Decompose high-level goals into concrete visual arrangements |
| Reason | Math, Science, Commonsense, Maze, Map, Geometry | Infer latent constraints before generation (logical, commonsense, visual reasoning) |
| Search | Game, Movie, Anime, Celebrity (IP); Stock, Weather (Information) | Retrieve or ground external world knowledge |
| Memory | User Profile, Conversation History | Preserve and reuse context across turns |
Evaluation Metrics
The benchmark uses a checklist-based evaluation protocol. For each test instance , let denote the generated image and its checklist. Two complementary metrics are reported:
Pass Rate (PR) — strict task success where all checklist items must be satisfied:
Checklist Accuracy (CA) — average proportion of checklist items satisfied:
IA-score — weighted aggregate over the four dimensions:
Empirical Validation / Results
Implementation Details
- Image generation backbone: Qwen-Image-2.0
- MLLM backbone: GPT-5.5-0424
- Search tools: Google Search API (text limit: 5, image limit: 5), Jina API for web page processing
- Feedback loop: Up to 3 attempts on IA-Bench; disabled on WISE-Verified and MindBench
Results on IA-Bench
| Model | Plan CA | Reason CA | Search CA | Memory CA | Plan PR | Reason PR | Search PR | Memory PR | IA-score |
|---|---|---|---|---|---|---|---|---|---|
| GPT-Image-1.5 | 55.1 | 55.6 | 55.2 | 87.6 | 23.3 | 36.7 | 35.0 | 72.0 | 35.7 |
| Nano Banana Pro | 60.8 | 66.2 | 68.3 | 72.0 | 32.7 | 44.3 | 47.8 | 52.0 | 42.6 |
| Qwen-Image-2.0 | 50.0 | 48.2 | 38.0 | 51.8 | 20.0 | 27.7 | 6.7 | 11.0 | 17.4 |
| GEMS | 70.6 | 28.4 | 49.4 | 52.6 | 41.3 | 18.3 | 18.9 | 13.0 | 24.9 |
| MindBrush | 56.1 | 51.8 | 53.6 | 53.1 | 28.0 | 32.7 | 35.6 | 13.0 | 30.2 |
| SCOPE | 73.3 | 45.2 | 44.4 | 45.2 | 46.7 | 30.0 | 23.3 | 9.0 | 30.9 |
| Qwen-Image-Agent | 72.9 | 65.5 | 67.6 | 73.6 | 45.3 | 43.7 | 46.1 | 49.0 | 45.4 |
Key findings:
- Qwen-Image-Agent achieves the highest IA-score (45.4), improving over Qwen-Image-2.0 by 28 points (from 17.4).
- Particularly large improvement in the Memory dimension (49.0 Pass Rate vs. 11.0 for Qwen-Image-2.0).
- Agentic models consistently outperform direct generation models on Plan, Reason, and Search.
Results on WISE-Verified
Qwen-Image-Agent achieves state-of-the-art performance (0.9020 overall), surpassing previous SOTA Nano Banana Pro (0.8760):
| Model | Culture | Time | Space | Biology | Physics | Chemistry | Overall |
|---|---|---|---|---|---|---|---|
| Nano Banana Pro | 0.8975 | 0.8167 | 0.9333 | 0.8167 | 0.8667 | 0.8750 | 0.8760 |
| GPT-Image-1.5 | 0.8900 | 0.6917 | 0.8833 | 0.8000 | 0.7583 | 0.7750 | 0.8250 |
| Qwen-Image-2.0 | 0.8219 | 0.6500 | 0.8992 | 0.7917 | 0.8000 | 0.7479 | 0.7954 |
| Qwen-Image-Agent | 0.9200 | 0.9167 | 0.9333 | 0.8333 | 0.8667 | 0.9000 | 0.9020 |
Results on MindBench
Qwen-Image-Agent sets a new state of the art (0.42 overall), improving over Qwen-Image-2.0 by 82.6%:
| Model | SE | Wth | MC | IP | WK | SL | Poem | LifeR | GU | Math | Overall |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Nano Banana Pro | 0.50 | 0.36 | 0.40 | 0.16 | 0.56 | 0.62 | 0.68 | 0.30 | 0.16 | 0.46 | 0.41 |
| Qwen-Image-2.0 | 0.19 | 0.24 | 0.23 | 0.04 | 0.12 | 0.42 | 0.58 | 0.12 | 0.02 | 0.28 | 0.23 |
| Qwen-Image-Agent | 0.60 | 0.28 | 0.70 | 0.16 | 0.28 | 0.58 | 0.82 | 0.24 | 0.20 | 0.34 | 0.42 |
Ablation Study
| Framework | MLLM backbone | Gen. backbone | Plan PR | Reason PR | Search PR | Memory PR | IA-score |
|---|---|---|---|---|---|---|---|
| Qwen-Image-Agent | GPT-55 | Qwen-Image-2.0 | 45.3 | 43.7 | 46.1 | 49.0 | 45.4 |
| w/o Reason | GPT-55 | Qwen-Image-2.0 | 24.7 | 29.7 | 46.1 | 49.0 | 35.1 |
| w/o Search | GPT-55 | Qwen-Image-2.0 | 46.0 | 44.3 | 7.8 | 49.0 | 34.3 |
| w/o Memory | GPT-55 | Qwen-Image-2.0 | 45.3 | 43.7 | 46.1 | 0.0 | 40.5 |
| w/o Feedback | GPT-55 | Qwen-Image-2.0 | 40.0 | 41.3 | 42.8 | 49.0 | 42.1 |
| Qwen-Image-Agent | GPT-55 | Qwen-Image | 19.3 | 30.7 | 31.1 | 40.0 | 28.3 |
| Qwen-Image-Agent | Qwen | Qwen-Image-2.0 | 24.7 | 41.7 | 19.4 | 21.0 | 27.8 |
Key ablation findings:
- Removing any grounded context leads to clear drops in its corresponding dimension.
- Removing Reason Context degrades both Reason and Plan (implicit requirements resolved during reasoning feed into planning).
- Removing Feedback Context causes a relatively smaller drop due to Qwen-Image-2.0's strong rendering accuracy.
- Both MLLM backbone and Generation backbone are critical to overall system performance.
Theoretical and Practical Implications
Framework Contributions
-
Unified Context-Centric Perspective: Qwen-Image-Agent provides a unified lens for understanding why current T2I systems fail in practical settings, treating the context gap as the central challenge.
-
Training-Free Compatibility: The framework is training-free and compatible with existing image generators, making it practically deployable without retraining.
-
Modular Grounding: The four grounding channels (reason, search, memory, feedback) are complementary and can be individually ablated, verified through systematic experiments.
Identified Challenges and Failure Modes
The paper identifies several important challenges:
-
Unidentified Context Gaps: Some gaps remain too implicit to be reliably identified (e.g., inferring a historical event from a date and location). These failures depend on MLLM intelligence, not generation backbone strength.
-
Ambiguous Boundary between Reason and Search: The paper proposes a principled distinction: commonsense facts are solvable by internal reasoning, while Precise Facts (exact numbers, dates, names) and Dynamic Facts (change over time) require explicit search.
-
Excessive Image Search: Overuse of image retrieval introduces distracting visual references and degrades output quality, especially when multi-reference editing is brittle.
-
Context Explosion in Multiturn Generation: Accumulated multimodal context (user references, previously generated images, retrieved images) can exceed token limits. Relevance-based context selection mitigates this.
-
Weak Feedback Supervision: Current prompt-based feedback is limited; future work should extend feedback to supervise context-gap identification and grounding earlier in the pipeline.
-
High Latency and Cost: The full agentic pipeline is substantially more expensive than one-shot generation. DAG-based execution enables parallelism, but more efficient pipelines are needed.
Conclusion
This work identifies the Context Gap as a central challenge in real-world image generation and proposes Qwen-Image-Agent, a unified agentic framework that integrates plan, reason, search, memory, and feedback in a context-centric manner. The framework progressively constructs the generation context through Context-Aware Planning (operating at information, content, and generation levels) and Context Grounding (gathering context from four complementary sources).
The paper also introduces IA-Bench, a benchmark for systematically evaluating four core capabilities of agentic image generation: Plan, Reason, Search, and Memory, with 730 instances and 1801 checklist items.
Experiments demonstrate state-of-the-art performance across IA-Bench, WISE-Verified, and MindBench. The work highlights a paradigm shift from direct image generation to agentic image generation, providing a unified context-centric perspective for understanding this transition.
Future directions include:
- Extending feedback beyond post-hoc critique to supervise earlier pipeline stages
- Incorporating task-specific supervision (downstream metrics, reward models) for stronger test-time scaling
- Developing more efficient agentic pipelines through training-based optimization or better tool-use policies
- Improving MLLM intelligence for better context-gap identification and search-reason boundaries
Related papers
- Rollout Cards: A Reproducibility Standard for Agent Research
Rollout cards—preserving full interaction records with explicit reporting rules—make agent evaluation scores reproducible, revealing that reporting choices alone can flip model rankings by up to 20.9 points.
- SPADE: Self-Play in Adaptive Synthetic Executable Environments
SPADE lets a single LLM both write executable training environments and solve them, achieving +8.1 average improvement over base on eight held-out benchmarks via hint-based regret self-play.
- Does the Proof Prove It That Way? Faithful Formalization of Elements Proofs
Pistis achieves faithful formalization of Euclid's proofs by enforcing five checkable conditions, beating prior work 2.89x in human preference and finding genuine citation errors.