Reasoning with Image Generation

Nishad Singhi, Hector Garcia Rodriguez, Aditya Arora, Marcus Rohrbach, Anna Rohrbach

TL;DR

The paper introduces REIMAGIN, a novel visual reasoning framework that equips Multimodal Large Language Models (MLLMs) with an instruction-tuned image generation model as a flexible, open-ended tool. Instead of relying on rigid, fixed-function vision tools, REIMAGIN allows MLLMs to perform complex visual manipulations—like removing occlusions, drawing trajectories, or stitching perspectives—consistently outperforming text-only baselines and specialist vision tools across diverse spatial reasoning tasks.

What Problem Does This Paper Address?

While Chain-of-Thought (CoT) prompting has drastically improved LLM reasoning in text, extending it to the visual domain remains challenging. Current Multimodal LLMs usually translate images into text descriptions to reason about them, which fails for tasks requiring deep spatial or physical intuition (e.g., predicting collisions or imagining a hidden object).

To fix this, recent approaches augment MLLMs with external vision tools (like depth estimators or object detectors). However, these tools are highly rigid and fixed-function; they cannot perform creative, generative, or complex transformations like imagining a scene from a new angle or removing an occluding box. The authors set out to replace this static toolset with a flexible "visual imagination" mechanism.

Methods

The authors propose REIMAGIN, a training-free, modular agent architecture built on the ReAct framework.

  • Generative Visual Tool: The agent is equipped with a generate_image function. At any reasoning step, the MLLM can issue a natural language command (e.g., "draw a trajectory line" or "remove the white space") along with reference images to an instruction-tuned image generator (such as Nano-Banana-Pro).
  • Test-Time Scaling: Because image generation is stochastic, complex geometric tasks (like floorplan synthesis) can produce varied layouts. REIMAGIN samples $N$ candidate images independently and uses an MLLM selector to pick the one that most faithfully matches the prompt before proceeding with the reasoning chain.
  • Automated Strategy Discovery: Rather than manually handcrafting in-context examples to teach the model how to use the image generator for each task, the authors implement an iterative prompt optimization loop. A proposal model generates candidate prompts, evaluates them on a small development set, and refines them based on success/failure trajectories.
Figure 2: Overview of REIMAGIN. At each turn, the agent determines the next action, e.g., to generate an image necessary for the reasoning process; that image is then passed on and used in the next turn. Here, we showcase the spatial reasoning task from Yang et al. (2025) (Top) and the puzzle task from Zhou et al. (2025) (Bottom).

Datasets

The framework is evaluated across six diverse visual reasoning benchmarks:

  1. Depth Reasoning (BLINK): Predicting relative depth between two marked points.
  2. Puzzle Completion (MIRA): Identifying which piece fits perfectly into a missing region.
  3. Occlusion Counting (CAPTURE): Counting objects where some are hidden behind a black square.
  4. Collision Prediction (Spatial457): Predicting which object a target will collide with based on overhead views.
  5. Multi-View Spatial Reasoning (MMSI): Answering questions about relative object positions across partially overlapping indoor views.
  6. Path Tracing: A new benchmark introduced by the authors where models must trace complex dashed lines connecting numbers to letters.

Key Insights and Ideas

  • Image Generation as "Mental Imagery": Image generation models can act as a general-purpose visual imagination mechanism for MLLMs, unifying capabilities that previously required a fragmented suite of specialist tools.
  • Simplifying Complex Tasks into Visual Lookups: By generating intermediate visual modifications (e.g., converting dashed lines to solid colored lines or drawing an explicit trajectory arrow), the model transforms a hard reasoning problem into a simple visual lookup task that MLLMs can handle reliably.
  • MLLMs Have Strong Visual Priors: Automatically discovered strategies often closely mirror human-designed ones (e.g., learning to generate a depth map for depth tasks or drawing arrows for collision tasks), showing that MLLMs possess intuitive priors about which visual transformations aid specific tasks.

Key Results

REIMAGIN consistently outperformed text-only reasoning and the specialist-tool baseline Visual Sketchpad across the majority of tasks using backbones like Gemini-3.1-Pro, GPT-5, and Qwen-3.5-27B.

Performance comparison of REIMAGIN against baselines.
  • On the newly introduced Path Tracing task, REIMAGIN achieved absolute accuracy gains of up to 25%.
  • On Occlusion Counting, it achieved a 40% relative improvement by successfully "inpainting" away the occluding boxes to reveal hidden objects.
  • Test-Time Scaling proved crucial for complex spatial tasks like MMSI, boosting Gemini-3.1-Pro's accuracy from 51.0% to 59.0% by selecting the most faithful generation.
Figure 3: Effect of test-time scaling on spatial reasoning across models. Sampling multiple candidate generations improves accuracy for all three MLLMs.

Limitations and Future Work

  • Generation Failures: The image generator still fails ~25% of the time, occasionally producing unfaithful visualizations (e.g., misplacing objects in a synthesized floorplan).
  • Perception/Reasoning Failures: Even when the generated image is perfectly faithful, the MLLM backbone sometimes misreads it or fails to reason correctly over the new visualization.
  • Computational Cost: REIMAGIN introduces additional latency and cost ($0.12 more per instance due to image generation tokens) compared to cheap, deterministic specialist tools.

The authors suggest that future work should focus on improving the reliability of generative models, developing better verification mechanisms for intermediate visualizations, and scaling up automated strategy discovery.

Summary updated

BibTeX
@inproceedings{singhi2026reasoning,
  author = {Nishad Singhi and Hector Garcia Rodriguez and Aditya Arora and Marcus Rohrbach and Anna Rohrbach},
  title = {{Reasoning with Image Generation}},
  booktitle = {COLM},
  year = {2026},
  url = {https://openreview.net/forum?id=jWMw2roMnh},
}
Figure