Adapt for Planning, Not Just Prediction Optimistic Test-Time World Model Adaptation

Akshay Mete, Dileep Kalathil, P. R. Kumar

Texas A&M University

To appear at the Pretrain to Adapt workshop, CoRL 2026

TL;DRAdapted to prediction alone, a world model is fit only to the outcomes of its own actions and can remain wrong about the actions that would reach the goal. OpTTA estimates the model with a task-aware, optimistic objective: the prediction loss on observed transitions plus the planner's goal-reaching cost on its own candidate rollouts. Across three JEPA world models and 15 shifted settings, it raises final planning success over the frozen model by 13.5 points on average, against 6.9 for prediction-only adaptation.

Diagram of the OpTTA loop. Execution row: the world model takes the goal image and current observation, produces imagined rollouts, the planner picks an action, the environment returns the next observation. Adaptation row: the prediction loss on buffered transitions plus the optimism-weighted planning loss on the candidate rollouts update the world model. Steps: plan, execute, optimistic adaptation, replan.
Plan, execute, adapt, replan. At every replanning step the world model is adapted on the observed transitions, using the prediction loss plus the task-aware optimistic loss evaluated on the candidate rollouts the planner has already generated.
13.5 vs 6.9 ptsAverage gain in final success over the frozen model, OpTTA vs prediction-only (AdaJEPA)
14 of 15Shifted settings where OpTTA ends higher than AdaJEPA
3 world modelsLeWM, DINO-WM, temporal straightening; CEM and gradient-based planners
0 added interactionNo additional environment interaction; about 20 ms more per replan

Optimism improves planning under distribution shift

Bar chart of gain in final planning success over the frozen model for AdaJEPA and OpTTA across eight settings with the predictor adapted and seven with predictor and encoder adapted. OpTTA's bars are higher in every setting except LeWM TwoRoom, where both are negative.
Gain in final planning success over the frozen model, averaged over the shifts of each setting. Blue: prediction-only adaptation (AdaJEPA). Orange: OpTTA. Error bars: ±1 s.e. over seeds.

Both methods share the checkpoint, planner, episodes, buffer, adapted parameters and update schedule; only the adaptation objective differs. OpTTA reaches higher final success in 14 of 15 shifted settings and higher mean success over replans in 13 of 15. TwoRoom is the exception, where both objectives fall below the frozen model.

Full results table
Setting (shifts)FinalMean over replans
FrozenAdaJEPAOpTTAFrozenAdaJEPAOpTTA
In distribution
LeWM PushT80.0±2.588.8±1.4(+8.8)92.0±1.9(+12.0)59.1±1.166.7±1.3(+7.6)71.5±1.9(+12.4)
LeWM Reacher98.4±0.798.8±0.8(+0.4)100.0±0.0(+1.6)75.6±0.975.3±1.5(−0.3)77.6±0.6(+2.0)
LeWM TwoRoom93.6±1.393.2±1.2(−0.4)91.2±0.5(−2.4)80.7±0.879.7±1.0(−1.0)79.0±0.7(−1.7)
TS PushT68.4±2.381.6±2.5(+13.2)91.6±1.9(+23.2)49.4±1.255.9±1.1(+6.5)66.1±1.3(+16.7)
DINO-WM PushT76.7±3.577.3±5.2(+0.7)81.3±4.7(+4.7)58.9±2.259.7±5.0(+0.8)63.1±3.9(+4.2)
Visual corruptions
LeWM PushT (7)58.5±0.862.4±1.0(+3.9)68.5±0.6(+10.0)43.9±0.747.3±0.6(+3.5)52.9±0.5(+9.0)
LeWM Reacher (7)52.8±0.560.3±0.5(+7.5)70.8±0.7(+18.0)38.4±0.640.6±0.5(+2.2)47.2±0.8(+8.8)
LeWM TwoRoom (7)61.0±1.757.6±1.5(−3.4)57.2±1.5(−3.8)51.9±1.849.3±1.6(−2.6)49.3±1.5(−2.6)
TS PushT (7)47.8±1.558.3±1.2(+10.4)74.0±1.3(+26.1)34.0±1.338.2±1.1(+4.2)49.5±1.1(+15.6)
DINO-WM PushT (7)45.3±3.057.1±4.5(+11.8)58.8±3.2(+13.4)34.2±2.442.7±4.0(+8.5)44.8±2.5(+10.6)
Environment shifts (TS)
PushT recolors (3)38.1±1.740.8±1.6(+2.7)55.2±0.8(+17.1)27.4±1.126.9±0.6(−0.5)36.4±0.8(+9.0)
PushObj shapes (3)34.7±1.655.2±2.0(+20.5)58.3±1.9(+23.6)24.5±1.038.2±1.7(+13.7)43.0±1.3(+18.5)
Maze dynamics (2)85.6±1.787.6±2.0(+2.0)89.2±1.4(+3.6)66.5±1.168.2±1.3(+1.7)68.8±1.2(+2.3)

