TL;DR
REIMAGIN is a training-free framework that empowers Multimodal Large Language Models (MLLMs) to solve complex visual tasks by "imagining" intermediate reasoning steps. By using an instruction-tuned image generator as a flexible tool, the model can perform open-ended visual transformations—like drawing trajectories or removing occlusions—consistently outperforming both text-only reasoning and rigid, specialist-tool baselines.
What Problem Does This Paper Address?
While Chain-of-Thought (CoT) reasoning has drastically improved LLM performance in the text domain, it struggles with tasks requiring direct manipulation of visual information. Current approaches to "visual reasoning" usually involve augmenting MLLMs with external expert tools like depth estimators or object detectors.
However, these tools are fundamentally limited: they are rigid, fixed-function modules that cannot adapt to novel tasks. For example, a standard object detector cannot "imagine" what is behind a black box or synthesize a top-down floorplan from two different photos of a room. Furthermore, teaching models to use these tools typically requires significant manual effort to craft task-specific examples. The authors propose that visual reasoning should be as flexible as textual reasoning, moving beyond static tools toward a generative "visual imagination."
Methods
The authors introduce REIMAGIN, a multimodal agent that interleaves textual reasoning with calls to an instruction-following image generation model.
Key components of the framework include:
- The
generate_imageTool: Unlike specialist tools, this is a generalist interface. The MLLM can issue natural language commands (e.g., "draw a red arrow showing the path of the car") to the generator, which returns a new image directly into the agent's context. - Agent Architecture: Built on the ReAct framework, the agent produces a textual rationale, emits a Python program to call tools (generative or programmatic like
cropornumpy), and then reasons over the resulting visual output. - Automated Strategy Discovery: To avoid the "human-in-the-loop" bottleneck of prompt engineering, the authors use an iterative optimization loop. A "proposal model" generates candidate strategies, evaluates them on a development set, and refines them based on success and failure cases.
- Test-Time Scaling: For complex spatial tasks where generation can be stochastic, the system samples multiple candidate images and uses an MLLM selector to pick the one that most faithfully follows the prompt.
Datasets
The authors evaluate REIMAGIN across six diverse visual reasoning benchmarks:
- BLINK: Relative depth perception.
- MIRA: Visual puzzle completion.
- CAPTURE: Counting objects under partial occlusion.
- Spatial457: Collision prediction in overhead scenes.
- MMSI-Bench: Multi-view spatial reasoning (e.g., relating objects across different room views).
- Path Tracing: A new task introduced in this paper where the model must trace dashed lines connecting numbers to letters in a cluttered field.
Key Insights and Ideas
- Generative Flexibility is Transformative: A single generative model can replace a whole suite of specialist tools. It can act as a depth estimator, a segmenter, or an "inpainter" that removes occlusions, all through natural language.
- Visual CoT is Interpretable: Because the reasoning happens in pixel space, every intermediate step is an explicit image that humans can inspect, unlike "latent" reasoning approaches.
- MLLMs have Strong Visual Priors: The automated discovery process revealed that MLLMs often "invent" strategies similar to those a human would design, such as drawing arrows to predict collisions or color-coding paths to make them easier to trace.
- Faithfulness Matters: The success of the agent is highly correlated with the quality of the generated image. The model answers correctly 87% of the time when the generation is "faithful" to the prompt, but only 43% when it is not.
Key Results
REIMAGIN consistently outperforms baselines across different MLLM backbones (Gemini-3.1-Pro, GPT-5, and Qwen-3.5-27B).
- Performance Gains: The framework achieved gains of up to 25% on path tracing and a 40% relative improvement on occlusion counting compared to specialist-tool baselines like Visual Sketchpad.
- Strategy Discovery: Automatically discovered strategies recovered most of the gains of handcrafted ones without requiring human-authored examples.
- Scaling: Test-time scaling (sampling multiple images) significantly boosted accuracy on the most difficult spatial tasks, such as MMSI, by ensuring the model reasoned over the most accurate "imagined" map.
Limitations and Future Work
Despite its success, REIMAGIN faces several challenges:
- Reliability: About 25% of generated images are still "unfaithful" (e.g., misplacing objects in a floorplan), which remains the primary bottleneck for accuracy.
- Computational Cost: Image generation is significantly more expensive and slower than text generation. REIMAGIN adds roughly $0.12 and 24 seconds of latency per instance compared to standard tool-use baselines.
- Future Directions: The authors suggest that future work should focus on improving the spatial precision of generative models, developing better automated verification methods for intermediate images, and exploring more scalable ways to discover complex multi-step reasoning strategies.
Summary updated