Rust in Everything
← Papers

Energy-Based Reasoners: Your Recurrent Reasoner Should Be an Energy-Based Model

William Xingxu Chen, Alexi Gladstone, Zeyu Michael Li, Heng Ji, Yilun Du

2026-11-17▲ 6arXiv 2611.08977v1Hugging FaceCode

AI-generated from the full paper (deepseek-flash). It may contain mistakes; check the original.

TL;DR

Energy-Based Reasoners learn a scalar energy over latent reasoning states and perform looped reasoning as gradient descent on that energy, using the same energy to refine, halt, and select among candidate solutions, with state-based Explorative Modeling (SXM) to cover multiple solution modes.

Problem

Looped/recurrent reasoning models iterate a block to scale effective depth in latent space, but they are not guided by an explicit measure of progress, so it is hard to know when to stop looping and how to improve the current state. Existing looped reasoners rely on separate mechanisms (learned Q heads, state convergence, extra sampling criteria) to evaluate and halt, and the update itself is not guided by any assessment of the current state. Chain-of-thought avoids this by exposing intermediate tokens that can be scored, but latent states expose no comparable trace. The authors ask whether a single learned objective can guide the update, decide when to stop, and verify which candidates are best.

Method

An EBR learns an energy function E_theta(z;x) over latent reasoning states z that assigns lower energy to states producing better predictions; the recurrent Transformer block of TRM/EqR is reused as backbone with a lightweight per-token head reducing the block output to a scalar, and the block output is replaced by a step along -grad_z E_theta. At inference the latent state is initialized from Gaussian noise and refined by energy descent; early stopping triggers when the tangent gradient norm falls below a threshold tau or after S segments of n steps, and the lowest-energy endpoint is selected among independent trajectories without a separate verifier. Training is through energy descent, which requires second-order derivatives; randomized descent settings are used in appendix A.3. State-based Explorative Modeling (SXM) maintains K parallel descent trajectories per input across segments, advancing all K but supervising only the trajectory best matched to a valid solution, with unselected trajectories remaining eligible later, so up to K x S states are explored while one trajectory per segment is supervised. Forward SXM selects the lowest-loss trajectory for a target, reverse SXM selects the best-matching valid target for a trajectory, and they are applied sequentially; reverse SXM avoids collapse by not reusing solutions until 75% of an input's solutions have been assigned.

Results

  • On Sudoku-Extreme, EBRs reach 99.9% accuracy while using far less inference compute than the next-best model. §Abstract
  • Single-sample accuracy on Sudoku-Extreme and Maze-Hard with the fewest parameters (1.8M), plus multiple-sample results with N=5. §3.3
  • Convergence-based stopping lets EBRs maintain high accuracy with much less inference computation than fixed iterations. §4.1
  • On 10x10 N-Queens, EBRs keep the lowest-energy of 20 samples and obtain much higher coverage than baseline majority vote, with zero conflicts on both Graph Coloring tasks. §4.3
  • Sudoku-Extreme ablations show the energy head and the convergence loss are each critical, and SXM with K>1 improves over K=1. §4.4
  • On 8x8 N-Queens and 8-vertex Graph Coloring, adding forward and then reverse SXM increases accuracy and coverage and eliminates conflicts. §4.4
  • Training-FLOP comparison with GRAM: fewer training FLOPs on Sudoku-Extreme but more on N-Queens and Graph Coloring. §B

Limitations

  • Energy-based recurrence adds computational overhead: training through energy descent requires second-order derivatives, and SXM further increases training cost by rolling out K candidate trajectories per segment; the paper reports custom GPU kernels were needed and calls compute-efficient energy-based models future work (§5).
  • Additional hyperparameters are introduced, such as step size, noise scale, and number of descent steps, adding complexity in configuring and training EBRs (§5).
  • SXM and XM in general tend to benefit from larger training sets; on Maze-Hard SXM brought no gain, so it is trained with K=1 there, attributed to only 1,000 training mazes without augmentation (§5).
  • Experiments are limited to structured algorithmic reasoning tasks, leaving open whether energy-based recurrence scales to larger models and more general reasoning problems such as language-modeling reasoning or planning in world models (§5); also, reverse SXM hyperparameters were not tuned per partial-set size k, so whether other k could beat the full solution set is unclear (§E).

Key points

  • Reasoning is formulated as optimization over a learned energy landscape: the energy scores latent states, its gradient guides refinement, and it provides a stopping signal. §1
  • The same learned energy is used to select among multiple candidate solutions (lowest energy) and to decide when to stop, removing the need for a separate verifier. §1
  • The energy network reuses the recurrent Transformer block of TRM and EqR and adds a lightweight per-token head that reduces the block output to a scalar energy. §A.1
  • At inference, the latent state is initialized from Gaussian noise and refined by energy descent; stopping occurs when the tangent gradient norm falls below tau or after S segments of n steps. §3.3
  • SXM advances K parallel descent trajectories per input per training segment but supervises only the one best matched to a valid solution, so up to K x S states are explored while one trajectory per segment is supervised. §3.2
  • Forward SXM selects the lowest-loss trajectory for a given target, while reverse SXM selects the best-matching valid solution for a given trajectory; they are applied sequentially. §3.2
  • Reverse SXM avoids collapse by not reusing solutions: once a solution is assigned to a trajectory, others are graded against the closest unassigned solution, and after 75% of solutions are assigned all become available again. §A.4
  • With partial solution sets, reverse SXM already performs well: on 8x8 N-Queens, accuracy and coverage increase with k, from 72.18% and 87.5% at k=1 to 100% and 97.9% with all solutions. §E

Mind map

Energy-Based Reasoners
Problem
Looped models lack explicit progress measure
Stopping and selection use separate mechanisms
Latent states expose no explicit trace
Method
Learned energy over latent states
Reasoning as gradient descent on energy
Energy for halting and candidate selection
Backbone: TRM and EqR recurrent block
Training
Training through energy descent
Needs second-order derivatives
SXM: K parallel trajectories, one supervised
Forward and reverse SXM matching
No solution reuse to avoid collapse
Experiments
Sudoku-Extreme and Maze-Hard accuracy
Adaptive stopping and energy selection
N-Queens and Graph Coloring coverage
Training and inference compute
Limitations
Second-order gradient overhead
Extra hyperparameters
SXM needs larger training sets
Only structured algorithmic tasks tested