Generative Recursive Reasoning

Junyeob Baek, Mingyu Jo, Minsu Kim, Mengye Ren, Yoshua Bengio, Sungjin Ahn

TL;DR

This paper introduces Generative Recursive reAsoning Models (GRAM), a framework that injects stochasticity into recursive latent reasoning to enable probabilistic, multi-trajectory computation. By treating reasoning as a stochastic latent path, GRAM allows neural networks to explore multiple hypotheses, scale test-time compute via parallel sampling, and perform both conditional reasoning and unconditional generation.

What Problem Does This Paper Address?

While large language models typically scale their reasoning by generating longer autoregressive sequences (like Chain-of-Thought tokens), Recursive Reasoning Models (RRMs) offer a more compact alternative. RRMs decouple reasoning depth from parameter scale by repeatedly applying a shared transition function to refine a persistent hidden state.

However, existing RRMs are fundamentally deterministic. Given the same input, they follow a single trajectory and converge to a single solution. This causes two major issues: they cannot handle tasks with multiple valid solutions, and they easily get trapped in suboptimal local minima during computation. This paper addresses this gap by asking: Can recursive latent computation support probabilistic, multi-hypothesis reasoning while preserving the efficiency of compact recurrent models?

Figure 1: Comparison of Latent Reasoning Trajectories. Left: N-Queens Example with two valid solutions. Right: Given three independent runs for latent reasoning (τ1, τ2, τ3): (a) Prior RRMs (e.g. HRM, TRM) are deterministic—all runs collapse to an identical trajectory, converging to a single solution and failing to explore alternatives, while (b) GRAM explores diverse trajectories, producing diverse trajectories that reach multiple valid solutions y1 and y2, while naturally enabling parallel inference-time scaling.

Methods

GRAM reformulates recursive reasoning as a latent-variable generative process. Instead of updating the latent state deterministically, GRAM introduces a learned stochastic guidance ($\epsilon_t$) modeled as a state-dependent Gaussian distribution added to a deterministic proposal ($u_t$).

The architecture is organized hierarchically into two nested loops:

  1. Inner Loop (Low-Level Refinement): A deterministic component ($f_L$) rapidly refines fine-grained intermediate representations $K$ times.
  2. Outer Loop (High-Level Stochastic Transition): A high-level component ($fH$) updates the abstract reasoning state once per transition, which is where the stochastic guidance is injected.
Figure 2: GRAM Architecture. A single stochastic latent transition in the hierarchical instantiation z = (h, l). After K low-level refinements via fL, the high- level update fH produces a deterministic proposal ut, to which stochastic guidance ϵt is added: ht = ut + ϵt.

GRAM is trained using amortized variational inference to maximize an Evidence Lower Bound (ELBO). To keep memory consumption constant over long computation chains, the authors use a truncated surrogate objective, propagating gradients only through the final transition of each supervision step.

Inference-Time Scaling

Because the transitions are stochastic, GRAM introduces a new axis for test-time scaling: width. Instead of just running longer sequential chains (depth), inference can be scaled by sampling multiple independent latent trajectories in parallel. To select the best final answer, GRAM uses either majority voting or a trained Latent Process Reward Model (LPRM) to predict the quality of a trajectory from its latent state.

Datasets

The authors evaluated GRAM across several distinct domains:

  • Structured Reasoning: Sudoku-Extreme (9x9 grids with minimal clues requiring heavy constraint propagation) and the ARC-AGI Challenge (abstract visual reasoning tasks).
  • Multi-Solution Constraint Satisfaction: N-Queens ($8 \times 8$ and $10 \times 10$) and Graph Coloring (8 and 10 vertices), where multiple valid configurations exist for a single input.
  • Unconditional Generation: Binarized MNIST (generating handwritten digits from an empty input) and generating valid, complete Sudoku boards from scratch.

Key Insights and Ideas

  • Width vs. Depth Scaling: Parallel trajectory sampling (width) can bypass the sequential latency bottlenecks of deep recursion. Remarkably, sampling 20 parallel trajectories at just 16 iterations outperformed a deterministic baseline running for 320 sequential iterations.
  • Reasoning as Generation: By removing or emptying the input conditioning, a recursive reasoning model naturally functions as an unconditional generative model.
  • Emergent Constraint Satisfaction: When generating Sudoku boards unconditionally, GRAM learns to satisfy complex global constraints (rows, columns, and boxes) purely through latent dynamics, without any explicit symbolic constraint checkers.

Key Results

GRAM consistently outperformed deterministic recursive baselines (Looped Transformer, HRM, TRM) across all benchmarks:

  • Puzzles: On Sudoku-Extreme, GRAM achieved 97.0% accuracy, significantly higher than TRM (87.4%) and HRM (55.0%). On ARC-AGI-1, it achieved 52.0%, outperforming its recursive counterparts.
Figure 3: Performance on puzzle benchmarks. On both Sudoku-Extreme and ARC-AGI, GRAM consistently outperforms all deterministic recursive baselines (Looped TF, HRM, TRM), demonstrating that stochastic latent transitions yield substantial gains within the recursive-reasoning paradigm. Looped TF results on ARC-AGI are omitted due to prohibitive training cost (see Section C.1.1) Note that large reasoning model scores are included only as external reference points for benchmark difficulty.
  • Multi-Solution Tasks: On $8 \times 8$ N-Queens, GRAM achieved 99.7% accuracy and 90.3% solution coverage, whereas deterministic models suffered from severe mode collapse, capturing at most 36.1% of valid solutions.
  • Unconditional Generation: For unconditional Sudoku generation, GRAM produced valid boards with 99.05% validity using only 10.9M parameters and 16 steps, drastically outperforming discrete diffusion models (D3PM) which required 55.1M parameters and 1000 steps to reach 91.33% validity.

Limitations and Future Work

The primary limitation acknowledged by the authors is training efficiency. GRAM relies on deep supervision across sequential steps, which limits parallelization during training compared to standard feedforward Transformers. This presents a significant barrier to scaling GRAM up to the size of modern large foundation models. Future work will likely target more parallelizable training objectives for stochastic recursive architectures.

Summary updated

BibTeX
@inproceedings{baek2026generative,
  author = {Junyeob Baek and Mingyu Jo and Minsu Kim and Mengye Ren and Yoshua Bengio and Sungjin Ahn},
  title = {{Generative Recursive Reasoning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=dDjsb4dq8O},
}
Figure