arXiv:2610.32414cs.LGOct 2026

Manuscript Offprint

arXiv:2610.32414

When Does Dynamics Randomization Test Context Inference?

Oleg Smirnov, Sofiane Ennadir, John Pertoft, Bjartur Hjaltason, Sara Karimi

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.

Oleg Smirnov

King AI Labs, Microsoft Gaming

oleg.smirnov@microsoft.com

John Pertoft

King AI Labs, Microsoft Gaming

john.pertoft@king.com

Sofiane Ennadir

King AI Labs, Microsoft Gaming

sofiane.ennadir@king.com

Bjartur Hjaltason

King AI Labs, Microsoft Gaming

bjartur.hjaltason@king.com

Sara Karimi

King AI Labs, Microsoft Gaming & KTH Royal Institute of Technology

sara.karimi@king.com

Abstract: Environments with randomized dynamics are widely used to ask whether world models need explicit context inference. However, randomization can leave little predictive information for a context encoder to add, because distinct latent parameters may produce similar transitions at visited states, or those states may already reveal the active context. We formalize the remaining one-step information as predictive headroom and compare kernels under fixed and visited state–action distributions to distinguish changes in query coverage from changes in context weights. We analyze discrete and continuous environments and find low headroom both when kernels differ little and when visitation reduces an otherwise large discrepancy. At the same time, resetting state components increases headroom, showing that context evidence accumulates in state. We propose reporting this headroom alongside the randomized parameters, so that gains from explicit context inference can be interpreted relative to the information missing from the current state and action.

1 Introduction

In model-based RL, environments with randomized dynamics are commonly used to test whether world models benefit from explicit context inference. Latent physical parameters, such as masses and forces, can vary across episodes, and models that infer the active context are compared against context-blind predictors. However, a benchmark can randomize parameters and still leave a context mechanism little predictive information to add.

Contextual MDPs formalize latent dynamics that vary across episodes [1, 2]. Online system identification conditions a policy on parameters inferred from recent experience [3]. Adaptive dynamics models [4] and context-aware predictors [5, 6] use experience to improve prediction under changing parameters. While those methods make predictive structure explicit, we quantify how much information about transitions the current state withholds before any such mechanism is added.

We identify two mechanisms that can reduce the remaining predictive information. First, kernels that differ substantially across the state space may differ little at the visited state–action pairs. A wall, for example, can block the displacement induced by wind. Second, the dynamics can make visited states already informative about the hidden parameter. For instance, a persistent force changes both position and velocity, so the current state can contain information accumulated over earlier transitions. Even a memoryless model can then use this evidence without a history encoder. A small gain from revealing the true context can thus reflect weak kernel differences or implicit identification.

We introduce an experimental diagnostic of context information under a given visitation. We compare transition kernels under a fixed reference and at visited state–action pairs using prior context weights, then reweight contexts by visitation to estimate the remaining predictive headroom. We show, in discrete and continuous settings, that similar headroom can arise from differing kernel variation. We propose reporting this measure when comparing world models, because explicit context inference can add predictive information only where the inputs miss it.