Manuscript Offprint
arXiv:2610.41041Before We Adapt: The Zero-Shot Generalization Bottleneck in Continual World Models
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Continual reinforcement learning (CRL) requires agents to operate under environmental changes while reusing prior knowledge whenever possible. We argue that model-based reinforcement learning provides a promising framework for this setting because learned world models (WMs) can, in principle, support change detection, knowledge reuse, adaptation, and acquisition of new knowledge. However, such benefits depend heavily on whether the learned model can generalize beyond the contexts in which it was trained. In this work, we propose to formulate this problem with a contextual Markov decision process in which context is decomposed into behavioral and physical components. This view organizes continual WM learning into reuse, adaptation, and acquisition of new knowledge. As a first step, we study direct reuse when behavioral rules remain unchanged. Using Dyna-Q and TD-MPC in controlled FourRooms tasks, we find that zero-shot reuse can degrade substantially under physical-context changes and that this behavior depends strongly on the observation representation used by the WM. Additional ablation studies and latent-space diagnostics suggest that learned representations do not automatically provide the invariances needed for reuse. These results identify representation generalization as an important bottleneck for reliable world-model reuse in CRL.
1 Introduction
Continual reinforcement learning (CRL) considers a setting in which an agent continuously interacts with its environment and encounters changing tasks or conditions over time [Khetarpal et al., 2022, Abel et al., 2023]. Effective continual agents should not simply relearn after every such change. Instead, they should preserve previously acquired knowledge and determine whether it can be reused directly, adapted with limited additional learning, or whether genuinely new knowledge must be acquired. Achieving this requires addressing several challenges, including catastrophic forgetting, the stability-plasticity dilemma, limited interaction budgets, and detecting when the environment has changed [Ahn et al., 2025, Tang et al., 2025, Hu et al., 2025, Zuffer et al., 2025].
Model-based reinforcement learning (MBRL) provides a promising foundation for enabling these capabilities through learned world models. By learning an internal world model (WM) of the environment, an agent can reason about the consequences of its actions and generate imagined experience, reducing its dependence on costly interaction [Ha and Schmidhuber, 2018, M. Moerland et al., 2023]. More importantly, a learned WM can also provide signals of environmental change when new observations become inconsistent with its predictions [Zollicoffer et al., 2026]. Furthermore, previously learned dynamics provide a form of knowledge that should not need to be relearned
40th Conference on Neural Information Processing Systems (NeurIPS 2026). Workshop: Continual World Models.
whenever the environment changes. Recent work has begun to explore world models for CRL, for example by using online world models [Liu et al., 2025], or considering a generative model as a replay buffer [Fu et al., 2025] to reduce catastrophic forgetting across sequential tasks. However, model-based continual reinforcement learning remains comparatively less studied than its model-free counterpart [Zuffer et al., 2025].
To study these capabilities, we need a formulation that captures the relationships among tasks encountered over time. We view continual learning as interaction with a contextual world, rather than as a sequence of completely independent Markov decision processes (MDPs). Different tasks correspond to different contexts and may share different amounts of structure. A contextual MDP provides a natural way to describe these relationships [Hallak et al., 2015]. This view allows us to distinguish changes in the underlying behavioral rules, such as action effects, motion rules, or reward mechanisms, from changes in their physical realization, such as layout, geometry, or spatial location. How much of this structure remains shared with previous experience can then guide whether existing knowledge should be reused, adapted, or replaced by newly learned knowledge.
This perspective makes generalization a prerequisite for knowledge reuse. If a new task preserves behavioral rules that have already been learned, a world model should remain useful even when their physical realization changes. However, this requires its predictions and representations to generalize beyond the exact states and contexts encountered during training. If they instead encode context-specific information that is not relevant to the shared behavioral rules, even a task that should allow direct reuse may require substantial relearning. Generalization is therefore central to whether previously learned WM knowledge can actually be reused.
In this work, we develop this perspective using a contextual MDP formulation that separates behavioral and physical sources of task variation and organizes continual WM learning into three regimes: reuse, adaptation, and acquisition of new knowledge. We focus experimentally on the first and most favorable regime, where behavioral rules remain shared and previously learned dynamics should be reusable without further learning. Using Dyna-Q [Sutton, 1991] and TD-MPC [Hansen et al., 2022] in controlled FourRooms tasks, we find that zero-shot reuse can degrade substantially under physical-context changes and that this behavior depends strongly on the observation or learned representation. These results identify the ability to learn context-robust representations as an important requirement for reliable WM reuse.
We decompose context as , where denotes behavioral context and denotes physical context. Behavioral context represents the rules governing how the environment responds to the agent, whereas physical context represents how those rules are instantiated in a particular task, including its geometry, layout, and spatial configuration. This decomposition describes the type of context change, while allowing either context component to affect the transition, reward, or observation mechanisms.
This view suggests three learning regimes for continual world models. When relevant behavioral structure remains valid across a context change, previously learned knowledge may be directly reused. When only part of the relevant structure remains applicable, prior knowledge should support efficient adaptation. When a context introduces previously unseen behavioral structure, the model must acquire new knowledge while preserving previously learned structure. These regimes depend on the structure shared between the current context and prior experience.
In our preliminary study, we examine the reuse regime in a contextual FourRooms environment by changing physical context while keeping behavioral context fixed. A detailed example of this construction is provided in Appendix B. We then ask whether learned world models generalize sufficiently across these physical-context changes to support knowledge reuse.
3 Preliminary study of world models' zero-shot generalization
Zero-shot generalization of world models remains relatively underexplored in continual model-based RL. Closest to our setting, Prasanna et al. [2024], Röder et al. [2026] study DreamerV3 [Hafner et al., 2025] and propose context-aware extensions in which context is either provided or inferred. Our goal is different. Rather than focusing on a single architecture or proposing a remedy, we investigate which factors contribute to poor reuse through ablations over physical context and observation representation. Our decomposition of physical and behavioral context also lets us study cases where behavioral rules remain shared while physical context changes.

