# Generative Recursive Reasoning

- **ID:** 521
- **Kind:** paper
- **URL:** https://arxiv.org/abs/2605.19376
- **Authors:** Junyeob Baek, Mingyu Jo, Minsu Kim, Mengye Ren, Yoshua Bengio, Sungjin Ahn
- **Venue:** arXiv / KAIST / Mila / NYU / Université de Montréal
- **Published:** 2026
- **Tags:** gram, recursive-reasoning, trm, hrm, variational-inference, sudoku, arc-agi, n-queens, kaist, mila, bengio
- **Topics:** recursive reasoning, latent-variable models, generative modeling
- **Added:** 2026-10-01
- **Verified:** 2026-11-01
- **Research status:** done
- **Page:** https://papers.projxon.ai/entries/521

## Summary

GRAM adds learned stochastic residual guidance ε~N(μθ,σθ²I) on the high-level latent of an HRM/TRM-style hierarchy and trains via a truncated ELBO. Width scaling samples N trajectories and ranks them with an LPRM or majority vote. Sudoku-Extreme 97.0% vs TRM 87.4% at 16 steps; N=20 at 16 iters beats TRM at 320 (97.0 vs 90.5). ARC-1/2 52.0/11.1 vs TRM 44.6/7.8. N-Queens 8×8 accuracy 99.7% / coverage 90.3% vs TRM 66.8/36.1. Unconditional Sudoku 99.05% validity (10.9M, 16 steps) vs D3PM-Big 91.33% (55.1M, 1000 steps); binarized MNIST FID 73.34 at 256 steps vs TRM collapse 303. Project https://ahn-ml.github.io/gram-website/.

## Attributes

- **Purpose:** Turn deterministic recursive reasoners into probabilistic multi-trajectory latent generators
- **Scale:** ~10M params; Sudoku 50K epochs 8×4090 ~2h; ARC 200K ~5 days; N-Queens/Graph Coloring/MNIST on 8×4090; N=5–20 samples; N_sup=16
- **Time period:** 2026-05-19 (arXiv 2605.19376 v1); last revised 2026-05-20 (v2). HF paper publishedAt 2026-05-20.

## From the source (fetched 2026-10-03)

- **Published:** May 19, 2026 (arXiv)
- **Last revised:** May 20, 2026 (arXiv)
- **arXiv categories:** cs.AI (arXiv)
- **Citations:** 8 (3 influential) (Semantic Scholar)
- **References:** 58 (Semantic Scholar)

## Abstract

How should future neural reasoning systems implement extended computation? Recursive Reasoning Models (RRMs) offer a promising alternative to autoregressive sequence extension by performing iterative latent-state refinement with shared transition functions. Yet existing RRMs are largely deterministic, following a single latent trajectory and converging to a single prediction. We introduce Generative Recursive reAsoning Models (GRAM), a framework that turns recursive latent reasoning into probabilistic multi-trajectory computation. GRAM models reasoning as a stochastic latent trajectory, enabling multiple hypotheses, alternative solution strategies, and inference-time scaling through both recursive depth and parallel trajectory sampling. This yields a latent-variable generative model supporting conditional reasoning via $p_θ(y \mid x)$ and, with fixed or absent inputs, unconditional generation via $p_θ(x)$. Trained with amortized variational inference, GRAM improves over deterministic recurrent and recursive baselines on structured reasoning and multi-solution constraint satisfaction tasks, while demonstrating an unconditional generation capability. https://ahn-ml.github.io/gram-website

## Research notes

