Manuscript Offprint
arXiv:2609.05834Learning Counterfactual World Models for Embodied Reasoning under Partial Observability
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
World models promise a general route to embodied intelligence: learn predictive dynamics once, then reason, plan, and act with them. Increasingly, the representations beneath such models are pretrained on large-scale video, interaction, and multimodal corpora, which raises a question prediction quality alone cannot answer: when is a learned representation actually actionable? We identify a failure mode we call counterfactual collapse: a model predicts visually plausible futures while failing to distinguish interventions with different behavioral consequences. This arises whenever a representation is optimized for perceptual similarity rather than intervention structure—precisely the objective under which most large-scale pretrained encoders are learned. We introduce Counterfactual Latent World Models (CLWM), which combine a recurrent belief-state encoder, action-conditioned latent dynamics, and a contrastive counterfactual objective that separates futures induced by distinct interventions even when their observations look alike. Across occluded manipulation, aliased navigation, and long-horizon manipulation, CLWM improves planning success over the strongest baseline (65.1% → 74.6% on Occluded Push and 67.3% → 78.9% on Aliased Maze) and reduces exploitative planning failures (18.4% → 9.7% on Deferred Kitchen), with ablations attributing the gains to hard counterfactual negatives, especially perceptual-alias negatives. Finally, our counterfactual separability metric—which tracks planning success across the five baseline model classes ()—is representation-agnostic: given intervention-outcome labels, it can audit any encoder—pretrained or trained from scratch—before a planner trusts it. We do not yet measure it on large-scale pretrained encoders (Section 8). Here we establish the metric and its relationship to planning success for world models trained from scratch.
1 Introduction
World models have become one of the most compelling paradigms for embodied intelligence. If an agent can learn how the world evolves, it can evaluate possible actions in imagination, plan before acting, and reuse the same learned dynamics across tasks. This idea underlies a broad family of model-based reinforcement learning systems, from latent-space planning from pixels to large-scale world-model agents that improve behavior by imagining future trajectories [Ha and Schmidhuber, 2018, Hafner et al., 2019, 2020, 2023, Hansen et al., 2024]. In robotics, world models are especially attractive because real-world interaction is expensive, dangerous, and difficult to reset [Wu et al., 2022].
However, embodied reasoning demands more than plausible prediction: an agent needs to know which aspects of the future would change under a different action. A model trained to reconstruct or predict observations can be excellent at perceptual forecasting yet insufficient for decision-making. In a corridor with aliased landmarks, moving left or right produces nearly identical short-horizon images while placing the agent in different regions of the map. In occluded manipulation, a push may
Preprint.
leave the visible pixels unchanged while determining whether a hidden object becomes reachable several steps later. We therefore argue that the next step for embodied world models is counterfactual sufficiency: the learned latent state should preserve the consequences of alternative interventions that are relevant to control. A model is counterfactually insufficient when two histories are close in representation because they predict similar observations even though the agent should act differently in them, or when two candidate actions remain close in imagined latent space because their near-term images look alike even though their long-horizon outcomes diverge. Such failures are particularly common under partial observability, where the current observation is not a Markov state.
This framing has a consequence beyond our own method. Counterfactual sufficiency is a property of any representation used for control, including representations pretrained on large-scale video, image-text, or interaction corpora and then adapted for decision making. Those corpora are fit with reconstruction, contrastive instance discrimination, or language alignment—objectives that reward perceptual and semantic similarity and contain no pressure to separate two futures that look alike but behave differently. There is thus no reason to expect a pretrained encoder to arrive counterfactually sufficient, and considerable reason to expect the opposite in exactly the settings—occlusion, aliasing, delayed contact—where embodied agents are deployed. We return to this in Section 7. Our counterfactual separability metric is intended to be usable as a standalone audit of an inherited representation, independent of the CLWM training objective.
We introduce Counterfactual Latent World Models (CLWM), which retain the strengths of modern latent world models—a recurrent belief encoder, stochastic latent dynamics, and imagination-based planning—but add a contrastive counterfactual objective over action-conditioned futures. The key idea is simple: when two interventions from the same belief state induce different downstream consequences, the model should separate their predicted latent futures even if their pixels are similar. Conversely, when different trajectories lead to the same intervention outcome, the representation should align them despite nuisance-level visual variation.
We make four contributions. First, we formalize counterfactual collapse as a failure mode of latent world models under partial observability. Second, we propose CLWM, which augments latent dynamics learning with contrastive counterfactual supervision over intervention-conditioned futures. Third, we introduce diagnostics for whether a world model preserves action-sensitive structure: counterfactual separability, intervention-outcome prediction, and model-exploitation rate. Fourth, we show empirically that CLWM improves planning by up to 11.6 success points and nearly halves exploitative planning failures across occluded manipulation, aliased navigation, and long-horizon manipulation, with ablations confirming that hard counterfactual negatives are the key source of the improvement.
Value equivalence and bisimulation. The value equivalence principle [Grimm et al., 2020], instantiated at scale by MuZero [Schrittwieser et al., 2020], holds that a model need only be correct about the quantities planning consumes. Bisimulation metrics [Ferns et al., 2004] and their deep variants [Gelada et al., 2019, Zhang et al., 2021] organize state abstractions by behavioral rather than perceptual equivalence. Counterfactual collapse is the belief-state, intervention-conditioned form of the same concern: rather than comparing on-policy states, we require imagined open-loop futures under alternative interventions from a common belief to remain separated whenever their outcomes differ. Our contribution is this counterfactual construction and the accompanying hard-negative mining, not the underlying principle that behavioral distinctions outrank perceptual ones.
Contrastive representation learning for control. Contrastive predictive coding [van den Oord et al., 2018] and CURL [Laskin et al., 2020] shape representations with temporal or augmentation-based contrast. Our objective (Eq. 11) takes the supervised contrastive form of Khosla et al. [2020], with intervention outcomes rather than augmentation identity defining the label structure. What distinguishes it is the negative construction—same-belief, perceptual-alias, and value-disagreement negatives—which our ablations show carries the empirical benefit.
Causal reasoning in reinforcement learning. We use interventional language [Pearl, 2009, Peters et al., 2017] in the operational sense of executing alternative open-loop action sequences from a common anchor. Related work learns causal world models by deconfounding physical dynamics [Li et al., 2020] or meta-learns causal reasoning [Dasgupta et al., 2019]. CLWM makes no identifiability claims: it preserves a task-indexed set of intervention distinctions rather than recovering a structural causal model.
Model exploitation. Planners exploit model error, especially outside the training distribution [Janner et al., 2019]. Our exploitation-rate metric quantifies this failure at deployment: episodes in which the planner selects an imagined future whose predicted value the environment does not realize.
3 Problem Setting
We consider a partially observable Markov decision process [POMDP; Kaelbling et al., 1998] with hidden state , action , observation , transition distribution , observation distribution , reward , and discount . Because is not Markov, an agent maintains a history or a learned belief state . A world model learns latent dynamics
where denotes a latent state sampled or inferred from the belief, and a planner selects actions by rolling out candidate futures in latent space.
The usual learning objective encourages the model to predict observations, rewards, and continuation values along observed trajectories. This is necessary but incomplete. For embodied reasoning, the relevant object is not only but the family of interventional futures
for alternative action sequences . A representation useful for planning should preserve distinctions among such futures when those distinctions change control-relevant outcomes.
Counterfactual collapse. Let denote the model's imagined latent summary after rolling out action sequence from history , and let denote an intervention outcome, such as the hidden object pose, topological cell, contact mode, success predicate, or long-horizon reward class induced by . A representation collapses counterfactuals when
This failure can occur even when the model predicts plausible observations, because visual similarity and intervention equivalence are not the same relation.
4 Counterfactual Latent World Models
CLWM augments latent world-model learning with an objective that preserves intervention-sensitive structure. The architecture follows a recurrent state-space model but changes the training signal applied to action-conditioned imagined futures.
4.1 Belief-State Encoder
Given multimodal observations , where may be image observations, proprioceptive state, and optional tactile or force signals, the encoder computes a deterministic recurrent belief
where is a modality-specific observation encoder. A stochastic latent state is then inferred by
The transition prior is action-conditioned:
This recurrent belief is crucial: under partial observability, the current frame may not reveal whether a target object is behind an occluder, whether a corridor has been visited, or whether a contact event has changed hidden object pose.
4.2 Action-Conditioned Counterfactual Rollouts
For each anchor history , we sample a set of candidate intervention sequences
drawn from random shooting, policy proposals, model-predictive control candidates, or a replay buffer. The world model rolls out each intervention in latent space:
Equation (8) conditions on an imagined belief , which Eq. (4) cannot produce directly because no observation exists during imagination. We therefore advance the belief open loop, feeding the sampled prior latent in place of the encoder features, as in latent imagination for recurrent state-space models [Hafner et al., 2020]:
Imagined rollouts are therefore fully open loop: no ground-truth future observation is posterior-fed into the rollout.
A projection head maps the rollout to a counterfactual embedding
The embedding is not used as a decoder feature at test time. It is a training-time device that pressures the latent dynamics to preserve intervention distinctions.
4.3 Counterfactual Contrastive Objective
We construct positive and negative pairs based on intervention outcomes. In simulation, the outcome label can be obtained from privileged state during training only. In real-world settings, it can be approximated by task predicates, temporal consistency, object trackers, tactile events, or sparse outcome labels. For each rollout , let be an outcome descriptor. Positive pairs share an outcome class or are close under an outcome distance . Negatives differ in outcome despite originating from the same or similar belief state. The contrastive loss takes the supervised contrastive form of Khosla et al. [2020]:
where and are positive and negative rollout sets and is a temperature. The negatives are not arbitrary trajectories but hard counterfactual negatives: interventions whose observations may be similar while their downstream outcomes differ. We use three negative-mining strategies. Same-belief action negatives compare alternative actions from the same inferred belief state. Perceptual-alias negatives compare rollouts with high image-level similarity but different hidden-state outcomes. Value-disagreement negatives compare futures whose predicted values diverge while their reconstruction loss remains low. Together, these prevent the model from using visual plausibility as a substitute for intervention structure.
4.4 Full Training Objective
The full objective combines standard latent world-model learning with counterfactual structure preservation:
is an observation reconstruction or representation-prediction loss, regularizes posterior and prior latent states, and train reward and value heads, and is an optional intervention-outcome prediction loss:
The outcome head stabilizes the contrastive objective by ensuring that separated futures correspond to interpretable intervention consequences rather than arbitrary representation spread.
4.5 Planning with CLWM
At test time, CLWM can be used with any latent-space planner. We use model-predictive control with candidate action sequences and horizon , scoring each by predicted reward plus terminal value, , executing the first action of the best sequence, and replanning. Because CLWM shapes the latent dynamics during training, no contrastive computation is required at deployment.
Why prediction alone is not enough. A sufficiently accurate predictive model would preserve counterfactual structure in the limit of perfect state estimation, full observability, and unlimited capacity—but not under the conditions embodied world models are actually trained in: finite latents, short rollouts, and evaluation by downstream planning rather than observation likelihood. Under compression, the equivalence relation induced by prediction loss can differ from the one induced by control. This observation is the partial-observability, intervention-conditioned form of the value equivalence principle [Grimm et al., 2020, Schrittwieser et al., 2020] and of the behavioral-equivalence view underlying bisimulation [Ferns et al., 2004, Gelada et al., 2019, Zhang et al., 2021]. What CLWM adds is a training signal that applies this pressure to imagined open-loop futures under alternative interventions from a belief state, where on-policy value or bisimulation targets are unavailable or degenerate. The learned latent need not recover the full hidden state—only enough to answer the counterfactual queries planning uses.
5 Experimental Design
Our experiments test the central claim: world models trained only for plausible prediction can fail under partial observability because they collapse action-contingent futures that are visually similar but behaviorally distinct. We therefore evaluate not only task performance, but whether the learned latent dynamics preserve intervention structure, and whether gains arise precisely where counterfactual distinctions are necessary for planning.
5.1 Benchmarks
We evaluate on three partially observable embodied benchmarks in which short-horizon observations are insufficient to identify the control-relevant state. Occluded Push: a tabletop manipulator must push a target object into a goal region while the target may be hidden behind an occluder or displaced into visually ambiguous configurations. The same RGB-D observation may correspond to a push that contacts the target, misses it, or moves an occluded object into a recoverable pose, so success depends on object permanence and delayed contact reasoning. Aliased Maze: navigation through repeated corridor textures where topologically distinct locations produce nearly identical egocentric observations but require different actions, testing whether the belief state preserves topological counterfactuals. Deferred Kitchen: a long-horizon manipulation routine in which early interactions determine whether later subtasks remain feasible, often by changing hidden preconditions without immediate visual evidence. We evaluate normalized return and model-exploitation rate, defined as the percentage of failures where the planner selects a trajectory with high predicted value but low realized value.
5.2 Baselines
We compare against five latent world-model baselines. RSSM-Recon: a recurrent state-space model trained primarily with observation reconstruction and latent consistency. Reward-aware RSSM: adds reward and value prediction, testing whether task supervision alone recovers intervention structure.
Table 1: Main results on partially observable embodied benchmarks. Success denotes episode success rate. CFS is counterfactual separability AUROC. Exploit rate is the percentage of planning failures caused by high predicted value but low realized value. All success and return values are means over 5 random seeds (seeds 0–4), and ± denotes the standard error of the mean. CFS and exploitation rate are computed over the same seeds. All methods are evaluated from their final checkpoints on 100 fixed test episodes. Aliased Maze results use aliasing intensity 0.0, the benchmark's default layout (details in Appendix A).
| Method | Occluded Push | Aliased Maze | Deferred Kitchen | |||
|---|---|---|---|---|---|---|
| Success ↑ | CFS ↑ | Success ↑ | CFS ↑ | Return ↑ | Exploit ↓ | |
| RSSM-Recon | 0.61 | 0.58 | 31.5 | |||
| Reward-aware RSSM | 0.66 | 0.63 | 24.8 | |||
| CPC-RSSM | 0.70 | 0.68 | 22.7 | |||
| Dreamer-style | 0.69 | 0.67 | 20.9 | |||
| TD-MPC-style | 0.71 | 0.70 | 18.4 | |||
| CLWM (ours) | 0.84 | 0.86 | 9.7 | |||
CPC-RSSM: adds a generic contrastive predictive objective, separating the effect of contrastive learning from counterfactual negative construction. Dreamer-style: an imagination-based latent world model trained for actor-critic learning in latent space. TD-MPC-style: a decoder-free latent control model optimized for value-guided planning.
5.3 Metrics
We report three classes of metrics. Task performance: episode success rate on Occluded Push and Aliased Maze, normalized return on Deferred Kitchen. Counterfactual separability (CFS) measures whether latent rollouts separate intervention outcomes:
where is the imagined latent future induced by intervention sequence from history , and is the corresponding intervention outcome. CFS is computed on the imagined dynamics latents with the projection head discarded, so it measures the geometry the planner actually uses rather than the embedding the contrastive loss directly shapes. The projection head is a training-time device only. Outcome labels at evaluation come from privileged simulator state, exactly as during training. Model-exploitation rate measures planning failures caused by overoptimistic imagined trajectories: a model can produce high predicted values while remaining unsafe for planning if it collapses distinct action-conditioned futures.
6 Results
6.1 CLWM Improves Planning in the Regime Where Prediction Is Ambiguous
Table 1 shows the main results. CLWM achieves the best performance on every benchmark and every diagnostic, gaining 9.5 points on Occluded Push and 11.6 on Aliased Maze over the strongest non-counterfactual baseline, raising Deferred Kitchen return from 62.8 to 72.3, and cutting model exploitation from 18.4% to 9.7%. The pattern is consistent with the paper's hypothesis: the largest improvements occur in tasks where visually plausible prediction is not enough to support correct action selection.
Two comparisons are especially informative. Reward-aware RSSM improves over RSSM-Recon but remains far below CLWM: reward supervision is sparse and trajectory-local, and does not by itself separate alternative futures before reward is observed. CPC-RSSM improves CFS relative to RSSM-Recon but still underperforms CLWM: generic contrastive prediction helps representation learning, but does not target the hard cases that matter for embodied control—same-belief interventions and perceptual aliases with different downstream outcomes. The exploitation reduction is also central: TD-MPC-style planning achieves the strongest baseline return on Deferred Kitchen yet still fails exploitatively in 18.4% of episodes. CLWM nearly halves this rate, changing not just average performance but the failure modes the planner encounters.

