Manuscript Offprint

arXiv:2611.08977

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

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

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Looping is a powerful inductive bias for reasoning. By repeatedly iterating a recurrent block, looped models can scale their effective depth and enable multi-step reasoning in latent space. However, existing looped models are not inherently guided by an explicit measure of progress, making it difficult to determine when to stop looping and how to improve upon the current state. To enable this, we introduce Energy-Based Reasoners (EBRs), which learn an energy function over latent reasoning states and formulate looped updates as gradient descent on this energy. The energy scores latent states, while its gradient guides refinement and provides a signal for stopping. To train EBRs effectively, we further introduce exploration-based training to discover additional modes and to better shape the energy landscape over a broader set of states. Across four algorithmic reasoning benchmarks, EBRs match or outperform prior recurrent reasoning models, achieving 99.9% accuracy on Sudoku-Extreme while using 345×345 \times less inference compute than the next-best model and maintaining comparable training compute. On all multi-solution benchmarks, EBRs achieve state-of-the-art coverage of distinct valid solutions while maintaining near-100% single-sample accuracy. These results suggest that energy-based models are a promising approach for strong reasoning performance.

1 Introduction

Generalization requires the ability to compute answers that cannot be retrieved. For a model, this means using what it has learned to construct solutions to unfamiliar problems [1]. For difficult reasoning tasks, this computation may involve a sequence of dependent steps, each building on the results of the last [2]. Over the past few years, chain-of-thought has been widely used to support such multi-step reasoning in large language models. The model uses additional tokens to express intermediate reasoning steps before producing its final answer [3]. In this setting, test-time scaling means generating more tokens to achieve better solutions, for example, generating longer reasoning traces, revising predictions, and searching over candidate solutions [4–6].

A complementary approach carries out these reasoning steps through iterative updates to an internal latent state [7, 8]. Looped architectures organize these updates through recurrence [9, 10]. They repeatedly apply the same layers to a state that carries information from one reasoning step to the next. Reusing these layers allows the model to increase its computational depth without increasing its number of parameters [2, 10]. Recent works on looped reasoning models, including HRM and TRM, demonstrate the effectiveness of this approach on challenging algorithmic reasoning tasks, achieving strong performance with small models and sometimes outperforming much larger language models [11–13].

However, moving reasoning into latent space raises the question of how we can actually guide updates to facilitate better search. Chain-of-thought solves this problem by exposing intermediate steps

Figure

Figure 1: Reasoning as energy minimization. Energy-Based Reasoners (EBRs) solve a puzzle xx by gradient descent on a learned energy Eθ(z;x)E_\theta(z; x) over latent reasoning states zz. The surface shows this energy for one Sudoku puzzle on the plane through three states of a descent trajectory.

as token sequences that can be evaluated to decide which reasoning paths to pursue, how much computation to allocate to them, and which solution to select [4, 6, 14, 15]. However, latent states do not directly expose a comparable explicit trace, and existing looped reasoners typically rely on separate mechanisms to evaluate predictions and determine stopping. For example, HRM and TRM use learned heads to discern between correct and incorrect states and decide when to halt [11, 12, 16], while FPRM uses convergence of the recurrent state as a stopping criterion [17]. Other approaches introduce stochasticity to explore alternative latent trajectories and use additional criteria to select among the resulting predictions [16, 18, 19]. In each case, the evaluation is used only to stop or select, while the update itself is not guided by any explicit assessment of the current state. This motivates a broader question: can we learn a unifying objective so that evaluation guides the reasoning process, decides when to stop, and verifies which candidates are best?

We argue that energy-based models offer a natural way to connect these capabilities. Prior work has demonstrated the potential of energy-based models for assessing uncertainty through learned energy scores [20], generating diverse samples via Langevin dynamics [21], and enabling iterative refinement through energy minimization [22–24]. Building on these ideas, we introduce Energy-Based Reasoners (EBRs), which formulate reasoning as optimization over a learned energy landscape. Given a problem xx, an EBR learns an energy function Eθ(z;x)E_\theta(z; x) over latent reasoning states zz, assigning lower energy to states that produce better predictions. At inference time, reasoning proceeds by iteratively refining the latent state through gradient descent on this energy function. Importantly, the same learned energy also determines which predictions to select and when to stop refining them. Among multiple candidate solutions, an EBR selects the lowest-energy prediction without requiring a separate verifier. Meanwhile, the norm of the energy gradient provides a convergence signal, allowing each trajectory to stop once further refinement is no longer needed rather than relying on a fixed iteration budget. In this way, EBRs unify iterative refinement, candidate evaluation, and adaptive stopping within a single learned objective.

In order to generate diverse solutions, EBR must learn an energy landscape that captures multiple solution modes. Recent generative reasoning approaches, including Flow Reasoning Models and Looped Flows [25, 26], demonstrate the potential of generative modeling for recurrent reasoning. However, conventional generative frameworks, such as diffusion models, can suffer from exposure bias due to mismatches between training and inference. Explorative Modeling (XM) [27] offers an alternative by exploring model-generated candidates and matching them to suitable targets. This is particularly natural for energy-based reasoning, where supervising different trajectories provides learning signals across the latent states visited during descent, progressively shaping the energy landscape so that descent can better isolate modes. We therefore introduce state-based Explorative Modeling (SXM), extending XM to persistent energy-descent trajectories. By matching trajectories to solutions and supervising their intermediate states, SXM encourages the learned energy to guide refinement across a broader range of states and better realize the generative capacity of EBRs.

Across four challenging algorithmic reasoning benchmarks, Sudoku-Extreme, Maze-Hard, N-Queens, and Graph Coloring, EBRs match or outperform prior looped reasoning models. On Sudoku-Extreme, EBRs achieve 99.9% accuracy while using 345×345\times less inference compute than the next-best model, without requiring an external verifier. On multi-solution benchmarks, EBRs achieve high coverage of distinct valid solutions while maintaining near-perfect solution accuracy, demonstrating the ability of the learned energy landscape to support diverse reasoning outcomes. Together, these results establish energy minimization as an effective framework for accurate, efficient, and flexible iterative reasoning.

Our contributions are threefold,

• We introduce Energy-Based Reasoners (EBRs), which unify iterative refinement, candidate evaluation, and adaptive stopping through a single learned energy function.

• We extend Explorative Modeling (XM) to latent reasoning trajectories through state-based Explorative Modeling (SXM), enabling the discovery of diverse solutions.

• We demonstrate improvements in reasoning accuracy, inference efficiency, and solution diversity across four algorithmic reasoning benchmarks.

References (42)