- Primary: arxiv abs (cs.AI). CC BY 4.0 on HTML. KAIST/Mila/NYU/UdeM. Baek/Jo/Kim equal contrib. Correspondence Junyeob Baek wnsdlqjtm@kaist.ac.kr, Mingyu Jo mingyu.jo@kaist.ac.kr, Sungjin Ahn sungjin.ahn@kaist.ac.kr. Project page says code coming soon. HF paper page 31 upvotes; no linked models/datasets. Discord posted abs (also AlphaXiv). Uses public Sudoku-Extreme/ARC-AGI/MNIST plus author-generated N-Queens/Graph Coloring; no standalone public corpus, so no datasets_local row. License field left blank per catalog convention.
- Queued #45 re-research 2026-10-15 (v3, 7 Oct 2026; author-announced NeurIPS 2026 acceptance, not yet verified in proceedings) — v3 numbers supersede the v1 numbers in this record: Generative Recursive reAsoning Models (GRAM) turn deterministic recursive reasoning (HRM, TRM, Looped Transformers) into probabilistic multi-trajectory computation. Each recursion step adds learnable stochastic guidance ε_t ~ N(μθ(u_t), σθ²(u_t)I) around a deterministic update; stochasticity acts only on the high-level latent component while the low level is refined deterministically; the same process defines conditional reasoning p(y|x) and unconditional generation p(x), trained by amortized variational inference. ~10M-param models: Sudoku-Extreme 86.6% single-sample vs TRM 83.6%, 96.1% with 20 parallel samples (at matched FLOPs, TRM's 320 sequential iterations reach only 92.1% and take 2,755 ms vs 184 ms); ARC-AGI-1 50.3% vs 44.6%, ARC-AGI-2 9.5% vs 7.8%. On multi-solution tasks: N-Queens 8×8 99.5% accuracy, 89.7% solution coverage @20 samples (deterministic baselines ≤26.7%); highest coverage on all four N-Queens/Graph-Coloring settings. Unconditional generation: binarized MNIST IS 2.04/FID 73.34 at 256 steps (beats D3PM's 1.86/74.03 at 1000); 99.05% valid Sudoku from empty boards vs ≤79.18% for a 5× larger D3PM. Authors' stated limitation: sequential deep supervision limits training efficiency vs Transformers, a barrier to foundation-model scale. Official MIT-licensed codebase with training scripts, dataset builders, and pass@k evaluation. NeurIPS 2026 acceptance is author-announced.
- Code now released MIT at https://github.com/ahn-ml/gram-release; project page https://ahn-ml.github.io/gram-website/ (live notes above still say 'code coming soon'). Discovery: Hudson shared Mingyu Jo (@MingyuJo_, KAIST MS student) X post 2026-10-15 quote-posting Sungjin Ahn's 2026-05-20 thread announcing NeurIPS acceptance. Caveats: benchmarks are small controlled puzzles/MNIST only; no LLM-scale demonstration; thread numbers (Sudoku 97.0%, ARC-1 52.0%, ARC-2 11.1%) are v1-era and differ from v3.

## Cites, within this collection

- [Mixture-of-Recursions: Learning Dynamic Recursive Depths for Adaptive Token-Level Computation](https://papers.projxon.ai/entries/735) (paper 2025, #735)
- [Graph of Thoughts: Solving Elaborate Problems with Large Language Models](https://papers.projxon.ai/entries/911) (paper 2023, #911)
- [Training Large Language Models to Reason in a Continuous Latent Space (Coconut)](https://papers.projxon.ai/entries/925) (paper 2024, #925)

## Cited by, within this collection

- [Bridging the Gap Between Latent and Explicit Reasoning with Looped Transformers](https://papers.projxon.ai/entries/476) (paper 2026, #476)

## Similar entries

- [Probabilistic Tiny Recursive Model](https://papers.projxon.ai/entries/520) (paper, #520)
- [Latent Reasoning in TRMs is Secretly a Policy Improvement Operator](https://papers.projxon.ai/entries/488) (paper, #488)
- [HRM-Text: Efficient Pretraining Beyond Scaling](https://papers.projxon.ai/entries/619) (paper, #619)
- [Searching Latent Program Spaces](https://papers.projxon.ai/entries/926) (paper, #926)
- [Recursive Multi-Agent Systems (RecursiveMAS)](https://papers.projxon.ai/entries/780) (paper, #780)
- [The Curse of Recursion: Training on Generated Data Makes Models Forget](https://papers.projxon.ai/entries/588) (paper, #588)
