Classical Energies Learn to Reason 1,000x Faster than Looped Models
Benjamin Hoover, Hugh Blayney, James C. R. Whittington
arXiv:2611.17309v1Today’s paper is about a very old idea making a surprisingly modern comeback: instead of building a reasoning model that loops until it finds an answer, what if we learn an energy function directly and then let the answer emerge by minimizing that energy? That matters because looped models have become one of the main approaches for tasks like Sudoku and mazes. The basic idea is simple: reuse the same block over and over, so the model can refine its guess step by step. These models have had real successes on small reasoning benchmarks. But they also come with some familiar problems. They can be slow to train because you often have to backpropagate through the whole reasoning trajectory. They can be unstable. They can use a lot of compute for tasks that are, in a human sense, quite small. And even when they work, it’s not always clear why. This paper argues that many of the nice properties people want from looped reasoning are already built into energy minimization. If you define an energy over possible solutions, then inference becomes a search for low-energy states. That gives you a natural notion of convergence, a natural stopping rule, and a way to train without differentiating through the entire loop. The authors ask a direct question: why keep reconstructing the benefits of energy models one piece at a time inside a looped network, when you could just learn the energy itself? To place this in context, energy-based reasoning is not new. Hopfield and Tank showed in the 1980s that carefully designed energies could solve combinatorial problems like optimization and logic puzzles. More broadly, in graphical models and Markov random fields, you represent a problem by costs on variables and pairwise interactions, then find assignments that minimize total cost. In the modern deep learning era, looped reasoners have borrowed some of these ideas implicitly. Some are trained to converge to fixed points. Some add halting heads so the network can decide when to stop. Some use diffusion-like or flow-like training to avoid the worst costs of backpropagation through time. But these are often add-ons on top of a deep recurrent model. The key contribution here is to make that energy explicit and learn it from data. The authors call the resulting system CRAM, for Compact Reasoning Associative Memory. The name is meant to evoke a Hopfield network: the weights store associations between valid pieces of a puzzle, and the dynamics complete a partially observed pattern. In other words, you give the model a puzzle with clues, and it tries to fill in the rest by descending the energy landscape. At a high level, CRAM represents each puzzle as a set of cells, and each cell can take one of several candidate values. For Sudoku, those candidates are the digits. For a maze, they encode possible path-related states. For N-Queens and graph coloring, they represent the relevant discrete choices in those problems. The model assigns an energy to the whole board, based on two ingredients: costs for individual cell assignments, and costs for pairs of cells. If two cells take compatible values, the energy should be low; if they violate a constraint, the energy should be high. This is exactly the sort of structure you’d expect from a pairwise graphical model. The paper writes this as a mean-field free energy, which is a smooth relaxation of a discrete combinatorial objective. Each cell has a belief distribution over its candidate values, and those beliefs are updated by recurrently descending the energy. The important part is that the recurrence is not a generic neural block. It is the gradient flow of the learned energy. So each iteration has a clear interpretation: it is one step of optimization. The authors note that, in the continuous-time limit, this descent does not increase the energy. In practice, they implement a recurrent update and then use a softmax over latent logits to maintain a distribution over candidates. There are two especially useful consequences of this setup. First, the energy itself gives a built-in stopping criterion. If the energy is already below a learned threshold, or if no single-cell change can further reduce it, the search can stop. That means compute can adapt to how hard a puzzle is. Easy puzzles can terminate early, while harder ones can keep searching. Second, because the model is energy-based, training does not require differentiating through every inference step. That is a major difference from looped models trained with truncated BPTT. For training, the paper mainly uses a pseudolikelihood objective. The broad energy-based learning principle is to lower the energy of observed correct solutions and raise the energy of incorrect or competing solutions. But directly pushing up the energy of model samples can be expensive, so practical approximations are often used. Here, pseudolikelihood is chosen because it is simple, accurate on these tasks, and fast to fit. The authors also compare with other training methods for the same energy, including local objectives and BPTT-based approaches, and they find the local objectives are fastest. The experiments focus on four reasoning benchmarks: Sudoku-Extreme, Maze-Unique, N-Queens, and graph coloring. Sudoku-Extreme is a hard 9-by-9 Sudoku set. Maze-Unique is a set of 30-by-30 mazes where the solution is the unique path between two endpoints. N-Queens and graph coloring are useful because they have many valid answers per input, so they test whether the method can handle tasks with multiple acceptable solutions, not just one canonical output. The core comparison is against modern looped reasoners, including HRM, TRM, and related models. The paper’s headline result is that CRAM matches the accuracy of these baselines while training at least 1,000 times faster and using much less inference compute. On Sudoku-Extreme, the abstract reports 99.996 percent test accuracy after only 42 milliseconds of training on a single GPU. On Maze-Unique, it reaches 100 percent test accuracy after 132 milliseconds of training on a single GPU. The paper also reports that on Sudoku-Extreme, CRAM matches the best accuracy of looped baselines using at least 282 times fewer inference FLOPs. That is the main empirical story: the energy-based model is not just competitive, it is dramatically more efficient. The stopping behavior is another important result. Because CRAM has an explicit energy, it can stop when the board is already good enough or when no local move improves the energy. So instead of always running a fixed number of reasoning steps, the model can spend more compute only on the harder instances. That is a meaningful advantage over looped models whose compute is often tied more rigidly to the architecture or training recipe. The authors also look at data efficiency. They report that CRAM learns interpretable weights from Sudoku-Extreme using about an order of magnitude fewer training puzzles than looped models. That suggests the energy formulation is not only faster at runtime, but also easier to fit from limited supervision. And because the weights are pairwise costs, they can often be interpreted as learned puzzle constraints rather than opaque hidden features. One especially interesting experiment is that the authors also show hand-set CRAM energies with very few unique weights. These manually specified energies can solve every test puzzle from every benchmark exactly, and they do so using at most three unique weights. That result is important not because it is a new learning method, but because it reinforces the central point: these benchmark tasks are structurally simple enough that a small explicit energy can capture them very well. In that sense, the paper is both a success story for energy-based reasoning and a warning about benchmark difficulty. And that warning is part of the paper’s conclusion. The authors argue that high accuracy on Sudoku and maze benchmarks should not be taken as evidence that a model will scale to much harder reasoning problems. These tasks may be too easy for tiny energy models to solve efficiently. CRAM itself, in its simple form, would likely struggle on more complex tasks such as ARC-AGI. The paper does mention a simple latent extension that can solve a harder maze variant near perfectly, but the broader message remains cautious: solving toy-style reasoning benchmarks very well does not necessarily tell us how a method will behave on truly open-ended reasoning. So what should we take away? First, explicit learned energies are a very promising route for data-efficient reasoning. They offer stability, early stopping, and fast training without unrolling long recurrent trajectories. Second, the results strongly suggest that some popular looped reasoning benchmarks may not be challenging enough to distinguish methods in a meaningful way. And third, if we want reasoning systems that are both scalable and interpretable, it may be worth revisiting classical energy-based ideas rather than treating looping itself as the main object of innovation. In short, this paper shows that a carefully learned classical energy can reason extremely fast, with very little compute, and with a level of transparency that many modern looped models still lack.
Also spotted that day
Previous daily papers