Figure 1: Zero-shot one-step dynamics generalization across the four FourRooms contexts for three observation representations. Results are shown for Dyna-Q and TD-MPC and averaged over actions, agent directions, and six seeds. Colors indicate the log generalization gap relative to each model's training-context error. Position + direction contains the agent's global position and orientation, distance contains local distances from obstacles in the agent's relative directions, and combined contains both types of information.
We evaluate Dyna-Q [Sutton, 1991] and TD-MPC [Hansen et al., 2022], training each model in one FourRooms context and evaluating it zero-shot in the other rooms without parameter updates. We report the log generalization gap , where prediction error is normalized by the corresponding mean training-context error; positive values indicate degradation relative to the training baseline. We compare three observation representations to examine how representation affects reuse. Full environment, training, and evaluation details are provided in Appendix C.
Figure 1 shows that zero-shot generalization depends strongly on how the environment is represented. With position + direction, both methods show increased prediction error in unseen rooms, especially as observations move further outside the training range. Part of this degradation may arise from the representation itself, since spatial translation changes the global coordinates even when the local dynamics remain unchanged. In contrast, distance-based observations remain substantially more stable, while the combined representation shows intermediate behavior. This suggests that sensitivity to physical-context variation is an important contributor to the reuse bottleneck. The distance representation should, however, be viewed as an optimistic reference because it is designed to be less sensitive to the spatial translations considered here. Real observations are more likely to mix context-stable and context-dependent information, which is approximated by the combined representation.
The FourRooms comparison changes both spatial location and layout, so it does not fully separate coordinate extrapolation from changes in local geometry. Appendix D.1 therefore includes controlled translation-only and layout-only changes. The translation conditions provide a cleaner test of reuse by keeping the layout and behavioral rules fixed. Some error under layout changes is expected because new obstacle locations are not explicitly available from position-based observations. From a continual learning perspective, this is still the most favorable regime, since the relevant behavioral knowledge has already been learned. Our results therefore suggest that successful reuse depends strongly on the representation. This issue also appears in learned representations. TD-MPC diagnostics in Appendix D.2 show that linear probes trained on the training context do not always transfer to new contexts, and that representations of matched states can become less aligned after a context shift. Reliable world model reuse therefore requires representations that preserve shared behavioral structure while being less sensitive to irrelevant physical variation.
4 Discussion and conclusion
We view continual world model learning through three regimes, reuse, adaptation, and acquisition of new knowledge. Our contextual MDP view provides a common way to describe these cases. A task change can be treated as a change in context, and the amount of useful structure shared with previous experience can guide how prior knowledge should be used. In this work, we focused on the most favorable case, where behavioral rules remain shared, and previously learned dynamics should be reusable. Our results show that even this case can be difficult when the representation is sensitive to changes in physical context. More invariant observations generalize considerably better, while the representations learned by TD-MPC do not automatically remove this dependence. This suggests that reliable reuse requires representations that preserve shared behavioral structure while being less sensitive to physical changes that are not relevant to that structure.
This observation also changes how we think about the role of representation learning in continual world models. Learning a latent state does not by itself guarantee that information useful across contexts will be represented in a stable way. A useful continual representation should preserve the parts of the environment that remain valid across tasks while allowing context-specific information to change. Our results therefore motivate further study of context-invariant or factorized representations, although how such structure should be learned without removing information needed for prediction remains an open question. World model prediction errors may also provide useful signals for detecting when the current context has changed and when previously learned knowledge is no longer sufficient.
Several important parts of the framework remain to be studied. We plan to extend the evaluation to DreamerV3 and other modern world model approaches and to include changes in behavioral context, where zero-shot reuse may no longer be sufficient. We also plan to study how an agent can detect context changes, estimate how much previous knowledge is still useful, and adapt when only part of the learned structure remains valid. When genuinely new knowledge must be learned, plasticity becomes important, but it must be balanced with preserving previously acquired knowledge and avoiding negative transfer. Another direction is to identify which parts of current world model agents, including encoders, latent dynamics models, recurrent components, and planners, are most responsible for these limitations. Together, these questions move toward world models that can make better use of previous experience as their context changes over time.
Acknowledgments and Disclosure of Funding
We thank Benoit Boulet for his valuable support during this work. The authors received no external funding for this work.
References
David Abel, Andre Barreto, Benjamin Van Roy, Doina Precup, Hado van Hasselt, and Satinder Singh. A definition of continual reinforcement learning. In A. Oh, T. Naumann, A. Globerson, K. Saenko, M. Hardt, and S. Levine, editors, Advances in Neural Information Processing Systems, volume 36, pages 50377–50407. Curran Associates, Inc., 2023. doi: 10.52202/075280-2192.
Hongjoon Ahn, Jinu Hyeon, Youngmin Oh, Bosun Hwang, and Taesup Moon. Prevalence of negative transfer in continual reinforcement learning: Analyses and a simple baseline. In The Thirteenth International Conference on Learning Representations, 2025.
Abdulaziz Alyahya, Abdallah Al Siyabi, Markus R. Ernst, Luke Yang, Levin Kuhlmann, and Gideon Kowadlo. ARROW: Augmented replay for RObust world models. Transactions on Machine Learning Research, 2026. ISSN 2835-8856.
Michael Beukman, Devon Jarvis, Richard Klein, Steven James, and Benjamin Rosman. Dynamics generalisation in reinforcement learning via adaptive context-aware policies, 2023.
Haotian Fu, Shangqun Yu, Michael Littman, and George Konidaris. Model-based lifelong reinforcement learning with bayesian exploration. Advances in Neural Information Processing Systems, 35: 32369–32382, 2022.
Haotian Fu, Yixiang Sun, Michael Littman, and George Konidaris. Knowledge retention in continual model-based reinforcement learning. In Aarti Singh, Maryam Fazel, Daniel Hsu, Simon Lacoste-Julien, Felix Berkenkamp, Tegan Maharaj, Kiri Wagstaff, and Jerry Zhu, editors, Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pages 17832–17851. PMLR, 13–19 Jul 2025.
David Ha and Jürgen Schmidhuber. World models. arXiv preprint arXiv:1803.10122, 2(3):440, 2018.
Danijar Hafner, Jurgis Pasukonis, Jimmy Ba, and Timothy Lillicrap. Mastering diverse control tasks through world models. Nature, pages 1–7, 2025.
Assaf Hallak, Dotan Di Castro, and Shie Mannor. Contextual markov decision processes. arXiv preprint arXiv:1502.02259, 2015.
Nicklas Hansen, Xiaolong Wang, and Hao Su. Temporal difference learning for model predictive control. International Conference on Machine Learning, 2022.
Jinwu Hu, ZiHao Lian, Zhiquan Wen, Chenghao Li, Guohao Chen, Xutao Wen, Bin Xiao, and Mingkui Tan. Continual knowledge adaptation for reinforcement learning. In D. Belgrave, C. Zhang, H. Lin, R. Pascanu, P. Koniusz, M. Ghassemi, and N. Chen, editors, Advances in Neural Information Processing Systems, volume 38, Main Conference, pages 36283–36313. Curran Associates, Inc., 2025. doi: 10.52202/085713-1219.
Yizhou Huang, Kevin Xie, Homanga Bharadhwaj, and Florian Shkurti. Continual model-based reinforcement learning with hypernetworks. In IEEE International Conference on Robotics and Automation (ICRA), 2021.
Michael Janner, Justin Fu, Marvin Zhang, and Sergey Levine. When to trust your model: Model-based policy optimization, 2021.
Samuel Kessler, Mateusz Ostaszewski, Michał Paweł Bortkiewicz, Mateusz Żarski, Maciej Wolczyk, Jack Parker-Holder, Stephen J. Roberts, and Piotr Miłoś. The effectiveness of world models for continual reinforcement learning. In Sarath Chandar, Razvan Pascanu, Hanie Sedghi, and Doina Precup, editors, Proceedings of The 2nd Conference on Lifelong Learning Agents, volume 232 of Proceedings of Machine Learning Research, pages 184–204. PMLR, 22–25 Aug 2023.
Khimya Khetarpal, Matthew Riemer, Irina Rish, and Doina Precup. Towards continual reinforcement learning: A review and perspectives. Journal of Artificial Intelligence Research, 75:1401–1476, 2022.
Robert Kirk, Amy Zhang, Edward Grefenstette, and Tim Rocktäschel. A survey of zero-shot generalisation in deep reinforcement learning. Journal of Artificial Intelligence Research, 76:201–264, January 2023. ISSN 1076-9757. doi: 10.1613/jair.1.14174.
James Kirkpatrick, Razvan Pascanu, Neil Rabinowitz, Joel Veness, Guillaume Desjardins, Andrei A Rusu, Kieran Milan, John Quan, Tiago Ramalho, Agnieszka Grabska-Barwinska, et al. Overcoming catastrophic forgetting in neural networks. Proceedings of the national academy of sciences, 114 (13):3521–3526, 2017.
Kimin Lee, Younggyo Seo, Seunghyun Lee, Honglak Lee, and Jinwoo Shin. Context-aware dynamics model for generalization in model-based reinforcement learning, 2020.
Zichen Liu, Guoji Fu, Chao Du, Wee Sun Lee, and Min Lin. Continual reinforcement learning by planning with online world models. In Aarti Singh, Maryam Fazel, Daniel Hsu, Simon Lacoste-Julien, Felix Berkenkamp, Tegan Maharaj, Kiri Wagstaff, and Jerry Zhu, editors, Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pages 38397–38423. PMLR, 13–19 Jul 2025.
Thomas M. Moerland, Joost Broekens, Aske Plaat, and Catholijn M. Jonker. Model-based reinforcement learning: A survey. Foundations and Trends in Machine Learning, 16(1):1–118, 2023.
Lucas Maes, Quentin Le Lidec, Damien Scieur, Yann LeCun, and Randall Balestriero. Leworldmodel: Stable end-to-end joint-embedding predictive architecture from pixels, 2026. URL https://arxiv.org/abs/2603.19312.
Sai Prasanna, Karim Farid, Raghu Rajan, and André Biedenkapp. Dreaming of many worlds: Learning contextual world models aids zero-shot generalization, 2024.
Ali Rahimi-Kalahroudi, Janarthanan Rajendran, Ida Momennejad, Harm van Seijen, and Sarath Chandar. Replay buffer with local forgetting for adapting to local environment changes in deep model-based reinforcement learning. In Conference on Lifelong Learning Agents, pages 21–42. PMLR, 2023.
Frank Röder, Jan Benad, Manfred Eppe, and Pradeep Banerjee. Dynamics-aligned latent imagination in contextual world models for zero-shot generalization. Advances in Neural Information Processing Systems, 38:72736–72771, 2026.
Jonathan Schwarz, Wojciech Czarnecki, Jelena Luketina, Agnieszka Grabska-Barwinska, Yee Whye Teh, Razvan Pascanu, and Raia Hadsell. Progress & compress: A scalable framework for continual learning. In International conference on machine learning, pages 4528–4537. PMLR, 2018.
Yutaka Shimizu and Masayoshi Tomizuka. Bisimulation metric for model predictive control, 2024.
Richard S. Sutton. Dyna, an integrated architecture for learning, planning, and reacting. SIGART Bull., 2(4):160–163, July 1991. ISSN 0163-5719. doi: 10.1145/122344.122377.
Hongyao Tang, Johan Obando-Ceron, Pablo Samuel Castro, Aaron Courville, and Glen Berseth. Mitigating plasticity loss in continual reinforcement learning by reducing churn. In Aarti Singh, Maryam Fazel, Daniel Hsu, Simon Lacoste-Julien, Felix Berkenkamp, Tegan Maharaj, Kiri Wagstaff, and Jerry Zhu, editors, Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pages 58883–58904. PMLR, 13–19 Jul 2025.
Geigh Zollicoffer, Tanush Chopra, Mingkuan Yan, Xiaoxu Ma, Kenneth Eaton, and Mark Riedl. World model robustness via surprise recognition. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 3146–3155, 2026.
Amara Zuffer, Michael Burke, and Mehrtash Harandi. Advancements and challenges in continual reinforcement learning: A comprehensive review. arXiv preprint arXiv:2506.21899, 2025.
A Detailed definition of contextual continual world model formulation
We consider a contextual family of environments , where , and are the global state, action, and observation spaces, is the context space, , and define the transition, reward, and observation mechanisms across contexts, and is a distribution over contexts.
We decompose the context as , where is the behavioral context and is the physical context. Behavioral context describes the rules governing how the environment responds to the agent, while physical context describes how these rules are instantiated in a particular environment. Either type of context change may affect the transition, reward, or observation mechanisms.
The state, action, and observation spaces of a task can depend on its context. We represent them using the set-valued mappings , , and . For a context , the corresponding task-specific spaces are therefore , , and . These spaces do not need to be disjoint, so different tasks may share states, actions, or observations. A context induces a task , which we write as
The task-specific mechanisms are obtained by fixing the context: , , and . Thus, the context determines both the spaces that are valid for a task and its transition, reward, and observation mechanisms.
A continual learning problem consists of a context sequence , with and , which induces the task sequence , where . We do not assume that the contexts are independent or identically distributed. More generally, the context at task may depend on previous contexts through . For a finite task sequence, this can be written as
Independent sampling from the CMDP context distribution is a special case in which . Since , a change between task sequences can occur in three ways:
The transition, reward, and observation functions may in general depend on both context components, i.e., , , and . However, a change in context does not require all of these functions to change. For example, a function can remain unchanged with respect to physical context if its value is the same for different while is fixed, and similarly for behavioral context. Therefore, each task change may affect only some of the task-specific spaces or functions, while the remaining parts can be shared across tasks.
B FourRooms contextual-world example
Figure 2 illustrates how the contextual-world formulation is instantiated in FourRooms. Each room can be viewed as a task with its own physical context , while the underlying behavioral context can remain shared. Physical context may vary through spatial location, layout, or obstacle configuration, whereas the rules governing actions and rewards remain unchanged. For example, the action forward follows the same rule in every context. The agent moves one cell when the target cell is free and remains in place when it is blocked.
C Experimental details
Environment. We use a contextual version of the FourRooms environment. The environment and the position + direction observation follow the continual model-based RL setup of Fu et al. [2025],