Figure 1: Counterfactual separability tracks downstream planning success. Across the five baseline model classes—none of which optimizes CFS—the correlation between CFS and success is (Occluded Push) and (Aliased Maze). The dashed line is a least-squares fit to the ten baseline points. CLWM (rightmost point in each series) directly optimizes counterfactual structure, so its points illustrate consistency with the trend rather than independent validation of the metric.
Table 2: Ablation study. All ablation variants are trained and evaluated identically on all three benchmarks. Each column reports one benchmark's metric: success on Occluded Push, success on Aliased Maze, CFS averaged over those two tasks (rounded to two decimals, with per-task values for CLWM and the reference in Table 1), and exploitation rate on Deferred Kitchen. The bottom row is not an ablation: it repeats the strongest non-counterfactual baseline from Table 1 for reference.
| Variant | Push Succ. ↑ | Maze Succ. ↑ | Avg. CFS ↑ | Kitchen Exploit ↓ |
|---|---|---|---|---|
| Full CLWM | 74.6 | 78.9 | 0.85 | 9.7 |
| No same-belief negatives | 70.2 | 72.4 | 0.79 | 13.6 |
| No perceptual-alias negatives | 67.5 | 69.1 | 0.74 | 16.8 |
| No value-disagreement negatives | 71.3 | 74.0 | 0.81 | 12.9 |
| No outcome head | 70.8 | 73.5 | 0.80 | 13.2 |
| Random negatives only | 68.1 | 70.6 | 0.76 | 15.4 |
| Reference: TD-MPC-style (Table 1) | 65.1 | 67.3 | 0.71 | 18.4 |
6.2 Counterfactual Separability Tracks Downstream Control
The main results reveal a strong alignment between CFS and planning performance: methods with low CFS also exhibit lower success and higher exploitation. Two caveats govern how much this alignment can show. Because CLWM directly optimizes an objective aligned with CFS, its own point in Figure 1 cannot serve as independent validation of the metric. The informative evidence is the trend across the five baselines, none of which is trained on CFS. Across those baselines, the correlation between CFS and planning success is on Occluded Push and on Aliased Maze. This relationship is consistent with CFS capturing a property that reconstruction loss and return alone can obscure: whether imagined latent distance reflects meaningful differences in intervention outcome. We do not claim that CFS alone characterizes all aspects of world-model quality.
6.3 Ablations Show That the Gains Come from Counterfactual Structure
Table 2 isolates the contribution of each component of the counterfactual objective. The bottom row repeats the strongest non-counterfactual baseline from Table 1 as a reference. The gap between full CLWM and this reference (9.5 points on Occluded Push, 11.6 on Aliased Maze) is the quantity the ablations decompose. The most revealing ablation removes perceptual-alias negatives: success drops to 67.5% and 69.1%, with average CFS falling from 0.85 to 0.74—precisely the failure mode the method is designed to address. When the model no longer receives pressure to distinguish futures that look similar but behave differently, it again collapses the cases that matter most for planning.
Same-belief and value-disagreement negatives contribute complementary benefits: removing the former weakens separation of alternative actions from the same inferred state, while removing the latter raises exploitation to 12.9%. Random negatives are insufficient—they improve over the

