BECAUSE: Bilinear Causal Representation for Generalizable Offline Model-based Reinforcement Learning

Haohong Lin, Wenhao Ding, Jian Chen, Laixi Shi, Jiacheng Zhu, Bo Li, Ding Zhao

Abstract

Offline Model-based Reinforcement Learning (MBRL) faces a significant challenge known as "objective mismatch," where a world model with low prediction error fails to produce an effective policy due to spurious correlations in the training data. We present BECAUSE (BilinEar CAUSal rEpresentation), an algorithm that integrates causal discovery into the learning process. By formulating an Action-State Confounded MDP (ASC-MDP) and utilizing a bilinear representation with causal masking, BECAUSE identifies invariant causal structures. This approach enables superior generalization to out-of-distribution environments, outperforming state-of-the-art baselines across diverse robotic and navigation tasks.

Introduction: The Challenge of Objective Mismatch

In Offline MBRL, agents learn a "world model" from pre-collected datasets. While theoretically promising for safety-critical applications, these models often suffer from objective mismatch. A model may achieve high accuracy on training data by exploiting confounders—non-causal correlations induced by the behavior policy or environment quirks. For instance, if a dataset only contains red cars driving fast, a model might incorrectly learn that color causes speed. When deployed in a scenario with blue cars, the resulting policy fails because it relied on a "shortcut" that does not represent true physics.

Figure 1: The objective mismatch problem occurs when low model loss does not correlate with task success. BECAUSE aligns these objectives by focusing on causal relationships.

The BECAUSE Framework

The proposed method, BECAUSE, addresses distribution shift by identifying the underlying causal structure of the environment.

1. ASC-MDP Formulation

The authors introduce the Action-State Confounded MDP (ASC-MDP). Unlike standard MDPs, this framework explicitly models hidden confounders ($u$) that influence both actions and state transitions. This includes confounders from the behavior policy (data collection bias) and those inherent to the environment dynamics.

Figure 2: Comparison of causal structures. (a) Standard confounded MDP, (b) State-Confounded MDP, and (c) the proposed ASC-MDP which models both policy and environment confounders.

2. Bilinear Representation and Causal Masking

Instead of standard neural networks, BECAUSE employs a Bilinear MDP structure. It decomposes transitions into a core matrix ($M$) interacting with state-action features ($\phi$) and next-state features ($\mu$). A sparse mask is learned for $M$ using Conditional Independent Tests (CIT) to prune non-causal "noise," preserving only true causal links.

3. Pessimistic Planning

To mitigate risks in unfamiliar regions of the state space, the algorithm incorporates an Energy-Based Model (EBM) as an uncertainty quantifier. High-energy (unfamiliar) state-action pairs are treated with pessimism during planning, preventing overconfident but catastrophic decisions.

Experimental Evaluation

BECAUSE was evaluated on 18 tasks across three environments: Lift (Robosuite), Unlock (Minigrid), and Crash (Highway-env). Each environment included "In-Distribution" and "Out-of-Distribution" (OOD) variants to test generalization.

Key Results

  • Superior Generalization: BECAUSE outperformed 10 leading baselines (e.g., MOPO, ICIL, TD3+BC) in 91.1% of trials.
  • OOD Robustness: In OOD tasks where the environment changed from training to testing, BECAUSE maintained high success rates while baselines often plummeted to near-zero.
  • Visual Scaling: The method successfully scaled to visual RL tasks, significantly outperforming other causal state abstraction methods when dealing with raw image pixels.

Discussion and Conclusion

The core insight of BECAUSE is that distribution shift is a causal structure problem. By identifying invariant causal graphs, the model remains valid even when superficial environment features change. Furthermore, the bilinear structure allows for a finite-sample complexity guarantee, ensuring theoretical sample efficiency.

While powerful, the current implementation assumes a time-homogeneous causal structure. Future work will explore discovering complex "concept factors" directly from raw video in non-stationary, long-horizon environments.

Summary updated

BibTeX
@inproceedings{lin2024because,
  author = {Haohong Lin and Wenhao Ding and Jian Chen and Laixi Shi and Jiacheng Zhu and Bo Li and Ding Zhao},
  title = {{BECAUSE: Bilinear Causal Representation for Generalizable Offline Model-based Reinforcement Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=4i9xuPEu9w},
}
Figure