Success rate in percent, mean ± standard error over seeds. Final is the success rate after the last of 30 replanning steps; Mean over replans averages cumulative success over all 30 steps, so it rewards solving tasks early. Parentheses give the gain over the frozen model. Visual-corruption rows average four severity levels (DINO-WM: one level, three seeds). TS is temporal straightening.

Which objective should guide test-time adaptation for planning?

Latent world models are pre-trained offline and kept frozen at test time, so planning with them degrades under distribution shift. Test-time adaptation updates the model during deployment, in a closed loop: the planner acts on the model's rollouts, and the resulting transitions drive the next update. Under a prediction-only objective the model is fit only to the outcomes of its own actions, so it can remain wrong about the actions that would reach the goal, and low prediction error need not translate into better planning.

Optimistic test-time adaptation

OpTTA formulates test-time adaptation as task-aware, optimistic model estimation, inspired by reward-biased maximum likelihood from adaptive control. Optimism enters through the estimation objective itself, without confidence sets or explicit uncertainty estimates, and the objective assumes no particular world-model architecture or planner.

$$\mathcal{L}_{\mathrm{OpTTA}} \;=\;\underbrace{\mathcal{L}_{\mathrm{pred}}(\mathcal{B})}_{\text{prediction loss on observed transitions}} \;+\;\underbrace{\alpha_k\,\mathcal{L}_{\mathrm{plan}}(\mathcal{P}_\theta)}_{\text{goal-reaching cost of the candidate rollouts}}$$
$$\begin{aligned}\mathcal{L}_{\mathrm{OpTTA}} \;=\;{}&\underbrace{\mathcal{L}_{\mathrm{pred}}(\mathcal{B})}_{\text{prediction loss on observed transitions}}\\[1.1em] {}+{}&\underbrace{\alpha_k\,\mathcal{L}_{\mathrm{plan}}(\mathcal{P}_\theta)}_{\text{goal-reaching cost of the candidate rollouts}}\end{aligned}$$
  • Prediction termLatent prediction loss on the buffer \(\mathcal{B}\) of recent observed transitions; it keeps the model estimate grounded in what was observed. \(\alpha_k=0\) is prediction-only adaptation (AdaJEPA).
  • Planning termAverage goal-reaching cost of the planner's candidate rollouts \(\mathcal{P}_\theta\), differentiated with respect to the model parameters with the actions held fixed. It favors models under which those rollouts reach the goal, with no additional environment interaction.
  • Optimism weightSet by gradient balancing with a ramp that limits optimism early and increases it over replanning steps. \(\rho=1\) in every experiment.
    \(\displaystyle \alpha_k=\rho\sqrt{k/K_{\max}}\;\frac{\|\nabla\mathcal{L}_{\mathrm{pred}}\|}{\|\nabla\mathcal{L}_{\mathrm{plan}}\|+\varepsilon}\)

How optimism changes adaptation

Planning success and the model's optimism, the ratio of predicted to actual goal distance, versus replanning step. LeWM Reacher (top, gamma 1.5) and temporal-straightening PushT (bottom, darkening 0.85), predictor adapted; mean ± s.e. over three seeds. The paper's full diagnostics also report the prediction loss on the agent's own transitions and on the dataset's start-to-goal trajectory.

The advantage does not come from fitting the agent's own experience better: OpTTA's prediction loss on the transitions it executes is not consistently lower. Its model is more accurate on the goal-reaching trajectory on Reacher and more optimistic about its chosen plan on both tasks. Planning with an optimistic model either reaches the goal or produces transitions that the prediction loss then uses to correct the model.

Conclusion

Across three JEPA world models, both adaptation scopes, visual and environment shifts, and CEM and gradient-based planners, OpTTA improves final success over prediction-only adaptation in most settings. World-model adaptation should account for the downstream planning objective rather than prediction alone, and optimism offers a simple way to do so. Limitations: on TwoRoom neither objective improves over the pretrained model, and OpTTA adds computation per replan.

BibTeX

@article{mete2026optta,
  title   = {Adapt for Planning, Not Just Prediction: Optimistic Test-Time World Model Adaptation},
  author  = {Mete, Akshay and Kalathil, Dileep and Kumar, P. R.},
  journal = {arXiv preprint arXiv:2610.35636},
  year    = {2026}
}