Figure 2: Robustness to perceptual aliasing. All results use the same final checkpoints and evaluation protocol as Table 1 (100 test episodes, default maze layout). Intensity 0.0 corresponds to the Table 1 setting. Points are means over 5 seeds. All methods degrade as local observations become less informative. CLWM remains the strongest at every intensity and retains the largest fraction of its default-setting performance, consistent with latent dynamics trained to preserve action-conditioned distinctions that are not visible in the current observation.
reference but remain far below full CLWM—showing that negative construction quality is central to the method.
The outcome head contributes least: removing costs 3.8 and 5.4 points while remaining well above the reference. Privileged outcome labels enter CLWM both through and through the construction of contrastive pairs. The small cost of removing indicates that their value is realized mainly through the contrastive geometry rather than through direct outcome prediction. We caution that Table 2 does not include a variant that retains the outcome head without the contrastive loss (), nor a baseline given the same labels (e.g., TD-MPC-style with an outcome head). These supervision-matched controls are the right way to fully separate label access from representation geometry, and we leave them for the extended version.
6.4 Robustness under Perceptual Aliasing
We next stress-test the models by increasing perceptual aliasing intensity in Aliased Maze: as aliasing increases, local observations become less informative about the agent's true topological state, directly testing whether the model relies on surface-level observation prediction or preserves history-dependent intervention structure.
Figure 2 shows that all methods degrade as aliasing increases, but CLWM remains the strongest at every intensity: at the highest aliasing level it maintains 66% success, compared with 55% for TD-MPC-style planning and 38% for RSSM-Recon. Its margin over the strongest baseline is essentially undiminished at maximum aliasing (11.6 points at intensity 0.0, 11.0 at intensity 1.0), and it retains the largest fraction of its default-setting performance (84%, versus 82%, 76%, and 73% for TD-MPC-style, Dreamer-style, and RSSM-Recon). The gain is therefore not an artifact of the easy regime: it persists as local observations become uninformative and prediction alone is least sufficient.
7 Discussion
The results support the paper's central claim: embodied world models should be evaluated by whether they preserve the consequences of possible actions, not only by whether they predict plausible observations. The gains arise in settings where these criteria diverge—occlusion, perceptual aliasing, hidden contact, and delayed feasibility—and persist essentially undiminished as aliasing intensifies. Neither task supervision nor generic contrastive learning suffices on its own, and the outcome-head ablation suggests the privileged labels' value is realized through the contrastive geometry rather than direct outcome prediction—though fully supervision-matched controls remain future work. The exploitation results clarify why this matters for control: if a latent model collapses two futures that differ in hidden feasibility, a planner can assign high value to an invalid action sequence. By reducing exploitative failures from 18.4% to 9.7%, CLWM changes not only average performance but the way the model fails. We do not claim that CLWM learns a structural causal model or guarantees identifiability. The claim is practical: a world model for embodied planning should be trained to preserve the intervention distinctions its planner needs.
Finally, we note an implication for agents built on pretrained representations. Our experiments train latent dynamics from scratch, but nothing in the definition of counterfactual collapse depends on that choice. The CFS metric requires only a way to embed action-conditioned futures and a source of intervention-outcome labels. It can be computed for a frozen pretrained encoder, a fine-tuned one, or a policy's internal features. Given that Figure 1 shows CFS tracking planning success across baseline model classes, we suggest measuring it before a pretrained representation is handed to a planner, rather than inferring actionability from downstream reward alone: reward is a slow and confounded signal for this property, and a representation can produce adequate average return while remaining exploitable in precisely the ambiguous states where an agent most needs a reliable model.
8 Limitations and Broader Impact
CLWM requires reliable intervention-outcome signals: available from privileged state in simulation, but requiring trackers, tactile events, learned predicates, or human labels in the real world. It also increases training cost by sampling multiple interventions per belief state and mining hard negatives, though this can be reduced by reusing planner candidates or applying the objective only in ambiguous states. CLWM does not solve long-horizon compounding error, exploration, distribution shift, or reward misspecification, and should be viewed as complementary to uncertainty-aware model-based RL. Our claim about pretrained representations is conceptual rather than empirical: we characterize why counterfactual collapse should be expected under standard pretraining objectives and show that CFS is computable for any representation, but we do not measure CFS on large-scale pretrained encoders here. We regard that as the natural next experiment. Configuration details are collected in Appendix A.
World models that better preserve action consequences could improve embodied agents in assistive robotics, manipulation, and navigation, and may reduce overconfident planning through visually plausible but physically invalid futures. At the same time, more capable embodied planning increases the autonomy of physical systems, which requires conservative deployment practices: uncertainty estimation, human override, environment-specific validation, and clear limits on autonomous authority.
9 Conclusion
World models are usually trained to predict what is likely to happen next. Embodied agents need something stronger: models that preserve what would happen if they acted differently. CLWM combines recurrent belief inference, action-conditioned latent dynamics, and contrastive supervision over intervention outcomes to target counterfactual collapse—the failure to distinguish behaviorally different futures that look similar in observation space. Empirically, CLWM improves planning on all three partially observable benchmarks (by up to 11.6 success points), increases counterfactual separability, and nearly halves model-exploitation failures, with ablations attributing the gains to hard perceptual-alias negatives and the advantage persisting essentially undiminished under maximum perceptual aliasing.
These gains also come at no deployment cost. The counterfactual machinery—intervention sampling, hard-negative mining, the projection head—exists only at training time, so the planner pays nothing at inference for the improved latent geometry. The objective is likewise orthogonal to the control loop: it attaches to any latent world model that rolls out action-conditioned futures, which makes it a drop-in training-time addition to existing world-model stacks rather than a competing architecture.
Looking forward, the most portable piece of this work may be the diagnostic rather than the training objective. CFS requires only imagined action-conditioned futures and intervention-outcome labels, so it can audit any inherited representation—frozen, fine-tuned, or pretrained at scale—before a planner is asked to trust it, and our results provide an initial calibration for that audit: across world-model classes trained from scratch, counterfactual separability tracked planning success at . A world model useful for planning must preserve not just what is likely to happen, but the intervention consequences of possible actions—and that property can, and should, be measured before it is assumed.
References
David Ha and Jürgen Schmidhuber. Recurrent world models facilitate policy evolution. In Advances in Neural Information Processing Systems, 2018.
Danijar Hafner, Timothy Lillicrap, Ian Fischer, Ruben Villegas, David Ha, Honglak Lee, and James Davidson. Learning latent dynamics for planning from pixels. In International Conference on Machine Learning, 2019.
Danijar Hafner, Timothy Lillicrap, Jimmy Ba, and Mohammad Norouzi. Dream to control: Learning behaviors by latent imagination. In International Conference on Learning Representations, 2020.
Danijar Hafner, Jurgis Pasukonis, Jimmy Ba, and Timothy Lillicrap. Mastering diverse domains through world models. arXiv preprint arXiv:2301.04104, 2023.
Nicklas Hansen, Hao Su, and Xiaolong Wang. TD-MPC2: Scalable, robust world models for continuous control. In International Conference on Learning Representations, 2024.
Philipp Wu, Alejandro Escontrela, Danijar Hafner, Ken Goldberg, and Pieter Abbeel. DayDreamer: World models for physical robot learning. arXiv preprint arXiv:2206.14176, 2022.
Christopher Grimm, André Barreto, Satinder Singh, and David Silver. The value equivalence principle for model-based reinforcement learning. In Advances in Neural Information Processing Systems, 2020.
Julian Schrittwieser, Ioannis Antonoglou, Thomas Hubert, Karen Simonyan, Laurent Sifre, Simon Schmitt, Arthur Guez, Edward Lockhart, Demis Hassabis, Thore Graepel, Timothy Lillicrap, and David Silver. Mastering Atari, Go, chess and shogi by planning with a learned model. Nature, 588(7839):604–609, 2020.
Norm Ferns, Prakash Panangaden, and Doina Precup. Metrics for finite Markov decision processes. In Uncertainty in Artificial Intelligence, 2004.
Carles Gelada, Saurabh Kumar, Jacob Buckman, Ofir Nachum, and Marc G. Bellemare. DeepMDP: Learning continuous latent space models for representation learning. In International Conference on Machine Learning, 2019.
Amy Zhang, Rowan McAllister, Roberto Calandra, Yarin Gal, and Sergey Levine. Learning invariant representations for reinforcement learning without reconstruction. In International Conference on Learning Representations, 2021.
Prannay Khosla, Piotr Teterwak, Chen Wang, Aaron Sarna, Yonglong Tian, Phillip Isola, Aaron Maschinot, Ce Liu, and Dilip Krishnan. Supervised contrastive learning. In Advances in Neural Information Processing Systems, 2020.
Michael Janner, Justin Fu, Marvin Zhang, and Sergey Levine. When to trust your model: Model-based policy optimization. In Advances in Neural Information Processing Systems, 2019.
Judea Pearl. Causality: Models, Reasoning, and Inference. Cambridge University Press, 2nd edition, 2009.
Jonas Peters, Dominik Janzing, and Bernhard Schölkopf. Elements of Causal Inference: Foundations and Learning Algorithms. MIT Press, 2017.
Minne Li, Mengyue Yang, Furui Liu, Xu Chen, Zhitang Chen, and Jun Wang. Causal world models by unsupervised deconfounding of physical dynamics. arXiv preprint arXiv:2012.14228, 2020.
Ishita Dasgupta, Jane Wang, Silvia Chiappa, Jovana Mitrovic, Pedro Ortega, David Raposo, Edward Hughes, Peter Battaglia, Matthew Botvinick, and Zeb Kurth-Nelson. Causal reasoning from meta-reinforcement learning. arXiv preprint arXiv:1901.08162, 2019.
Aaron van den Oord, Yazhe Li, and Oriol Vinyals. Representation learning with contrastive predictive coding. arXiv preprint arXiv:1807.03748, 2018.
Michael Laskin, Aravind Srinivas, and Pieter Abbeel. CURL: Contrastive unsupervised representations for reinforcement learning. In International Conference on Machine Learning, 2020.
Leslie Pack Kaelbling, Michael L. Littman, and Anthony R. Cassandra. Planning and acting in partially observable stochastic domains. Artificial Intelligence, 101(1–2):99–134, 1998.
A Experimental Details
Tables 3 and 4 list the configuration and implementation details for all reported runs. Per-seed values for every reported number are included in the supplementary material. All statistics in Tables 1 and 2 are derived from that table.
Table 3: Training and evaluation configuration.
| Setting | Value |
|---|---|
| Seeds & statistics | 5 seeds (0–4); ± is the standard error of the mean over seeds |
| Belief / latent dimension | 200 / 32 |
| Planner | MPC with candidate sequences, horizon |
| Counterfactual rollout horizon | |
| Contrastive temperature | |
| Loss weights | (with free bits), |
| Optimization | AdamW, learning rate with cosine decay to and 10k-step warmup; batch size 256; environment steps |
| Evaluation | final checkpoints on 100 fixed test episodes (standard test split); Aliased Maze at default aliasing intensity 0.0 |
Table 4: Implementation details.
| Field | Value |
|---|---|
| Counterfactual branching | intervention sequences per anchor; branch source: 50% policy rollouts, 25% random shooting, 25% replay trajectories |
| Negative mining | perceptual-alias similarity via LPIPS on image patches over a 5-step window; 16 negatives per anchor; outcome distance threshold |
| Outcome descriptors | Occluded Push: hidden-object pose relative to goal, success threshold 0.05 m; Aliased Maze: discrete topological cell index (0–63); Deferred Kitchen: binary feasibility vector over later subtasks (e.g., stove on, kettle filled) |
| Simulators | Occluded Push: MuJoCo (MJX) v1.2.1; Aliased Maze: Gymnasium-based grid world v0.1.0; Deferred Kitchen: RoboSuite v2.0 (adapted) |
| Encoder | 4-layer CNN (32/64/128/256 channels, kernel 3, stride 2, ReLU) followed by a fully connected layer to 256 units; proprioceptive/tactile branch: 2-layer MLP (128, 64), concatenated |
| Decoder | transposed CNN mirroring the encoder |
| Projection head | 2-layer MLP applied to the 256-dimensional rollout summary : (ReLU); used only in the contrastive loss and discarded at evaluation |
| Outcome head | 2-layer MLP: number of outcome classes (ReLU; softmax applied in the loss) |
| Sensitivity | and swept; chosen values (0.1, 0.07) stable across the range |
| Compute | single NVIDIA A100; environment steps; ~24 h per CLWM run, ~12 h per baseline run |