Imagine a robot looking at a room and a goal image. Before it moves, it imagines several possible futures, chooses the more promising actions, and refines them. Another round of planning may discover a better route. It may also discover a mistake in the robot’s own model and exploit it. The difficult question is when another round of thinking is still useful.
This work studies expected free energy as a controller for that decision. Its central experiment separates three things that are often bundled together: choosing a candidate action, deciding how long to refine it, and learning from the transition that actually happens. The separation reveals where adaptive computation works, where uncertainty helps, and why an improving internal objective can conceal worsening behavior.
A better imagined future can produce a worse action
A learned world model predicts how the scene will change under an action sequence. A planner can optimize that prediction without executing every candidate in the real environment. This makes repeated refinement attractive: sample possible actions, predict their consequences, keep the best candidates, and sample again around them.
The prediction remains an approximation. With enough optimization, the planner may find actions whose predicted outcomes look excellent precisely because the model is inaccurate there. The cost then falls for the wrong reason. A stopping rule that observes only this cost has no direct access to the consequences of executing the selected action.

The distinction changes the objective of a compute controller. On a plateau, stopping late wastes computation. After a peak, stopping late can also choose a worse action. These two costs require different stopping signals, even when their optimization traces look similarly well behaved.
Three decisions, three experimental interventions
Expected free energy connects preferred outcomes with information seeking. In our operational objective, goal distance is the pragmatic signal and variation across stochastic predictions supplies a disagreement signal. The experiment asks what each signal does when assigned a specific job.

Keeping these roles apart matters. An uncertainty reward may make sense when an observation can improve a model. With a frozen predictor, visiting an uncertain outcome does not itself update the predictor. Conversely, avoiding uncertainty can help action selection yet leave the dynamics required for the task completely unlearned.
Inside the planning loop
The primary planner uses the cross-entropy method. At each refinement iteration, it samples action sequences from a Gaussian proposal, predicts their terminal latent representations, retains a low-cost elite set, and refits the proposal. Once planning stops, it executes the first action block, receives a new image, and plans again.

For a candidate sequence a, the scoring rule is:
P is the squared distance between the mean terminal prediction and the goal representation. U is the spread of terminal predictions across stochastic rollouts. A positive β rewards disagreement; a negative β penalizes it. At β = 0, scoring follows predicted goal distance. Disagreement is a measurable uncertainty proxy, rather than a calibrated estimate of posterior information gain.
Here “model cost” means the predicted task objective being minimized. It is not the price of a model call, GPU time, or a monetary compute charge. Refinement depth is the separate measure of planning effort.
A stopping signal that can be inspected
The controller smooths the mean elite cost and monitors relative descent. If improvement stays below a threshold for a patience window, it stops. A minimum depth allows the proposal to establish itself; a fixed cap prevents unbounded refinement.
The primary LeWM configuration uses 300 candidates and 30 elites, horizon 5, action block 5, and a cap of 30 refinements. The stall threshold is 0.01, with patience 2, minimum depth 3, and an exponential moving-average coefficient of 0.5. The same settings are used across TwoRoom, PushT, Cube and Reacher.

The criterion detects insufficient recent improvement. It does not certify convergence of the action distribution, correctness of the learned dynamics, or safety of the chosen action. Those are separate properties.
Where stopping saves work
On plateau-shaped tasks, the primary controller uses less depth while reaching mean success close to fixed-depth references. Best-elite stopping, which monitors the best candidate rather than the elite mean, is also competitive and often stops earlier.
| Environment | Best fixed | Elite-mean stall | Best-elite stall |
|---|---|---|---|
| TwoRoom | 90.0 @ 30 | 88.0 @ 22.0 | 89.3 @ 9.3 |
| PushT | 88.4 @ 30 | 87.2 @ 28.3 | 87.3 @ 15.3 |
| Cube | 67.3 @ 10 | 63.3 @ 28.1 | 63.3 @ 15.8 |
| Reacher | 72.0 @ 30 | 74.7 @ 22.3 | 74.0 @ 9.3 |
Each seed contains 50 episodes. Seed counts differ between some methods, so these means are descriptive comparisons. The fixed reference is selected from the evaluated depth grid. Iteration reductions imply fewer imagined transitions when candidate count, horizon and rollout count remain fixed; they are not an end-to-end latency measurement.

