Probabilistic Tiny Recursive Model

NeurIPS 2026
1Mila – Quebec AI Institute 2ILLS & ETS Montreal 3UC San Diego 4Independent
PTRM performance comparison across benchmarks

Abstract

Tiny Recursive Models (TRM) solve complex reasoning tasks with a fraction of the parameters of modern large language models (LLMs) by iteratively refining a latent state and final answer. While powerful, their deterministic recursion can lead to convergence at suboptimal solutions, without escape mechanism. A common workaround relies on task-specific input perturbations at test time combined with answer aggregation via voting. We introduce Probabilistic TRM (PTRM), a task-agnostic framework for test-time compute scaling that addresses this limitation through stochastic exploration. PTRM injects Gaussian noise at each deep recursion step, enabling parallel trajectories to explore diverse solution basins, and selects among them with a criterion such as the model's existing Q head (used for early stopping in the original TRM). Without requiring retraining or task-specific augmentations, PTRM enables substantial accuracy gains across benchmarks, including Sudoku-Extreme (87.28% to 98.75%), N-Queens (48.1% to 75.5% on 16×16 boards), and various puzzles from Pencil Puzzle Bench (62.6% to 91.2%). On the latter, PTRM achieves nearly double the accuracy of an ensemble of frontier LLMs (91.2% vs. 55.1%) at a small fraction of the cost, using only 7M parameters.

When does TRM fail?

We trained a TRM on various Pencil Puzzle Bench (PPBench) puzzles (sudoku, lightup, nurikabe, shakashaka, heyawake, and tapa) and analyzed its latent dynamics across supervision steps on held-out puzzles. By projecting the latent state at each step into its principal plane, we observe three distinct trajectory modes:

  • Quick success. The trajectory quickly converges to a good basin in latent space (region where the decoded answer is correct).
  • Delayed success. The trajectory oscillates in a bad basin for many supervision steps, then escapes to a good basin where it converges.
  • Failure. The trajectory oscillates in a bad basin without converging.

As shown by the delayed-success mode, trajectories that initially look like failures sometimes end up escaping and finding a correct answer. This suggests many failed trajectories could be stuck in escapable local optima.

The Q head often knows

TRM has a learned correctness signal it isn't using. The Q head is trained jointly with the model to predict whether the prediction at each supervision step is correct. It's traditionally only used during training for early stopping and discarded during inference. We observe that the Q head accurately separates correct from incorrect trajectories.

Two observations come together here. First, many failures might just be caused by the model being stuck in escapable local optima (as opposed to being inherently incapable of finding the correct answer). Second, the Q head can identify whether an answer is correct or not. A natural question thus follows: can we sample multiple trajectories for the same puzzle and pick one based on the Q head output?

PTRM: Stochastic Rollouts + Selection

PTRM consists of a simple change to TRM inference: (1) inject Gaussian noise of scale σ into the latent state at every recursion step, and (2) run K rollouts per puzzle in parallel, then select one answer with a selection criterion. By default, we pick the rollout whose final state has the highest Q value (best-Q@K), but other criteria such as majority voting (mode@K) can be used. The recurrent noise causes rollouts to diverge into different basins and the Q head picks the winner. This method doesn't require any training changes or task-specific augmentation, and can be applied to any pretrained TRM.

PTRM Inference
Input: puzzle x, rollouts K,
       supervision steps D, noise scale σ,
       selection criterion S

for k = 1, …, K in parallel:
   initialize z₀⁽ᵏ⁾, y₀⁽ᵏ⁾
   for t = 1, …, D:
      z₍ₜ₋₁₎⁽ᵏ⁾ ← z₍ₜ₋₁₎⁽ᵏ⁾ + ε, ε ~ 𝒩(0, σ²I)
      zₜ⁽ᵏ⁾, yₜ⁽ᵏ⁾ ← rec(x, z₍ₜ₋₁₎⁽ᵏ⁾, y₍ₜ₋₁₎⁽ᵏ⁾)
   ŷ⁽ᵏ⁾ ← argmax fO(yD⁽ᵏ⁾)
   q̂⁽ᵏ⁾ ← fQ(yD⁽ᵏ⁾)
