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

RS-Gen: A Multi-Stage Agentic Framework for Reasoning and Search-Augmented Image Generation

Feifei Bian, Zhimin Zheng, Wei Deng, Daiguo Zhou, Jian LuanarXiv 2026

TL;DR

RS-Gen is a training-free, plug-and-play agentic framework that transforms image generation and editing from a simple text-to-pixel mapping into a multi-stage "questioning-and-solving" workflow. By combining external search tools, explicit logical reasoning, and a self-correcting feedback loop, it dramatically boosts the performance of open-source diffusion models on complex, knowledge-intensive tasks.

What Problem Does This Paper Address?

Current state-of-the-art image generation models (like FLUX or Qwen-Image) create stunning visuals but fail at true "intelligent generation." They struggle with three main bottlenecks:

  1. Implicit Intentions: They rely on precise, explicit prompts and fail to parse ambiguous expressions or colloquial references in multi-turn dialogues.
  2. Lack of Logical Reasoning: The generation process is mostly a superficial statistical mapping. When faced with complex visual puzzles or tasks requiring physical state evolution (e.g., "draw the scene two hours later"), they frequently violate common sense and physical laws.
  3. Knowledge Cutoffs: Constrained by static training data, models suffer from visual hallucinations when handling out-of-distribution (OOD) concepts or real-time, long-tail entities.

While unified vision-language models try to bridge this gap, they are limited by static parameters and prohibitive training costs.

Methods

RS-Gen breaks down the generation process into a collaborative workflow driven by four specialized sub-agents:

  1. Image Router Agent: Resolves conversational ambiguities and anchors reference images using a "Delayed Resolution" principle, which strictly prohibits the model from guessing details before external facts are retrieved.
  2. Intent Analysis Agent: Evaluates task complexity to decide if a prompt can be directly generated or if it requires deep reasoning. It extracts latent constraints and formulates structured sub-questions.
  3. Reasoning & Search Agent: Acts as the cognitive hub. Using a ReAct (Thought-Action-Observation) loop, it queries an expert tool hub—including web search (Google/Baidu), Wikipedia, LocationIQ, and deep reasoning LLMs (like GPT-5.4)—to eliminate information uncertainty.
  4. Image Generation Agent: Executes the task using an iterative "Generate-Verify-Correct" closed loop. A Multimodal Large Language Model (MLLM) critiques the generated image against the prompt, and the agent autonomously adjusts its strategy until pixel-level and semantic alignment are achieved.
Figure 2: The overall framework of RS-Gen. The overall architecture of the RS-Gen framework. First, the user input is processed by the Image Routing sub-agent to accurately identify target images and disambiguate vague references in the instructions. Then, the Intent Analysis sub-agent evaluates task complexity to plan the optimal execution path, dynamically extracting key sub-problems and refining user instructions as needed. Subsequently, the Reasoning and Search sub-agent autonomously invokes external tools to accomplish factual information retrieval and logical reasoning. Finally, the Image Generation sub-agent executes specific image generation and editing tasks, achieving iterative self-correction through a built-in review mechanism.

Datasets

The authors evaluate RS-Gen on two highly challenging benchmarks:

  • WISE_Verified: A dataset of 1,000 meticulously constructed prompts testing a model's ability to integrate world knowledge across 25 sub-domains (e.g., natural sciences, cultural common sense, and spatio-temporal reasoning).
  • RISEBench: A benchmark specifically designed for complex image editing tasks requiring temporal, causal, spatial, and logical reasoning.

Key Insights and Ideas

  • Process Decoupling over Intermediate Details: When dealing with complex physics or logic puzzles, the framework discards intermediate procedural descriptions and focuses entirely on anchoring the terminal visual state. This prevents downstream diffusion models from getting confused by abstract action verbs.
  • Text-then-Image Cascade Anchoring: To find accurate visual references for ambiguous entities (e.g., "a brand's latest concept car"), the system searches for text descriptions first to lock onto an exact identifier before executing an image search, preventing visual feature contamination.
  • Training-Free Universality: Instead of fine-tuning massive models on expensive trajectory datasets, RS-Gen works entirely via prompt engineering and tool orchestration, making it completely model-agnostic and plug-and-play.

Key Results

The framework achieves state-of-the-art (SOTA) performance among open-source models on both benchmarks:

  • On the WISE_Verified benchmark, adding RS-Gen to Qwen-Image boosted its overall score from 0.5100 to 0.8230 (a massive 0.313 absolute gain), outperforming all other open-source unified models and rivaling top commercial systems.
  • On RISEBench, RS-Gen propelled Qwen-Image-Edit-2511 from an overall score of 19.4 to 39.1 (+19.7 points), showing massive leaps in temporal and causal reasoning sub-tasks.
  • Cross-model generalization experiments confirmed that the framework also yields substantial performance gains when integrated with other open-source base models like LongCat-Image and Z-Image.
Figure 1: Representative generation results by our proposed RS-Gen. By integrating external knowledge retrieval and logical reasoning mechanisms, RS-Gen achieves superior accuracy and fidelity in challenging tasks, including specific entity generation, logical puzzle-solving, visual reasoning, and physical evolution.

Limitations and Future Work

  • Dependence on the Driving Model: The framework's success heavily relies on the instruction-following and reasoning capabilities of its core driving LLM (e.g., Doubao-Seed). Performance may degrade if paired with lightweight or older LLMs.
  • Future Directions: The authors plan to develop an Automatic Prompt Optimizer to adaptively evolve prompt strategies during inference. They also aim to implement a Reflective Skill Library to let the agent distill and reuse successful reasoning trajectories for future tasks, enabling lifelong learning.

Summary updated

BibTeX
@misc{bian2026rs,
  author = {Feifei Bian and Zhimin Zheng and Wei Deng and Daiguo Zhou and Jian Luan},
  title = {{RS-Gen: A Multi-Stage Agentic Framework for Reasoning and Search-Augmented Image Generation}},
  year = {2026},
  eprint = {2606.23221},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.23221},
}
Figure