Figure 2: Contextual FourRooms example. Tasks may differ in physical context while sharing behavioral rules . When the relevant behavioral structure remains applicable, this corresponds to the reuse regime in which previously learned knowledge should remain useful rather than being learned again from scratch.
while we modify the task contexts and evaluation procedure to study zero-shot generalization. The transition dynamics are deterministic. The agent can turn left, turn right, or move forward by one grid cell; forward movement succeeds when the target cell is free and otherwise leaves the agent in place. We use the same dense reward mechanism across contexts, , where . Thus, action semantics, motion rules, and the reward mechanism remain shared while physical properties such as spatial location, layout, and obstacle configuration may vary.
We evaluate three observation representations. The position + direction observation is , where is the agent's global position and its orientation. The global coordinates are min-max normalized to using fixed global bounds and clipped to this range. The distance observation is , where the four distances are measured to the nearest obstacle or room boundary in each relative direction and normalized by , with room size . The combined observation is , and therefore contains both global-position and local-distance information. The distance representation is less sensitive to global spatial translation, while the combined representation mixes both global and local information. The position + direction representation is not invariant to spatial translation. Under this observation, translating the environment changes and may move observations outside the range seen during training, even when the underlying behavioral rules remain unchanged. Thus, some degradation under translation may arise from the representation choice itself. Under position + direction observations, the locations of newly introduced obstacles are also not explicitly provided to the model.
Training protocol. Dyna-Q and TD-MPC are trained only in the room00 context. For each algorithm and observation representation, we train six models using random seeds for 100,000 environment steps. During evaluation, all model parameters are frozen, and no adaptation or fine-tuning is performed in the test contexts. The hyperparameters used for both methods are summarized in Table 1. The planning horizon remains fixed at 3 throughout training.
Linear schedules. We use the notation linear for a schedule that linearly interpolates from to over environment steps and remains at afterward. The standard-deviation schedule is
Table 1: Training and model hyperparameters used for Dyna and TD-MPC.
| Hyperparameter | Value |
|---|---|
| Dyna | |
| Total timesteps | 100,000 |
| Q-network learning rate | |
| Dynamics-model learning rate | |
| Learning starts | 5,000 |
| Training frequency | 4 |
| Batch size | 128 |
| Discount factor () | 0.99 |
| Target-network update frequency | 1,000 |
| Replay-buffer capacity | 100,000 |
| Initial exploration rate | 1.0 |
| Final exploration rate | 0.05 |
| Exploration fraction | 0.2 |
| Planning steps | 3 |
| Q-network hidden dimensions | [120, 84] |
| Dynamics-model hidden dimensions | [128, 128] |
| TD-MPC | |
| Total timesteps | 100,000 |
| Episode-buffer capacity | 10,000 |
| Transition-buffer capacity | 100,000 |
| Latent dimension | 50 |
| MLP hidden dimension | 256 |
| Warm-up steps | 5,000 |
| Planning horizon | 3(fixed) |
| Planning samples | 512 |
| Planning elites | 32 |
| Planning optimization iterations | 6 |
| Mixture coefficient | 0.05 |
| Temperature | 0.5 |
| Momentum | 0.1 |
| Minimum standard deviation | 0.05 |
| Standard-deviation schedule | linear(1.0, 0.1, 250000) |
| Batch size | 128 |
| Learning rate | |
| Discount factor | 0.99 |
| Update frequency | 1,000 |
| Target update coefficient () | 0.01 |
| Gradient clipping norm | 1000 |
| 0.99 | |
| Consistency-loss coefficient | 1.0 |
| Reward-loss coefficient | 1.0 |
| Value-loss coefficient | 1.0 |
linear(1.0, 0.1, 250000). Since training lasts 100000 environment steps, only the first part of this schedule is used.
Generalization regimes. We organize the four base rooms according to how their spatial observation support relates to the training room. room00 is the in-distribution reference, since it is the context used during training. room10 and room01 form an intermediate regime where one spatial coordinate lies in a range related to the training context while the other moves outside it. Finally, room11 provides the full extrapolation case, in which both spatial dimensions lie outside the training range. The layouts also differ between these rooms; controlled translation-only and layout-only experiments in Appendix D.1 are used for more investigation.
One-step dynamics evaluation. For every valid state in an evaluation context, we test the three actions {left, right, forward} for all four agent directions. For Dyna-Q, next-state prediction error is measured in observation space. TD-MPC predicts in its learned latent space, so its predicted latent next state is compared with the encoding of the true next observation. We use mean squared error (MSE) as the one-step dynamics error. Because the two methods operate in different representation spaces, we do not compare their raw MSE values directly.
Generalization gap. For each trained run and action, we first compute the mean one-step dynamics error over the complete training context, . For an evaluated state with error , we report . Positive values indicate higher error than the training-context average and negative values indicate lower error. Importantly, individual cells in the training-context heatmap are not expected to equal zero because each cell is normalized by the mean error over the whole training context rather than by its own error. For the reported heatmaps, values are averaged over agent directions and seeds and then equally across the three actions.
Evaluation contexts. In addition to the four base FourRooms tasks shown in the main paper, we use controlled physical-context changes to separate different sources of generalization error. Positions are expressed in grid-cell coordinates, and each room has size . Context offsets are converted to global-coordinate offsets by multiplying them by . Thus, adjacent base rooms are separated by 13 grid cells along the corresponding axis. The two translation-only conditions preserve the training layout, obstacles, and behavioral rules while shifting the global coordinates by and grid cells along the -axis, respectively. The layout condition changes the obstacle layout while keeping the original spatial location. Finally, the combined (layout + translation) condition changes both. The translation-only conditions therefore isolate sensitivity to global spatial translation while preserving the local environment structure.
D Complementary generalization results
D.1 Controlled physical-context shifts
The FourRooms results in the main text show that generalization depends strongly on the observation representation, but the unseen rooms change both spatial location and layout. We therefore use controlled physical-context shifts to separate these effects. Figures 3 and 4 show the results for Dyna-Q and TD-MPC, respectively.
The translation conditions provide the cleanest comparison because the layout, obstacles, action rules, and reward mechanism are unchanged. Only the global spatial realization differs from training. Position + direction observations become increasingly sensitive to these shifts, while the distance-based representation remains considerably more stable. This supports the main-text observation that generalization depends on whether the representation contains information tied to a particular physical context.
The layout condition tests a different source of change. Here the global spatial region remains the same, but obstacle locations differ from training. Errors around changed obstacles are expected because their new locations are not explicitly represented by position + direction observations. This case therefore measures both reuse of the shared motion rules and the difficulty of predicting transitions under previously unseen geometry.
The combined (layout + translation) condition combines both sources of difficulty. The model must operate in a new spatial region while also encountering a different local geometry. We therefore interpret this condition as a harder physical context change rather than as a pure test of coordinate extrapolation.
D.2 TD-MPC latent representation diagnostics
Because TD-MPC predicts dynamics in a learned latent space, we further examine whether the learned representation preserves useful information across contexts. Table 2 summarizes the training targets and evaluation settings for the representation diagnostics. Direction and local-position probes are trained only on the training context and then evaluated unchanged in unseen contexts. Context decodability is instead a post-hoc diagnostic trained across contexts to test whether context identity can be recovered from the latent representation.