return S({(ŷ⁽ᵏ⁾, q̂⁽ᵏ⁾)}k=1..K)   e.g. best-Q: ŷ⁽ᵏ*⁾, k* = argmaxk q̂⁽ᵏ⁾
Standard TRM (one deterministic rollout) vs. PTRM (K stochastic rollouts with Gaussian noise at every deep recursion step, then selection)

Results

Width scaling axis

Our method unlocks a new test-time scaling axis (the number of rollouts K) that complements TRM's existing depth axis. On a held-out PPBench set, best-Q@K (Q head selection) rises from 80.0% at K=1 to 94.6% at K=100, staying within 1.4 points of pass@K (oracle selection, 96.0%) for every K. Majority voting (mode@K) only reaches 86.2%, and random selection stays at 80.0%.

On most puzzles, width beats depth. On PPBench, running a single deterministic rollout for 100× more supervision steps (D=1600, the same compute as K=100 rollouts at D=16) only raises accuracy from 81.2% to 83.4%.

Width scaling on PPBench validation: pass@K, best-Q@K, mode@K and random@K as K grows

Per-puzzle accuracy on PPBench

Harder puzzle types where the deterministic baseline performs poorly (e.g., sudoku and tapa) see the biggest improvements.

Method Sudoku Lightup Nurikabe Heyawake Tapa Aggregate
Direct prediction (27M) 0.0 0.0 0.0 14.3 0.0 2.0
TRM, deterministic (7M) 46.7 87.5 74.1 85.7 40.0 62.6
TRM, depth D=1600 (7M) 60.0 100 77.8 85.7 40.0 69.4
Strongest LLM (claude-opus-4-6) 0.0 87.5 44.4 0.0 60.0 34.7
LLM ensemble† 46.7 100 44.4 0.0 80.0 55.1
PTRM (ours, 7M) 97.8 100 88.9 85.7 80.0 91.2

Accuracy (%) on subset of the PPBench golden set. †Assumes a perfect verifier across the seven strongest LLMs.

Puzzles with many valid answers: N-Queens

Most benchmarks have a single correct answer per puzzle. To test PTRM on puzzles with several possible answers, we use N-Queens where given an N×N board with some non-attacking queens, the goal is to place the rest. TRM is trained only on puzzles with exactly one answer, and evaluated on held-out puzzles that may have many solutions. Rollouts find different valid solutions that the Q head identifies.

Method 10×10 16×16
Direct prediction (27M) 30.2 14.4
TRM, deterministic (7M) 82.4 48.1
TRM, depth D=320 (7M) 89.0 68.8
PTRM, mode@K (7M) 80.9 43.1
PTRM, best-Q@K (ours, 7M) 94.9 75.5

Valid completions (%) on held-out inputs (most of which have several correct answers). PTRM uses K=20, D=16. TRM at D=320 uses the same compute as 20 rollouts.

States of 48 PTRM rollouts at each supervision step on four 16x16 N-Queens puzzles
State of 48 PTRM rollouts at each supervision step on four 16×16 N-Queens puzzles with 2 to 8 valid solutions (top), and some of the solutions reached (bottom). Each color is a different valid solution.

Sudoku-Extreme, Maze-Hard, and ARC-AGI-2

The same recipe transfers to other benchmarks:

Sudoku-Extreme
87.28 → 98.75
+11.5 pp
Maze-Hard
83.8 → 87.0
+3.2 pp
90.8 → 93.2 when counting any shortest path
ARC-AGI-2 pass@1
7.36 → 8.47
+1.1 pp

Latency, throughput, and early stopping

Rollouts are independent, so they run in parallel, while extra depth runs sequentially. At equal compute, width is both faster and more accurate than depth. With large batches, it remains more accurate at equal throughput. PTRM can also leverage Q-based halting to stop as soon as the Q head is confident in an answer. This matches the accuracy of running all K full rollouts at better latency and throughput.

Accuracy against latency and throughput for depth and width
Accuracy against latency (batch size 1) and throughput (batch size 1024) on PPBench validation, on a single H100. Q-based halting uses τ=0.9.

BibTeX

@inproceedings{sghaier2026probabilistictinyrecursivemodel,
  title={Probabilistic Tiny Recursive Model},
  author={Amin Sghaier and Ali Parviz and Alexia Jolicoeur-Martineau},
  booktitle={Advances in Neural Information Processing Systems},
  year={2026},
  url={https://arxiv.org/abs/2605.19943}
}