Energy-Based Reasoners: Teaching Recurrent Models When to Stop Thinking

Energy-Based Reasoners use a learned energy function to guide recurrent reasoning for adaptive stopping and efficient multi-step search.
Recurrent models expand reasoning depth by repeatedly executing the same module but lack an explicit progress measure, forcing fixed iteration counts and blocking state comparison. Energy-Based Reasoners (EBRs) learn an energy function over latent reasoning states, turning recurrent updates into gradient descent on an energy landscape. The energy value evaluates state quality, indicates improvement direction, and serves as a stopping signal. With exploration-based training, EBRs shape the landscape across a broader state space, achieving 99.9% accuracy on Sudoku-Extreme with 345x less inference compute and state-of-the-art solution coverage on multi-solution benchmarks.
Title
Energy-Based Reasoners: Teaching Recurrent Models 「When to Stop Thinking」
Meta Description
Energy-Based Reasoners (EBRs) formulate recurrent reasoning updates as gradient descent on an energy function, providing explicit signals for when to stop looping and how to improve the state. They achieve 99.9% accuracy on Sudoku-Extreme with 345x inference compute savings and state-of-the-art solution coverage on multi-solution benchmarks.
Article Content
Recurrent iteration has long been an effective inductive bias for improving model reasoning. By repeatedly executing the same recurrent block, the model can expand its effective depth in latent space and perform multi-step reasoning. But existing recurrent models lack an explicit measure of progress, making two key questions hard to answer: when should the loop stop? And how can the current state be improved?
A recent study proposes Energy-Based Reasoners (EBRs), which reformulate recurrent updates as gradient descent on an energy function, providing a unified answer to these questions.
The Bottleneck of Recurrent Reasoning: No 「Progress Bar」
The core idea of recurrent models is to have the same module repeatedly act on a latent state, effectively performing multiple computations in latent space. This structure performs well on algorithmic reasoning tasks, but it relies on an implicit computation process—the model itself does not know how far it is from the correct answer.
This leads to two direct consequences. First, the stopping condition can only be determined by external rules or a fixed number of iterations, making compute allocation imprecise. Second, there is no direction for improvement—the model cannot assess whether one intermediate state is better than another. The research team starts from this point: if an energy value can be defined for the latent reasoning state, with lower energy meaning closer to the solution, then recurrent updates become an energy minimization process, and both stopping and improvement have clear criteria.
Latent Space is the vector space inside the model used to represent reasoning states, distinct from the observation space where inputs and outputs reside. Recurrent models repeatedly update a state vector in latent space, effectively performing multi-step computation without generating intermediate tokens. The advantage of this approach is high computational efficiency, but the cost is that the state lacks interpretability: the outside world cannot directly judge how far the current latent state is from the correct solution. EBRs define an energy value for the latent state, effectively installing a measuring stick in this black-box space so that the latent reasoning process has an observable progress signal.
Gradient Descent is an optimization method that minimizes loss by iteratively updating parameters along the negative gradient direction of the objective function. EBRs analogize the recurrent block's update of the latent state to gradient descent on an energy landscape: the energy function gives a scalar score for the current state, its gradient points in the direction of energy reduction, and the recurrent block adjusts the latent state accordingly. The key to this analogy is that the energy function is learned rather than hand-designed, so the gradient signal serves simultaneously as a supervision signal and a search direction, unifying the optimization process and the reasoning process within the same framework.
The EBR Mechanism: The Energy Function Is the Supervision Signal
The core component of EBRs is a learned energy function that acts on the latent reasoning state and produces a score. This score plays three roles: evaluating the quality of the current state, indicating the next update direction through its gradient, and serving as a signal to stop the loop.
In other words, the recurrent block no longer iterates blindly but moves progressively toward low-energy regions under the guidance of energy, similar to gradient descent on an energy landscape. This design gives the reasoning process an interpretable intermediate quantity—the energy value itself is a measure of reasoning progress.
To make the energy landscape more reasonable, the research team also introduced an exploration-based training method. Training only on existing states tends to make the energy function cover only a narrow region; by discovering more patterns through exploration, the energy function can be shaped over a broader state space, thereby improving generalization.
Energy-Based Models (EBMs) are a class of probabilistic models that assign a scalar energy value to each state, with low energy representing high probability or high fitness. Unlike traditional discriminative models that directly output probabilities, EBMs do not require the normalization constant to be computable, and thus can flexibly represent complex distributions. EBRs borrow this framework but for a different purpose: EBMs are typically used to model data distributions, whereas EBRs apply the energy function to latent states during reasoning, using the energy value to measure 「how close to the solution」. This transfer allows EBRs to leverage the advantages of EBMs in representing multimodal distributions (corresponding to multi-solution tasks) while retaining the recurrent architecture's ability to expand depth for algorithmic reasoning.
Energy Landscape refers to the surface formed by the energy function over the state space, where valleys correspond to low-energy states (i.e., states closer to the solution). In EBRs, recurrent updates are equivalent to letting the latent state 「roll down」 toward the valley bottom on the landscape. The shape of the landscape is determined by the training data: if training covers only a narrow region of states, the landscape may lack meaningful gradients in uncovered regions, leading to generalization failure. Therefore, the research team introduced exploration-based training to actively discover new state patterns and incorporate them into energy shaping, making the landscape smooth over a broader region and pointing toward the correct solution—this is the key source of EBRs' generalization ability.
Experimental Performance: Less Compute, Higher Accuracy
The paper validates the effectiveness of EBRs on four algorithmic reasoning benchmarks. The most striking result is on the hardest version of Sudoku (Sudoku-Extreme): EBRs achieve 99.9% accuracy while using 345x less inference compute than the second-best model, with training compute remaining at a comparable level.
On benchmarks with multiple valid solutions, EBRs also perform well: it achieves state-of-the-art coverage of different valid solutions while maintaining near-100% single-sample accuracy. This means the model can not only find an answer but also explore the solution space in a distributed manner, rather than converging to a single mode.
These results point to a broader judgment: energy-based models may be a promising path toward strong reasoning capabilities. Compared with simply stacking more recurrent iterations, an explicit energy measure gives the model the ability to self-evaluate during reasoning, which is especially important for tasks requiring multi-step search and having multiple solutions.
Implications for Recurrent Architecture Design
The value of EBRs lies not only in improvements on individual metrics but also in changing the design philosophy of recurrent models. Traditional approaches treat the number of iterations as a hyperparameter or a fixed compute budget, whereas EBRs turn 「when to stop」 into an energy threshold problem, allowing computational resources to be allocated adaptively according to task difficulty.
The gradient of the energy function also provides an improvement signal, opening up space for controllability of latent-space reasoning. If energy measures can be combined with more complex search strategies in the future, the potential of recurrent models on tasks such as combinatorial optimization and logical reasoning is worth anticipating.
One-line Summary
Energy-Based Reasoners use a learned energy function to guide recurrent reasoning, enabling adaptive stopping and efficient multi-step search.
Paragraph Summary
Recurrent models expand reasoning depth by repeatedly executing the same module, but they lack an explicit progress measure, so the stopping condition can only rely on a fixed number of iterations, and intermediate states cannot be evaluated for quality. A recent study proposes Energy-Based Reasoners (EBRs), which learn an energy function for the latent reasoning state and transform recurrent updates into gradient descent on an energy landscape. The energy value plays three roles simultaneously: evaluating state quality, providing an improvement direction, and serving as a stopping signal. Combined with an exploration-based training method, EBRs shape the energy landscape over a broader state space. Experiments show that on the hardest version of Sudoku, EBRs achieve 99.9% accuracy with 345x less inference compute than the second-best model, and achieve state-of-the-art solution coverage on multi-solution benchmarks. This work shifts the compute allocation of recurrent reasoning from fixed rules to adaptive allocation, providing evidence for energy-based models as a strong reasoning path.
Related articles

Claude Code in Practice: Installation, MCP, Skills, and SubAgent Techniques
From npm installation and CC Switch login bypass to permission modes, MCP, Skills, SubAgent, and CLAUDE.md configuration—a systematic guide to practical Claude Code techniques.

FastAPI Learning Path: From Beginner to AI Project Practice
A Bilibili creator recommends *FastAPI Web Development: From Beginner to Advanced with Practical Projects*. This article outlines the FastAPI learning path: target audience, the 15-chapter six-part structure, project-driven learning, and practical directions from web backend to AI Agents, helping beginners avoid detours.

Reverse-Engineering Taobao's sign Signature Parameter with AI in 10 Minutes: A Practical Walkthrough
Based on a Bilibili hands-on demo, this article explains how to combine DeepSeek with vision models to automatically reverse-engineer Taobao's sign signature parameter, track dynamic titter and token values, and successfully scrape product data within ten minutes—while analyzing the capability boundaries and compliance risks of AI Agents in crawler reverse engineering.