Skip to content
Huygens' pendulum clock with cycloidal cheeks, Horologium Oscillatorium, 1673, the pendulum in orange

C. Huygens.Horologium Oscillatorium. 1673.

Oct 2026

Certified Access

Test-Time Compute on Conservative Physics-Structured AI Memory

World Model Research
Authors
Pratik Jawahar, Riccardo Maggioni, Jonas Petersen, Matteo Cozzi, Gian-Alessandro Lombardi, Marek Gajewski, Camilla Mazzoleni, Federico Martelli
Affiliations
CERN · Forgis · ETH Zürich
Venue
LCFM @ NeurIPS
Models increasingly spend extra compute on hard inputs, through retries, early exits or routing, but rarely say what that compute does to their internal state. For a memory built as a physical system, this study shows that every way of reaching further into it comes with guarantees: whether it preserves information, how much energy it adds, and what happens to the content stored along the way.
Ways a memory is out of reach
2
Guarantees per mechanism
3
Energy for a matched jump
0
Fewer recall steps
9.9×

Overview

Models increasingly spend more compute on hard inputs than on easy ones. They retry, stop early when they are confident, or route a query to a different part of the network. These mechanisms are usually a learned switch attached to an ordinary network, and they say nothing about what the extra compute actually does to the model's internal state.

This study asks that question for a memory built as a physical system. In such a memory, recalling something means letting the state settle into it, and spending extra compute means reaching a state that ordinary settling cannot get to. Because the memory follows physical rules, every way of doing this comes with guarantees we call certificates. They say whether the step keeps all the information in the state, how much energy it adds, and what happens to the content stored along the way.

TL;DR. A memory can be out of reach for two reasons, and each has its own fix with guarantees attached. On a designed test setup the exact guarantees hold to machine precision. On a trained memory, the same ideas cut recall work by up to 9.9×, while a simpler router without physics still does better at long-distance routing.

Two ways a memory can be out of reach

The memory is a Causal Learning Unit (CLU), first introduced as CHLU in an earlier paper. An encoder writes each item into a latent state with a position and a momentum, and a learned energy landscape moves that state forward step by step, with friction slowly removing energy. Recall is the state rolling downhill into the memory it is looking for.

The CLU diagramAn input passes through an encoder, which gives a position and momentum (q, p) to the CLU: a sphere holding energy curves with a particle resting in a well.inputencoder(q,p)CLU
Figure 1. The CLU is a latent-dynamics unit that acts on the output vectors of any Neural Network-based encoder. It learns which latent features are important, where to store them in the latent space, and how to easily retrieve them when required.

The CLU also has a speed limit, so in a given number of steps the state can only travel so far. That defines a box around its starting point, and it leaves two ways for a memory to be out of reach. The memory can lie inside the box but behind an energy barrier the state cannot climb, or it can lie outside the box altogether, too far to get to in time. Each case gets its own mechanism.

Behind a barrier

The squeeze

A short, targeted boost along one direction gives the state enough energy to hop over the barrier. The extra energy is bounded in advance, and the friction absorbs it again within a predictable number of steps.

Beyond the box

The gated channel

A learned pair of entry and exit points acts as a shortcut. When the gate opens, the state is moved from one end to the other in a single step, however far apart they are. The jump costs exactly the difference in energy between its two ends.

Both jumps keep all the information in the state: nothing is squashed together or lost, which the paper certifies by showing the jump preserves volume in the space of states exactly. For the gated channel this only holds if the gate stays fixed while the jump happens. A gate that changes during the jump breaks the guarantee, however short the jump is.

Checking the guarantees

We first tested both mechanisms on a small designed setup, where the barriers and distances are known exactly and the channel ends are placed by hand. A target lies either inside the box or beyond it, and the question is whether the state lands there.

MechanismInside the boxBeyond the boxWhat happens to the state
Settling only 0% 0% Stays stuck behind the barrier
Squeeze 100% 100% at 3.2, 0% at 4.0 and 5.0 Keeps information, adds bounded energy
Gated channel 100% 100% Keeps information, no energy added here
Overwriting the state 100% 100% Destroys the stored information
Share of runs that land on the target, over five seeds and two to four latent dimensions. The box reaches 2.5 units; targets sit at 0.8, 1.6 and 2.4 units inside it and at 3.2, 4.0 and 5.0 beyond it. The squeeze was given a limited boost budget.

Simply letting the memory settle never gets past the barrier. The squeeze clears barriers inside the box, and can reach a little beyond it, but the energy it needs grows quadratically with how far past the box the target lies, so the farthest targets need more than its budget. The gated channel lands everywhere, at no energy cost on this setup, because its two ends sit at the same height.

