Think Before You Paint: Recursive Latent Reasoning for Diffusion Models
cs.AI, cs.LG
Submitted: 2026-10-07
Updated: 2026-10-07
License: http://creativecommons.org/licenses/by/4.0/
The gist: Diffusion models generate realistic images but often fail on visual reasoning tasks, such as filling in a Sudoku or drawing the path through a maze.
Terminology
Abstract
Diffusion models generate realistic images but often fail on visual reasoning tasks, such as filling in a Sudoku or drawing the path through a maze. When a discrete symbolic representation is available, recursive methods such as the Tiny Recursive Model (TRM) solve even hard instances of these puzzles. We ask how such reasoning can be carried over to pixels, where no symbolic representation is available. We propose Painter-Thinker (PaTh): a small recursive network (the Thinker) reasons over a grid of learned tokens that encode the noisy image and the conditioning, refines a latent state within every denoising step, and steers a frozen diffusion model (the Painter) through ControlNet adapters. The Thinker is trained with the standard reconstruction loss alone, without symbolic targets, a solver, or a verifier. PaTh solves 92.5% of hard MNIST Sudoku puzzles (prior best 75%) and 71.2% of extreme ones (prior best 4.1%), with 10M parameters against 82M for a standard diffusion model. It also improves on mazes, Queens, and CLEVR scenes with specified spatial relations, and its advantage grows with problem size. Diagnostic experiments show that PaTh recovers from injected mistakes that the diffusion model cannot repair, especially when many cells are wrong. Together, these results show that reasoning mechanisms developed for symbolic data can be integrated into pixel-space diffusion without symbolic supervision, opening a path toward generating data under increasingly complex constraints.
Sources
- VFSI: Validity First Spatial Intelligence for Constraint-Guided Traffic Diffusion
- Universal Transformers
- Training Large Language Models to Reason in a Continuous Latent Space
- Scaling Image and Video Generation via Test-Time Evolutionary Search
- Flow Reasoning Models: Turning Flows Into Efficient Recurrent Reasoners
- Classifier-Free Diffusion Guidance
- Less is More: Recursive Reasoning with Tiny Networks
- Inference-Time Scaling in Diffusion Models through Iterative Partial Refinement
- Physics-Constrained Diffusion Model for Synthesis of 3D Turbulent Data
- Let's Think Dot by Dot: Hidden Computation in Transformer Language Models
- Improving Controllable Generation: Faster Training and Better Performance via $x_0$-Supervision
- Thinking with Looped Flows
- Demystifying Video Reasoning
- Probing Visual Planning in Image Editing Models
Related papers
- MAVEN-T: Reinforced Heterogeneous Distillation for Real-Time Multi-Agent Trajectory Prediction
- Model Discovery Agent: LLM-assisted Bayesian experiment design for data-efficient discovery of mechanistic world models
- Agents' Last Exam
- The Clinician's Veto: Navigating Trust, Liability, and Uncertainty in Autonomous AI Prescribing
- MindHelper: Closed-Loop Embodied Mental-State Reasoning for Precision Intervention
- Incumbent Advantage: Brand Bias and Cognitive Manipulation Dynamics in LLM Recommendation Systems