Abstract
Causal Dynamics Models (CDMs) are essential for robust reinforcement learning, yet they face significant scaling challenges in complex environments. We present Object-Oriented Causal Dynamics Models (OOCDM), a framework that leverages the inherent structure of object-based environments to scale causal discovery. By introducing "causation symmetry"—the principle that objects of the same class share causal rules—OOCDM reduces computational complexity and enables zero-shot generalization across varying numbers of objects.
1. Introduction
In reinforcement learning, understanding the causal relationships between variables allows agents to ignore spurious correlations and generalize to novel scenarios. However, traditional causal discovery algorithms typically exhibit $O(n^3)$ complexity relative to the number of variables $n$. In environments with numerous interacting entities, such as strategy games, this complexity becomes a bottleneck for efficient learning.
Humans navigate this complexity by adopting an object-oriented perspective, learning general rules for classes of objects rather than individual instances. OOCDM formalizes this intuition, treating the environment as a collection of objects and sharing learned causal dynamics across all instances of a class.
2. Methodology
The core of the OOCDM framework is the Object-Oriented Causal Graph (OOCG). This graph categorizes causal influences into two distinct types:
- Local Causality: Internal dependencies where an object's future state is influenced by its own current attributes (e.g., a unit's current health affecting its survival).
- Global Causality: External dependencies where an object's state is influenced by the attributes of other objects (e.g., an enemy's proximity affecting a unit's movement).
2.1 Causation Symmetry and Attention
OOCDM assumes Causation Symmetry, meaning that objects within the same class are interchangeable regarding their causal effects. To implement this, the model utilizes an attention-based predictor. Unlike standard Multi-Layer Perceptrons (MLPs) that require fixed-size inputs, the attention mechanism allows the model to process a variable number of objects while maintaining the symmetry constraint.
2.2 Efficient Causal Discovery
Instead of performing discovery on every individual variable, OOCDM conducts discovery at the class level using Conditional Mutual Information (CMI). This shift reduces the complexity from $O(n^3)$ to $O(Nmn)$, where $N$ is the number of objects and $m$ is the number of fields per class. This optimization is critical for scaling to "large-scale" environments.
3. Experimental Evaluation
The framework was tested across four distinct environments:
- Block: A synthetic environment designed to evaluate causal discovery accuracy in both linear and non-linear transitions.
- Mouse: A grid-world requiring navigation around hazards and targets, testing diverse object interactions.
- StarCraft II (CMS & DZB): High-dimensional, noisy environments using the PySC2 platform to test real-world complexity.
- AsymBlock & Walker: Variants used to test the "Augmented OOCDM" when standard symmetry assumptions are intentionally violated.
4. Results
OOCDM demonstrated significant improvements over non-object-oriented baselines like GRADER and CDL:
- Accuracy: The model achieved 100% accuracy in recovering ground-truth causal graphs in the Block and Mouse environments, outperforming baselines that hovered around 90%.
- Scalability: In the StarCraft "DZB" task, OOCDM completed causal discovery in approximately 66 seconds, compared to over 7.5 hours for the GRADER baseline.
- Generalization: OOCDM exhibited zero-shot transfer capabilities. Agents trained on a specific number of objects could immediately generalize to environments with significantly more objects without a drop in prediction accuracy (AILL), whereas non-causal GNNs and MLPs collapsed.
- Planning: When integrated with the Cross-Entropy Method for planning, OOCDM-based agents achieved substantially higher returns (e.g., 80.1 in the Mouse environment vs. 6.6 for the best baseline).
5. Discussion and Conclusion
OOCDM provides a scalable path for causal discovery in complex, multi-object environments. By leveraging causation symmetry and object-oriented structures, it achieves high sample efficiency and robust generalization.
Current limitations include the reliance on pre-defined object-oriented descriptions (classes and attributes) and the assumption of a Factored Markov Decision Process (FMDP). Future research will explore the automatic extraction of object-oriented representations from raw visual data and extending the framework to handle more complex relational reasoning and non-Markovian dynamics.
Summary updated