Figure 3: Controlled physical-context shifts for Dyna-Q across the three observation representations. Translation conditions preserve the training layout while changing its global spatial realization; the layout condition changes local geometry at the training location; and layout + translation changes both. Colors show the one-step dynamics generalization gap.
For all probe plots, individual points correspond to independently trained seeds, while the larger marker and error bar show the mean and 95% confidence interval across seeds. Below, we describe each probing experiment in more details.
Table 2: Summary of the TD-MPC latent-space diagnostics.
| Diagnostic | Probe input | Target | Metric |
|---|---|---|---|
| Context decoding | latent | room identity | accuracy |
| Direction transfer | latent | agent direction | accuracy |
| Position transfer | latent | normalized local | |
| Latent alignment | matched latent sets | – | Linear CKA |
Context decodability. We first ask whether the latent representation contains enough information to identify the room in which a state was observed. We pool latent vectors from the four base rooms (room00, room10, room01, and room11) and use the latent vector as input, , and the room identity as the classification target. We use an 80/20 stratified train/test split with random seed 42. The probe is a standardization layer followed by logistic regression with a maximum of 3000 iterations. Since there are four rooms, chance accuracy is 0.25. This probe measures whether context identity is linearly decodable from the latent representation; it is not a cross-context transfer test.
Direction transfer. We next ask whether the agent's direction is represented in a way that remains stable across contexts. A linear classifier is trained only on latent vectors from the training context, room00, with and the four-valued agent direction as the target. We again use an 80/20 split, stratified by direction, with random seed 42. The classifier consists of standardization followed by logistic regression with a maximum of 3000 iterations. We first report accuracy on the held-out part of room00. We then refit the probe using all room00 states and evaluate it on the unseen contexts without updating the probe. Chance accuracy is 0.25.

