Probabilistic Tiny Recursive Model

Amin Sghaier, Ali Parviz, Alexia Jolicoeur-Martineau

TL;DR

Tiny Recursive Models (TRMs) are pint-sized neural networks (~7M parameters) that solve fiendishly hard logic puzzles by repeatedly refining a hidden "thought" vector, rather than spitting out word-by-word monologues like giant LLMs. However, because their thinking is strictly deterministic, they sometimes get trapped in mental ruts—oscillating endlessly around wrong answers. By simply injecting a tiny bit of random noise into their thoughts at test time and reusing a built-in confidence sensor that was previously thrown away after training, Probabilistic TRM (PTRM) breaks free of these ruts and nearly doubles the accuracy of an ensemble of frontier LLMs at a fraction of a penny per puzzle.

What Problem Does This Paper Address?

Modern reasoning LLMs scale test-time compute by generating multiple random Chains of Thought and voting on the best answer. Meanwhile, an alternative architecture called the Tiny Recursive Model (TRM) skips tokens altogether: it takes an input puzzle $x$ and recursively updates a latent reasoning state $z$ and predicted answer $y$ inside a tiny two-layer loop.

TRMs punch way above their weight class, but they have an Achilles' heel: determinism. Given the same puzzle, a TRM follows the exact same mathematical trajectory every time. When the authors mapped these trajectories, they discovered three distinct behaviors: quick convergence to the right answer, delayed escape into the right answer, and complete failure—where the model gets trapped oscillating inside a "bad basin" in latent space with no mechanism to escape. Previously, getting around this required clunky, task-specific tricks like manually rotating or shuffling the input grid and taking a majority vote.

Three modes of TRM latent trajectories—quick success, delayed success, and getting stuck in a failure basin—alongside the Q head's confidence tracking accuracy.

Methods

The authors introduce Probabilistic TRM (PTRM), a zero-retraining, task-agnostic upgrade applied purely at inference time. It pairs two clever ideas:

  1. Stochastic Exploration (Width Scaling): Instead of running one deterministic pass, PTRM runs $K$ parallel rollouts of the exact same pretrained model. At every deep recursion step, it injects fresh Gaussian noise ($\epsilon \sim \mathcal{N}(0, \sigma^2 I)$) directly into the latent state $z$. This gentle shaking jostles trajectories out of bad basins so at least a few rollouts stumble into the correct solution region.
  2. Repurposing the Q Head as a Verifier: During standard TRM training, a linear classifier called the Q head is trained to predict whether the current answer is 100% correct, allowing training to halt early on easy samples to save compute. At test time, standard TRM ignores the Q head completely. PTRM resurrects it: after running $K$ noisy rollouts, PTRM asks the Q head to score every final state and simply picks the candidate with the highest Q value (best-Q@K).

Datasets

The authors evaluate PTRM across five constraint-satisfaction and reasoning benchmarks:

  • Pencil Puzzle Bench (PPBench): Filtered to six classic grid-logic puzzle types (Sudoku, Lightup, Nurikabe, Shakashaka, Heyawake, and Tapa).
  • Sudoku-Extreme, Maze-Hard, and ARC-AGI-2: Established reasoning benchmarks used to test pretrained TRM checkpoints directly against prior baselines.
  • N-Queens (10×10 and 16×16): A newly configured multi-answer testbed where models are trained only on boards with a unique valid completion, then tested on held-out boards that have many valid solutions.

Key Insights and Ideas

  • A built-in compass was hiding in plain sight: Across reasoning steps, the discarded Q head tracks cell-level accuracy remarkably well, cleanly separating solved puzzles (logit $\approx +6$) from failed ones (logit $\approx -6$).
  • Needle-in-a-haystack selection beats majority voting: On hard puzzles, 92 out of 100 noisy rollouts might stay stuck in a bad basin while only 8 escape. Majority voting (mode@K) fails here because the wrong answer is still the most popular, whereas best-Q@K plucks out the rare winner—landing within ~1.4 percentage points of an oracle verifier on PPBench.
  • Width beats depth: Running a deterministic TRM 100× deeper ($D=1600$) barely nudges accuracy because a trapped trajectory stays trapped. Spending that exact same compute budget on $K=100$ parallel noisy rollouts yields massive gains—and runs in parallel on a GPU.
  • Smart early stopping: Because the Q head knows when an answer is right, PTRM can stop sampling rollouts as soon as confidence crosses a threshold, matching full 100-rollout accuracy with ~20× less compute.

Key Results

PTRM performance across PPBench, Sudoku-Extreme, and N-Queens compared against deterministic TRM and frontier LLMs.

Figure 1: PTRM performance comparison. On various PPBench puzzles, PTRM (K=100, D=48) boosts TRM (D=16) performance by 28.6 points without any retraining. It outperforms the strongest single frontier LLMs by 56.5 points and an ensemble of the seven strongest LLMs (assuming a perfect verifier) by 36 points. On Sudoku-Extreme, PTRM reaches a state of the art 98.75%, and on N-Queens, where puzzles have many valid answers, it raises accuracy from 82.4% to 94.9% (10×10) and from 48.1% to 75.5% (16×16).
  • PPBench: PTRM (7M parameters) jumps from 62.6% to 91.2% accuracy over standard TRM. It crushes the best single frontier LLM (claude-opus-4-6@thinking at 34.7%) and nearly doubles an oracle-verified ensemble of seven frontier LLMs (55.1%), costing ~$0.001 per puzzle versus $2.66 for the ensemble.
  • Sudoku-Extreme: Pushes accuracy from 87.28% to a state-of-the-art 98.75%.
  • N-Queens: Boosts accuracy from 48.1% to 75.5% on 16×16 boards while discovering diverse valid board completions (covering 53%–77% of all valid solutions per puzzle).
  • Maze-Hard & ARC-AGI-2: Lifts Maze-Hard accuracy from 83.80% to 87.00% (with oracle pass@K hitting 95.73%) and ARC-AGI-2 pass@1 from 7.36% to 8.47%.

Limitations and Future Work

PTRM is currently tested only on small-grid reasoning puzzles rather than general-purpose language or real-world tasks—and unlike general LLMs, TRMs must be trained specifically on target puzzle distributions. Furthermore, PTRM is only as good as its verifier: on tasks like Maze-Hard and ARC-AGI-2, noisy rollouts find plenty of right answers, but the existing Q head struggles to recognize them, leaving big accuracy gains on the table. Future work aims to understand why certain tasks are harder to verify and to design stronger learned verifiers and halting criteria.

Summary updated

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.
BibTeX
@inproceedings{sghaier2026probabilistic,
  author = {Amin Sghaier and Ali Parviz and Alexia Jolicoeur-Martineau},
  title = {{Probabilistic Tiny Recursive Model}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=ds7o8yEDK5},
}
Figure