Skip to content

ContextWorld: Benchmarking In-Context Dynamics Adaptation in Latent World Models

Guo An, Yuhao Yan, Zijing Wu, Honghua Dong, Yurong Ling

cs.LG

Abstract

Latent world models learn environment dynamics to predict future states from visual observations and action sequences. These dynamics are not always fixed, and interaction history can help models adapt their predictions to different conditions. Yet low prediction error does not necessarily indicate that models have learned to adapt from interaction history. We introduce ContextWorld, a benchmark for evaluating in-context dynamics adaptation in action-conditioned latent world models without weight updates. ContextWorld uses paired counterfactual evaluations that vary interaction histories while keeping the current observation and future actions fixed. This design measures both whether predictions distinguish the correct future and whether they benefit from the corresponding history. The benchmark spans nine tasks across four environments, with separate training and evaluation data. Evaluating three latent world models, LeWM, PLDM, and DINO-WM, reveals that models trained under fixed dynamics make little use of interaction history on most tasks. Training with multiple dynamics can improve adaptation, but the effectiveness of data scaling and training strategies varies substantially across tasks. We further find that training loss can decrease while models still fail to capture dynamics from interaction history, even on the training distribution. These findings expose a gap between optimizing prediction loss and in-context dynamics adaptation, highlighting the need to evaluate whether models use interaction history to adapt their predictions.

Create a lesson