Figure 4: Controlled physical-context shifts for TD-MPC across the three observation representations. The experiments separate translation, layout change, and their combination while keeping the underlying action and reward rules fixed. Colors show the one-step dynamics generalization gap.
Local-position transfer. We similarly test whether local position is encoded consistently across contexts. The probe input is again the latent vector, , while the regression target is the normalized local position, , where is the room size. The same 80/20 split used for the direction probe is used here. We fit a standardization layer followed by ridge regression with regularization . After measuring performance on the held-out training states, the probe is refitted using all training-room states and transferred unchanged to the unseen contexts. We report the coefficient of determination, , in Fig. 5; corresponds to the constant-mean baseline, while negative values mean that the transferred probe performs worse than this baseline.
Latent alignment. The final diagnostic does not train a probe. Instead, we directly compare the geometry of latent representations between the training context and each unseen context. We match states that have the same local position and agent direction in both contexts and compare their latent matrices. We use linear centered kernel alignment (CKA), a similarity measure between two representations. A value near 1 indicates that the matched latent representations preserve very similar geometry, while lower values indicate that the representation changes across contexts. Only states that are valid in both contexts are included in this comparison.
Overall, the diagnostics show that learning a latent representation does not automatically make it invariant to physical context. The amount and stability of semantic information in TD-MPC's latent space depend on the observation representation and the evaluation context. At the same time, the stronger results with distance-based observations show that reliable reuse is possible when the input already removes much of the irrelevant physical variation. These results motivate representations that preserve shared behavioral structure while reducing sensitivity to physical changes that are not needed for predicting the reusable dynamics.
E Additional related work
This section reviews broader work in continual reinforcement learning, its intersection with model-based reinforcement learning, and zero-shot generalization.
Observation
○ Position + direction □ Distance △ Combined


