Abstract
The capability of imagining internally with a mental model of the world is vitally important for human cognition. If a machine intelligent agent can learn a world model to create a "dream" environment, it can then internally ask what-if questions -- simulate the alternative futures that haven't been experienced in the past yet -- and make optimal decisions accordingly. Existing world models are established typically by learning spatio-temporal regularities embedded from the past sensory signal without taking into account confounding factors that influence state transition dynamics. As such, they fail to answer the critical counterfactual questions about "what would have happened" if a certain action policy was taken. In this paper, we propose Causal World Models (CWMs) that allow unsupervised modeling of relationships between the intervened observations and the alternative futures by learning an estimator of the latent confounding factors. We empirically evaluate our method and demonstrate its effectiveness in a variety of physical reasoning environments. Specifically, we show reductions in sample complexity for reinforcement learning tasks and improvements in counterfactual physical reasoning.
The Challenge of Counterfactual Reasoning
In artificial intelligence, a "World Model" serves as a mental simulator, enabling an agent to predict future states based on current observations. However, most contemporary models rely on simple pattern matching and correlations. They operate under the assumption that data is Independent and Identically Distributed (IID), meaning the underlying rules of the environment remain static and observable.
This assumption breaks down when an agent interacts with the world through interventions. For instance, when an agent moves an object, it performs an intervention that changes the state. Standard models often fail in these scenarios because they do not account for confounding factors: hidden variables such as an object's mass, surface friction, or local gravitational strength. These properties are not visible in a single video frame but fundamentally dictate the outcome of any "what-if" scenario. Without accounting for these, a model may suffer from "Simpson’s Paradox," learning incorrect physical laws because it cannot perceive the hidden variables influencing the observed outcomes.
Methods: Architecture of a Causal World Model
The researchers introduced Causal World Models (CWMs) to bridge this gap using three primary architectural innovations:
- Object-Oriented Abstraction: Rather than predicting raw pixels, the model employs a CNN-based encoder to identify discrete objects, representing them as latent state variables.
- Graph Neural Networks (GNNs): To model complex interactions like collisions, the framework uses a GNN. This allows the model to handle a varying number of objects and focus specifically on pairwise relationships.
- The Confounder Estimator: This component is the core of the CWM. Using a Recurrent Neural Network (specifically a GRU), the model analyzes past trajectories to estimate a latent vector ($u$) representing hidden properties like mass or friction. This vector is then integrated into the transition model to "deconfound" the dynamics.
Additionally, the authors implemented Doubly Robust Learning (CRM-CWM). This technique from causal inference helps the model learn an unbiased version of physical laws even when the training data is biased by the agent's previous limited experiences.
Key Insights: From Correlation to Causality
A central insight of this work is treating physical properties as "static but visually unobservable" quantities—essentially confounders in a Causal Partially Observable Markov Decision Process (POMDP). By doing so, the model can disentangle the agent's action from the environment's inherent properties.
Remarkably, this deconfounding happens in an unsupervised manner. The model is never explicitly told what "mass" or "friction" is; it simply learns that a hidden vector is necessary to make its future predictions consistent across different scenarios. This "imagination" allows the agent to simulate the effects of interventions ($do$-operations) and solve complex physics puzzles far more efficiently than model-free agents.
Empirical Results
The model was evaluated on two benchmarks: CoPhy (predicting trajectories after interventions like removing a ball) and PHYRE (solving puzzles by placing new objects).
- Dream Quality: On the CoPhy benchmark, CWMs consistently achieved higher Hits@Rank 1 and Mean Reciprocal Rank (MRR) than standard World Models, indicating their simulated "dreams" were significantly closer to ground-truth physics.
- Sample Efficiency: In the PHYRE environment, CWM-based agents solved tasks with significantly fewer attempts than standard Deep Q-Networks (DQN) or non-causal models.
- Robustness: While standard models degrade as the number of objects increases, CWMs remain robust, effectively filtering out the noise introduced by hidden variables.
Conclusion and Future Directions
While CWMs demonstrate a significant leap in 2D physical reasoning, challenges remain in scaling these models to 3D environments with deformable objects or fluid dynamics. Furthermore, applying unsupervised deconfounding to high-resolution, real-world video—where object segmentation is significantly more difficult—remains a key area for future research. The authors suggest that the principles of CWMs could eventually be applied to other domains where causal reasoning is vital, such as autonomous driving or medical diagnostics.
Summary updated