GRAM: Breaking the Deterministic Ceiling of Recursive Reasoning via Stochastic Latent Trajectories

Generative Recursive Reasoning

2026-01-01
Junyeob Baek, Mingyu Jo, Minsu Kim, Mengye Ren, Yoshua Bengio, Sungjin Ahn
Summary
Problem
Method
Results
Takeaways
Abstract

This paper introduces Generative Recursive reAsoning Models (GRAM), a framework that transforms deterministic recursive architectures into probabilistic generative models via stochastic latent trajectories. GRAM achieves SOTA results among recursive models on Sudoku-Extreme (97.0% accuracy) and the ARC-AGI challenge by enabling multi-path exploration and parallel inference-time scaling.

TL;DR

Recursive Reasoning Models (RRMs) have long promised the efficiency of "tiny networks" that think longer rather than getting bigger. However, they have been limited by a core flaw: they are deterministic "one-track" thinkers. GRAM (Generative Recursive reAsoning Models) solves this by turning the reasoning process into a probabilistic generative task. By adding "Stochastic Guidance" to latent updates, GRAM can explore multiple solution paths simultaneously, enabling it to solve complex puzzles like Sudoku-Extreme and ARC-AGI with unprecedented reliability.

Problem: The "One-Track Mind" of Current RRMs

Traditional RRMs (like HRM or TRM) use shared transition functions to refine a latent state. While efficient, they are trapped in a single latent trajectory. If the first few "thoughts" are wrong, the model often cannot escape the local minima.

This is particularly problematic for:

  1. Ambiguous Inputs: Where multiple valid reasoning paths exist.
  2. Constraint Satisfaction: Like N-Queens or Graph Coloring, where a solver needs to backtrack and explore different branches.
  3. Mode Collapse: Deterministic models often fail to capture the diversity of valid outcomes, reaching only one solution even when hundreds exist.

Methodology: Reason as Generation

The core insight of GRAM is to treat the reasoning trajectory as a stochastic process. Instead of a deterministic update , GRAM introduces Stochastic Guidance ():

This formulation allows GRAM to function as a latent-variable generative model. Using amortized variational inference, the model learns a prior that explores the reasoning space and a posterior (during training) that is guided by the ground truth.

Hierarchical Stochasticity

GRAM splits its state into a high-level abstract "thought" () and a low-level "worker" (). Stochasticity is injected only at the high level, allowing the model to steer its "strategy" while maintaining stable, deterministic fine-grained computation.

GRAM Architecture Figure 1: The GRAM architecture showing the interaction between low-level refinement and high-level stochastic updates.

Two Axes of Scaling: Depth and Width

A major contribution of this work is Width-based Inference-Time Scaling. Most models scale by thinking "deeper" (more iterations). GRAM can scale by thinking "wider" (sampling trajectories in parallel).

  • Depth: More supervision steps to refine the solution.
  • Width: Parallel sampling of paths, with a Latent Process Reward Model (LPRM) selecting the best candidate.

The results are striking: a GRAM model with 20 parallel samples and only 16 iterations beats a deterministic TRM model with 320 iterations.

Experimental Battlefront

1. Cracking Sudoku-Extreme and ARC-AGI

On Sudoku-Extreme, which requires deep constraint propagation, GRAM achieved 97.0% accuracy, far exceeding the 87.4% of the previous SOTA (TRM).

Performance Comparison Figure 2: Performance on ARC-AGI and Sudoku. Notice how GRAM consistently sits above the deterministic recursive baselines.

2. Multi-Solution Coverage

In N-Queens and Graph Coloring, GRAM's ability to "see" multiple solutions is its superpower. While deterministic models collapse to ~36% coverage, GRAM achieves over 90% coverage, finding almost all valid ways to solve the problem.

3. Unconditional Generation: Reasoning as a byproduct

The researchers tested GRAM as a pure generator (starting from a blank board). It successfully generated valid Sudoku boards with 99.05% validity, proving that the model has internalized the "rules of the game" within its stochastic transitions.

Latent Trajectories Figure 3: Visualization of 50 sampled trajectories. While some get stuck (yellow), the stochasticity allows many to find the global optimum (dark blue).

Conclusion & Insight

GRAM represents a shift from "Reasoning as a Sequence" to "Reasoning as a Distribution." By allowing neural networks to be uncertain and explore, we unlock a new scaling law at inference time that doesn't rely purely on sequential depth.

Limitations: The sequential nature of deep supervision remains a training bottleneck. However, the success of GRAM suggests that future foundation models might benefit from moving away from deterministic "chains of thought" toward probabilistic "fields of thought."

Key Takeaway: If you want a model to solve hard problems, give it the freedom to wander in its latent space. Stochasticity isn't just noise; in the context of recursion, it is the engine of exploration.

Find Similar Papers

Try Our Examples

  • Search for recent papers that implement "Stochastic Guidance" or similar noise-injection mechanisms within the internal hidden states of Transformers to improve reasoning diversity.
  • Which original research pioneered the "Looped Transformer" or "Recursive Transformer" architecture, and how does the variational inference framework in GRAM specifically modify those weight-sharing dynamics?
  • Explore if there are studies applying Generative Recursive Reasoning Models to multi-modal tasks, such as recursive latent refinement for complex visual scene understanding or video prediction.
Contents
GRAM: Breaking the Deterministic Ceiling of Recursive Reasoning via Stochastic Latent Trajectories
1. TL;DR
2. Problem: The "One-Track Mind" of Current RRMs
3. Methodology: Reason as Generation
3.1. Hierarchical Stochasticity
4. Two Axes of Scaling: Depth and Width
5. Experimental Battlefront
5.1. 1. Cracking Sudoku-Extreme and ARC-AGI
5.2. 2. Multi-Solution Coverage
5.3. 3. Unconditional Generation: Reasoning as a byproduct
6. Conclusion & Insight