Figure 5: Diagnostics of TD-MPC's learned latent representations. Direction and position probes are trained on the training context and transferred to unseen contexts without updating their parameters. Context decoding instead measures whether room identity is linearly recoverable from the learned representation. Points show individual seeds and larger markers show the mean with 95% confidence intervals. The results show that representation generalization depends strongly on the observation mode, with the largest failures under spatial translation occurring when the representation is built from absolute position information.
E.1 Model-based RL
Model-based reinforcement learning (MBRL) has recently shown strong performance across a wide range of single-task problems, making it a promising direction for building more general agents [M. Moerland et al., 2023]. Dyna [Sutton, 1991] as a classic algorithm, and Dreamer [Hafner et al., 2025], TD-MPC [Hansen et al., 2022], and methods based on joint-embedding predictive architectures (JEPA) [Maes et al., 2026] are examples of this growing family. These methods learn an internal model of the environment and use it for prediction, planning, or imagined experience. They mainly differ in how the world model is represented and how it is used for decision making. However, model errors can affect policy improvement and planning [Janner et al., 2021]. Most work in this direction focuses on strong performance within a single task, while reuse and generalization across a sequence of changing tasks have received less attention.
E.2 Continual model-based RL
Work at the intersection of continual reinforcement learning and model-based reinforcement learning has explored several ways of preserving and transferring knowledge across tasks. Replay-based approaches modify how previous experience is stored and sampled from the replay buffer, with the goal of reducing catastrophic forgetting while preserving plasticity for new tasks [Rahimi-Kalahroudi et al., 2023, Kessler et al., 2023, Fu et al., 2025, Alyahya et al., 2026]. Dual-architecture approaches maintain two different models, often with task-specific and task-agnostic roles, and transfer information between them when a new task is encountered [Huang et al., 2021, Fu et al.,
2022]. More recently, Liu et al. [2025] study continual RL directly through online world model learning and model predictive control, with the goal of learning new tasks while avoiding catastrophic forgetting.
More broadly, continual reinforcement learning has also been studied through regularization-based methods, which constrain parameter updates to preserve previously learned knowledge [Kirkpatrick et al., 2017], and network-expansion methods, which increase model capacity as new tasks arrive and dedicate additional parameters to learning them [Schwarz et al., 2018].
Many of these approaches assume that task boundaries are known. In contrast, a learned world model may provide useful signals for detecting changes when new observations become inconsistent with its predictions. Dual-architecture methods are particularly related to our perspective, since a task-agnostic component may support transfer and retention across tasks. However, our view also asks whether a new learning phase is needed at all. When previously learned behavioral knowledge is still applicable, the world model should ideally be reused directly rather than relearned or adapted unnecessarily.
E.3 Zero-shot generalization in (deep) RL
Prior studies of the zero-shot generalization problem in RL agents mainly focus on model-free approaches Kirk et al. [2023]. Most of the work in this direction tries to incorporate a definition of 'context' (long-term properties of the environment, which is fixed during a learning episode) in their methods and model their problem in a Contextual Markov Decision Process (CMDP) Hallak et al. [2015]. Agents learn a task under a specific defined context. To measure an agent's generalization, it is then tested in turn under an unseen new context. Train and test contexts in most cases share structure and similar properties, and the agent is supposed to leverage this shared structure from the learned task to unseen ones. Methods in this direction mostly differ in how they try to use the context and also their access level to context in the environment (fully observable or they need to be inferred). Recently, model-based approaches have also considered this setting. Prasanna et al. [2024] assume access to context information and, after observing weak zero-shot generalization of Dreamer, introduce a contextual version of the model. Röder et al. [2026] instead infer context through a self-supervised module. Related work has also used context inference with policy-learning methods [Lee et al., 2020] or hypernetworks that condition model parameters on observed context [Beukman et al., 2023].
Our focus is complementary to these approaches. Rather than proposing a context-aware mechanism, we study why previously learned world-model knowledge may fail to transfer. We separate physical and behavioral context and use controlled changes in physical context and observation representation to study which factors limit zero-shot reuse in continual RL.
Another line of work studies invariant representation learning. These methods aim to preserve task-relevant information while reducing sensitivity to variations that should not affect the agent's behavior. This can improve generalization when different tasks share common structure. Shimizu and Tomizuka [2024], for example, introduce bisimulation-based representation learning for TD-MPC to encourage more robust latent representations. However, the zero-shot generalization of this method across contextual changes has not been studied directly. This direction is closely related to our observation that reliable reuse depends strongly on whether the representation preserves shared behavioral structure across physical-context changes.