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:

  1. Identify missing context
  2. Acquire it
  3. Use it effectively during generation

Mathematical Formulation

The paper formalizes image generation as a conditional rendering problem. Given a user context cu=(P,Iref)c_u = (P, I_{ref}) with prompt PP and optional reference images IrefI_{ref}, direct image generation renders output image yy in a single forward pass:

ypgen(cu)(1)y \sim p_{gen}(\cdot | c_u) \tag{1}

In real-world scenarios, the user context cuc_u is often incomplete for the desired visual task. The paper distinguishes user context from generation context cgc_g, which denotes the complete context needed for successful rendering.

Agentic image generation addresses this gap by treating pgenp_{gen} as a renderer and introducing a context-construction process. At each step tt, the agent maintains a state sts_t, takes an action ata_t, and receives an observation oto_t, forming a trajectory:

τ={(st,at,ot)}t=1T(2)\tau = \{(s_t, a_t, o_t)\}_{t=1}^{T} \tag{2}

The action space consists of basic operations to gather context: plan, reason, search, rewrite, and evaluate. The state is defined as st=(ct,Ot1)s_t = (c_t, O_{t-1}) where ctc_t is the current context under construction, and Ot1={o1,,ot1}O_{t-1} = \{o_1, \ldots, o_{t-1}\} is the set of accumulated intermediate results. Let c(τ)c(\tau) denote the final generation context induced by trajectory τ\tau. The agentic generation process is then:

pagent(ycu)=τp(τcu)pgen(ycg=c(τ))(3)p_{agent}(y | c_u) = \sum_{\tau} p(\tau | c_u) p_{gen}(y | c_g = c(\tau)) \tag{3}

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:

CapabilityTasksDescription
PlanComposition, Enumeration, Multi-PanelDecompose high-level goals into concrete visual arrangements
ReasonMath, Science, Commonsense, Maze, Map, GeometryInfer latent constraints before generation (logical, commonsense, visual reasoning)
SearchGame, Movie, Anime, Celebrity (IP); Stock, Weather (Information)Retrieve or ground external world knowledge
MemoryUser Profile, Conversation HistoryPreserve and reuse context across turns

Evaluation Metrics

The benchmark uses a checklist-based evaluation protocol. For each test instance ii, let IigenI^{gen}_i denote the generated image and Ci={cji}j=1KiC_i = \{c_j^i\}_{j=1}^{K_i} its checklist. Two complementary metrics are reported:

Pass Rate (PR) — strict task success where all checklist items must be satisfied:

PR=1Ni=1Nj=1KiVLM(Iigen,cji)PR = \frac{1}{N} \sum_{i=1}^{N} \prod_{j=1}^{K_i} \text{VLM}(I^{gen}_i, c_j^i)

Checklist Accuracy (CA) — average proportion of checklist items satisfied:

CA=1Ni=1N1Kij=1KiVLM(Iigen,cji)CA = \frac{1}{N} \sum_{i=1}^{N} \frac{1}{K_i} \sum_{j=1}^{K_i} \text{VLM}(I^{gen}_i, c_j^i)

IA-score — weighted aggregate over the four dimensions:

IA-score=0.3×Plan+0.3×Reason+0.3×Search+0.1×Memory\text{IA-score} = 0.3 \times \text{Plan} + 0.3 \times \text{Reason} + 0.3 \times \text{Search} + 0.1 \times \text{Memory}

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

ModelPlan CAReason CASearch CAMemory CAPlan PRReason PRSearch PRMemory PRIA-score
GPT-Image-1.555.155.655.287.623.336.735.072.035.7
Nano Banana Pro60.866.268.372.032.744.347.852.042.6
Qwen-Image-2.050.048.238.051.820.027.76.711.017.4
GEMS70.628.449.452.641.318.318.913.024.9
MindBrush56.151.853.653.128.032.735.613.030.2
SCOPE73.345.244.445.246.730.023.39.030.9
Qwen-Image-Agent72.965.567.673.645.343.746.149.045.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):

ModelCultureTimeSpaceBiologyPhysicsChemistryOverall
Nano Banana Pro0.89750.81670.93330.81670.86670.87500.8760
GPT-Image-1.50.89000.69170.88330.80000.75830.77500.8250
Qwen-Image-2.00.82190.65000.89920.79170.80000.74790.7954
Qwen-Image-Agent0.92000.91670.93330.83330.86670.90000.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%:

ModelSEWthMCIPWKSLPoemLifeRGUMathOverall
Nano Banana Pro0.500.360.400.160.560.620.680.300.160.460.41
Qwen-Image-2.00.190.240.230.040.120.420.580.120.020.280.23
Qwen-Image-Agent0.600.280.700.160.280.580.820.240.200.340.42

Ablation Study

FrameworkMLLM backboneGen. backbonePlan PRReason PRSearch PRMemory PRIA-score
Qwen-Image-AgentGPT-55Qwen-Image-2.045.343.746.149.045.4
w/o ReasonGPT-55Qwen-Image-2.024.729.746.149.035.1
w/o SearchGPT-55Qwen-Image-2.046.044.37.849.034.3
w/o MemoryGPT-55Qwen-Image-2.045.343.746.10.040.5
w/o FeedbackGPT-55Qwen-Image-2.040.041.342.849.042.1
Qwen-Image-AgentGPT-55Qwen-Image19.330.731.140.028.3
Qwen-Image-AgentQwenQwen-Image-2.024.741.719.421.027.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

  1. 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.

  2. Training-Free Compatibility: The framework is training-free and compatible with existing image generators, making it practically deployable without retraining.

  3. 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:

  1. Extending feedback beyond post-hoc critique to supervise earlier pipeline stages
  2. Incorporating task-specific supervision (downstream metrics, reward models) for stronger test-time scaling
  3. Developing more efficient agentic pipelines through training-based optimization or better tool-use policies
  4. Improving MLLM intelligence for better context-gap identification and search-reason boundaries

Related papers