Energy-Based Reasoners: Your Recurrent Reasoner Should Be an Energy-Based Model
William Xingxu Chen, Alexi Gladstone, Zeyu Michael Li, Heng Ji, Yilun Du
cs.LG
2026-11-06
Looped latent reasoning as gradient descent on a learned energy that also handles stopping and selection; 1.8M params hit 99.9% on Sudoku-Extreme with 345x less inference compute.
Looped reasoning models like HRM and TRM iterate the same block of layers on a latent state, buying effective depth without extra parameters, and small models of a few million parameters have beaten much larger LLMs on algorithmic puzzles. But the update itself is blind. Latent space has no explicit measure of progress, so deciding when to stop and which candidate to trust falls to bolted-on mechanisms: HRM and TRM train separate halting heads, FPRM watches for state convergence, stochastic variants add another selection rule on top. Evaluation and update are two different systems. Chain-of-thought avoids this in token space because intermediate steps are explicit text you can inspect; move reasoning into latent space and that channel is gone. EBR rebuilds it with a single learned function.
An Energy-Based Reasoner learns a scalar energy Eθ(z; x) over latent reasoning states, with lower energy for states closer to a correct solution. Inference is gradient descent on this surface: each step moves the latent state against the energy gradient, and a prediction is decoded from the current state. The actual update is projected Langevin dynamics, Gaussian noise plus projection back onto a sphere, which keeps trajectories bounded and preserves the ability to find more than one solution.
One learned energy does three jobs. Its gradient drives each update. When the tangent gradient norm drops below a threshold τ, the trajectory stops, with no fixed iteration budget and no trained halting head. Among candidates from independent runs, the lowest-energy endpoint wins, so no separate verifier is needed.
Training follows the segment-wise deep supervision of HRM and TRM: split the recurrence into segments, detach between them, backprop only through the last H steps of each segment. Since updates use the energy gradient, backprop passes through second-order derivatives. Two designs matter:
For multi-solution tasks there is SXM (state-based Explorative Modeling): roll K trajectories per input without gradients, let forward SXM pick the trajectory best matching a target and reverse SXM pick the valid solution best matching that trajectory, and supervise only the winner. Unselected trajectories keep evolving and stay eligible in later segments. This shapes the landscape along many descent paths, so different modes correspond to different valid solutions.
Four algorithmic benchmarks, three training seeds:
| Method | Params | Sudoku-Extreme (single) | Maze-Hard (single) |
| TRM | 5–7M | 87.4% | 85.3% (PTRM) |
| EqR | 5–7M | 93.0% | — |
| FPRM | 7M | 94.2% | 87.0% |
| GRAM | 10M | 86.6±2.2% | 86.7±1.1% |
| Looped Flows | 5–7M | 97.9±0.4% | 86.7±1.1% |
| EBR | 1.8M | 99.4±0.1% | 87.4±1.1% |
With 5 samples EBR reaches 99.9±0.1% on Sudoku-Extreme; EqR needs 128 samples for 99.8%. In inference FLOPs per puzzle at comparable accuracy, EBR uses up to 345× less than EqR, and convergence-based stopping saves another 10.8× over a fixed iteration budget. At every training-compute budget evaluated, EBR's accuracy sits above the baselines. On Maze-Hard, 5 samples give 88.3±0.3%.
On multi-solution benchmarks, coverage@20 on 10×10 N-Queens rises from 57.5% (GRAM) to 92.0%, with single-sample accuracy of 99.51% (100% on 8×8). Both Graph Coloring sizes get zero conflicts from a single sample, which GRAM does not reach even with 20 samples.
The ablation isolates the mechanism: swapping energy-gradient updates for a directly learned transition, with everything else fixed, drops single-sample Sudoku accuracy from 98.96% to 60.05%. The gain comes from the energy-descent formulation itself, not from architecture tuning.
For anyone following the looped-reasoning line, this closes the "when to stop, what to trust" gap with one learned scalar and no extra parameters. The energy doubles as a verifier, samples are cheap, and the test-time-scaling economics work out. A 1.8M-parameter model ahead of 5–10M predecessors across the board is evidence the energy inductive bias is doing real work.
The scope is narrow: these are structured puzzles, and there is no bridge yet to language reasoning. For mainstream LLM inference the practical impact today is nil.
The authors' own list: training through second-order derivatives makes each update more expensive than a learned transition, to the point of needing custom GPU kernels; SXM multiplies rollout cost by K; extra hyperparameters (step size, noise scale, step count) add configuration burden even though they transferred across benchmarks here; SXM depends on training-set size and brought no gain on Maze-Hard, which has only 1,000 unaugmented examples, so it was trained with K=1; and all experiments are structured algorithmic tasks, with scaling to larger models and language reasoning left open.
Two more caveats from reading the tables. Baseline numbers are taken from the original papers under differing evaluation protocols, which the authors flag themselves. The 345× comparison is against EqR's 128-sample setting; against Looped Flows there is only a compute-accuracy curve, no single-point number. Energy-based selection approaches oracle on Sudoku, but Sudoku has a unique solution and a well-shaped landscape; whether the selection signal holds on messier solution spaces is untested.