Overwriting the state with the target lands everywhere too, but it destroys what the state was carrying. To see this, we followed 16 states that each carried a stored value. The channel shifted every value by exactly the predicted amount and kept their spread unchanged, so each original state can be recovered. Overwriting turned all 16 into the same value. A random jump that also preserves volume scrambled them, which shows that keeping information is not enough on its own: the channel has to be matched to what is stored.

Figure 2. The guarantees on the designed setup(a) Landing rate against target distance for each mechanism, with the box edge at 2.5. The gated channel stays at 1 throughout; the squeeze drops to 0 beyond 3.2; plain settling stays at 0. (b) Stored value after the jump against before: the matched channel lies on the diagonal, overwriting gives one flat value, a random shift scatters.123450.00.20.40.60.81.0gated channelsqueeze S(M)state-replacing mapdense / throat-VNewtonian squeezeplain relaxationbasin distance dlanding rate(a)1.41.51.61.251.501.752.00coset-tangentstate-replacing mapacross-cosetidentityrandom shiftincoming charge Qin = p⊤Xqoutgoing charge Qout(b) Figure 2. The guarantees on the designed setup(a) Landing rate against target distance for each mechanism, with the box edge at 2.5. The gated channel stays at 1 throughout; the squeeze drops to 0 beyond 3.2; plain settling stays at 0. (b) Stored value after the jump against before: the matched channel lies on the diagonal, overwriting gives one flat value, a random shift scatters.(a)gated channelstate-replacing mapNewtonian squeezesqueeze S(M)dense / throat-Vplain relaxation123450.00.20.40.60.81.0basin distance dlanding rate(b)coset-tangentacross-cosetrandom shiftstate-replacing mapidentity1.41.51.61.251.501.752.00incoming charge Qin = p⊤Xqoutgoing charge Qout
Figure 2. The guarantees on the designed setup. (a) Share of runs that land on the target against its distance, with the edge of the box dashed. (b) The stored value after the jump against its value before. A channel along the stored direction leaves it unchanged (on the diagonal), one across it shifts every value by the same amount, overwriting flattens them to one value, and a random shift scatters them.

Where the guarantee stops

Keeping information and adding no energy do not mean the state stays safe. If the exit of a jump lies outside the region where the landscape holds the state in, the state can run off indefinitely. In one test an exit cost exactly zero energy and the state still escaped at once. A check that refuses jumps leaving the safe region fixed this: without it the state ran out to a distance of about 100, with it the state stayed within 0.09. The check, not the jump itself, keeps the state bounded.

On a trained memory

A trained memory has no hand-designed landscape, so we tested the ideas on CLUs trained to recall key-value pairs. The first is a gate that decides how much settling each query needs. Before use, the memory quizzes itself with slightly altered copies of its own keys and learns when a short recall is enough. On a small, briefly trained memory with 16 stored pairs it cut the settling steps 4.81× while also getting more answers right. The gain shrinks as the memory holds more, and with full training the gate answers as accurately as full-effort recall, though not more so.

Across 198 runs over memory size and training length, a well-trained memory stored its pairs almost perfectly, and the gate cut the settling steps 9.9×, 9.5× and 6.2× at 32, 64 and 96 stored pairs. Beyond 64 pairs, it is the training budget, not a hard capacity limit, that holds the memory back. The gate fails on noisy queries, though: with strong noise added, it answered only 36% correctly while the memory itself still held everything. We record this as an open problem.

The second test is long-distance routing on a grid. A single direct jump keeps the compute flat as the distance grows, whereas spreading step by step gets more expensive. However, a router of the same size that ignores physics did better on both counts, with 100% against 88.7% accuracy on the smaller grid and 94.8% against 71.5% on the larger one, at lower cost.

Limits and next steps

The certificates hold under stated assumptions. The friction must stay fixed within a step, so they do not cover the memory's automatic energy control. The guarantee on stored values holds at the moment of the jump, not over the whole recall that follows. And the channel can be undone only for a fixed gate, not for a whole routing policy that chooses between gates. The designed setup is small, and there the channel ends were placed by hand. The main contribution is the set of guarantees and a map of where they stop, not a lead on any benchmark.

Next steps are learning where to place the channel ends, treating retries as a process with guarantees of their own, and testing on learned memories at scale.

Getting started

The paper is on arXiv, and the code is on GitHub.

Citation

@misc{jawahar2026certified,
  title         = {Certified Access: Test-Time Compute on Conservative
                   Physics-Structured AI Memory},
  author        = {Jawahar, Pratik and Maggioni, Riccardo and Petersen, Jonas and
                   Cozzi, Matteo and Lombardi, Gian-Alessandro and Gajewski, Marek and
                   Mazzoleni, Camilla and Martelli, Federico},
  year          = {2026},
  eprint        = {2610.39073},
  archivePrefix = {arXiv}
}

Papers

Are you a researcher?

Publish with us.
Help build one world model for any machine and robot.

Forge temperature: 1508°C
Status: Active