Artificial intelligence · 8 min read
The loop knowswhen to stop.
1.8 million parameters, 99.9% on Sudoku-Extreme, 345x fewer FLOPs than the previous best model. The recipe: learn an energy function over the reasoning state, then use it as a score, as the correction direction and as the stopping criterion.
Key takeaways
- Recurrent (looped) models gain depth by iterating the same block, but nothing tells them when to stop: the iteration count is fixed in advance, so an easy grid costs as much as an extreme one.
- Energy-Based Reasoners learns an energy function over the latent state: gradient descent refines, gradient norm stops, minimum energy selects among candidates. Result: 99.4% single-sample and 99.9% with five samples on Sudoku-Extreme, at 1.8M parameters.
- Worth borrowing in production: the learned score as a stopping condition and energy ranking as a best-of-N verifier. Not worth expecting: a gain on your LLM pipelines — all four benchmarks are combinatorial, without a line of text.
A loop with no progress gauge
A recurrent model does not produce its answer in one pass. It keeps a latent state, pushes it through the same block several times, and reads the result after n iterations. That effective depth, tunable at inference, is why the pattern appeals for reasoning: one set of weights solves problems of varying difficulty.
The flaw is structural. n is a constant fixed at training time. The model has no way to say "this state is good, stop" or "this state is getting worse, back up". Two direct consequences: inference cost is flat, identical for a trivial case and a borderline one, and the output is whatever the last iteration produced, not the best state seen along the way. On Sudoku-Extreme, the gap between 99.4% and 99.9% comes precisely from that output choice.
The same blind spot exists in production agent pipelines, one level up. A max_steps of 40, a token budget, a fixed number of self-critique rounds: three hand-tuned constants that set the cost of every request regardless of how hard the task actually is. The paper published on November 6, 2026 (arXiv:2611.08977, Chen, Gladstone, Li, Ji and Du) answers this at the model level; the transferable part is how the signal is built.
Energy as score, direction and stop
An energy model learns a scalar function Eθ(z; x) that scores the compatibility between a reasoning state z and the problem x. Lower energy means the state is more consistent with the prompt. Three uses fall out of that single function:
- Refine. The state update becomes a gradient descent step: zt+1 = ΠM(zt − α∇zEθ(zt; x)), where ΠM projects onto the problem's valid states.
- Stop. Once the gradient norm falls below a threshold τ, the state is stationary and the trajectory halts. An easy grid converges in a few steps, a hard one keeps going.
- Select. With several trajectories, keep the one with the lowest energy. That is best-of-N where the judge is the energy function itself.
The usual problem with energy models remains: training. Gradient descent guided by E only visits states near the solution, which leaves the energy surface unconstrained elsewhere — and therefore unreliable as a score on mediocre states. The authors add an exploration-based training phase that samples states off the descent path and shapes the energy over a wider region. That is what makes the stopping criterion usable: without it, the gradient can be small on a bad state.
| Model | Parameters | Sudoku-Extreme, 1 sample | Sudoku-Extreme, N samples |
|---|---|---|---|
| TRM | 5–7M | 87.4% | — |
| GRAM | 10M | 86.6% | 96.1% (20) |
| EqR | 5–7M | 93.0% | 99.8% (128) |
| FPRM | 7M | 94.2% | — |
| Looped flows | 5–7M | 97.9% | 99.3% (5) |
| EBR | 1.8M | 99.4% | 99.9% (5) |
The number that matters345x fewer FLOPs than EqR for higher accuracy — of which 10.9x come from adaptive stopping alone, on an identical model. The rest comes from a smaller model and a smarter choice of output state.
The numbers, and what they leave out
Four benchmarks, all combinatorial: Sudoku-Extreme, Maze-Hard, N-Queens (8x8 and 10x10) and graph colouring (8 and 10 vertices). The last two admit several valid solutions, which tests something other than accuracy: coverage. On N-Queens 10x10, 20 EBR samples find 92.0% of the distinct solutions against 57.5% for GRAM; on 10-vertex colouring, 54.5% against 51.3%. The gain is clear but hardly dramatic on the latter — and that is the hardest case in the set.
The methodological caveat worth flagging: the authors do not retrain every baseline. GRAM and TRM are taken from GRAM's paper, EqR from its released checkpoint, with error bars over three seeds. The compared models have 5 to 10M parameters against 1.8M for EBR, which favours EBR on inference cost and makes the accuracy gain more notable — but a table assembled from copied numbers is not worth a rerun table. Training compute is described as comparable, without a specific figure in the summary.
On test-time scaling, the comparison to keep is the sample count: to match EqR's best accuracy, EBR needs 7x fewer iterations and 43x fewer samples. In other words, the model does not buy accuracy by drawing more candidates; it owes it to a better-guided latent state. That is the opposite of a sampling-scaling strategy, and it is what makes the result worth reading.
What transfers, what does not
What does not transfer: the model. A 1.8M-parameter network trained on grids and graphs does not write text, follow instructions or read documentation. None of the four benchmarks resembles a production task. If you are looking for a gain on a RAG pipeline, this paper gives you none.
What does transfer: the shape of the signal, independent of architecture. First pattern — a progress score instead of a step counter. If you can train a small model to grade an agent's intermediate state (current plan, proposed diff, test output), you get a stopping condition that adapts to difficulty, and often an infinite-loop detector for free. Second pattern — selection by learned score. Best-of-N filtered by a verifier trained on your own examples usually beats best-of-N arbitrated by an LLM judge, at a far lower cost per candidate. Third pattern — gradient norm as confidence. A trajectory that stops improving should escalate to a more expensive model, not insist.
When this class of approach is not worth the cost: when the verifier is your bottleneck, when you have no reliable supervision signal to train it, or when a deterministic heuristic already covers you — a test that passes, a lint that fails, a JSON schema that validates. On those cases a ten-line explicit rule beats a learned score, and it can be debugged.
Checklist: test adaptive stopping on your own stack
- Instrument before you change anything. Over two weeks of traces, record the actual steps per successful task. If the distribution is flat, your fixed budget costs nothing and there is no gain to chase.
- Build the progress label. For each intermediate step, a binary "this step moves toward the solution" label is enough, obtained by replaying the task from that state. That is the real cost of the project.
- Compare three policies on the same set. Fixed budget, stop on learned score, stop on score plus escalation to a stronger model. Measure cost per success, never cost per task.
- Keep a hard ceiling. Learned stopping gets it wrong; a maximum step count and a timeout remain necessary, or a mis-scored trajectory runs forever.
- Check coverage if you sample. If your product depends on answer diversity, measure the number of distinct valid outputs, not just the pass rate of the best candidate.
Need to audit an agent pipeline, measure a cost per task that holds up in front of a client, or train your team on this kind of evaluation? See how we work at Kaleido-Lab.