Disagreement is not automatically useful exploration
The next experiment keeps the model frozen and changes the disagreement weight. At larger positive weights, rewarding disagreement reduces success in all four environments. At β = +10, losses range from 3.5 to 54.7 percentage points. At β = +50, the range is 13.0 to 78.1 points. Each cell uses 100 matched seeds and 50 episodes per seed with four stochastic rollouts.

A penalty helps at selected task and weight combinations. Reacher gains 2.38 and 3.34 points at β = −20 and −50; Cube gains 1.44 and 1.88 points at −20 and −10. Stronger penalties also hurt: TwoRoom loses 13.4 points at −50. A single preference for either optimism or pessimism does not explain every task.
Goal distance and disagreement have different magnitudes, so raw β may hide a scaling issue. A magnitude-normalized grid tests that possibility. The larger positive weights still hurt, although this normalized grid uses one seed per setting and has a narrower evidential scope than the main weight experiment.

Missing dynamics require learning, not just caution
Consider a goal that lies in a region the model never saw during training. Penalizing uncertainty may encourage the agent to avoid that region, but avoidance cannot reach the goal. We create this situation by removing TwoRoom training episodes that enter a required corner.
The intervention includes a volume-matched random-removal control, a checkpoint matched on initial frozen success, and shuffled-target updates. These distinguish the location of missing data from simply having fewer examples or a weak starting model.
| Update | Hole e3 | Hole e5 | Success-matched | Full-data e2 |
|---|---|---|---|---|
| Frozen | 37.2 | 44.0 | 37.2 | 70.8 |
| Online | 56.0 | 62.8 | 34.8 | 76.4 |
| Shuffled targets | 46.4 | 55.6 | 38.0 | 80.8 |
Online updates recover 37.6% and 48.0% of the coverage deficit for the two hole checkpoints, relative to their volume-matched references. The advantage over shuffled updates is 9.6 and 7.2 points. The same advantage does not appear in the success-matched and full-data controls. Correctly paired observations matter in this specific missing-dynamics setting.
Updating the model and spending more time optimizing inside it therefore answer different problems. Lower prediction loss on recently observed transitions also does not guarantee higher task success. The control conditions are necessary to distinguish a useful update from generic optimization activity.
The same stopping idea, different planner families
The stopping statistic is tested beyond the primary latent CEM planner. Across 19 TD-MPC2 tasks, it retains 98.9% of the best-grid return on average at mean depth 3.8. On DINO-WM PushT, fixed-depth and adaptive stopping both reach mean success 0.852; the adaptive rule uses depth 26.44 instead of 30.

On DINO-WM Wall, cost-only halting runs to depth 29.04 and reaches success 0.364, close to the full-budget 0.356 rather than the earlier 0.576 peak. More stochastic rollouts can improve scoring, but they also change computation per iteration. A five-rollout fixed-depth setting reaches 0.508 at depth 30; this is not an early-stopping result.
What the separation tells us
The useful result is a map of when each intervention can work. Stopping can reduce computation when task success plateaus. A disagreement penalty can change action selection in useful ways at selected weights. Online updates can learn dynamics absent from the training distribution. None substitutes for the other two.
The failure case is equally informative. Two tasks can expose the same internal cost trajectory yet require different stopping depths because their real consequences differ. A controller reading only cost must make the same choice for both. Protecting performance after a peak requires connecting prediction progress to executed outcomes.
This changes how adaptive-compute systems should be evaluated. Plot external success over depth alongside internal cost. Compare candidate scoring and stopping under matched per-iteration work. Test model updates with interventions and controls. A curve that converges inside the model is only the beginning of that evaluation.
Experimental scope
These figures and tables come from the paper released on 20 October 2026. Start and goal samples may overlap world-model training data. Some controller comparisons use unequal seed sets, and shared transfer thresholds were not selected on an independent held-out set. Disagreement is a proxy, the normalized grid is exploratory, and the idealized stopping argument does not directly prove a guarantee for receding-horizon execution. The article presents the published experimental scope; subsequent experiment batches are not included here.