Latent Dynamics · 2026-11-30

Counterfactual Debugging the World Model Transfer Gap

Mingxuan Li, Kai-Zhan Lee, Michael Dennis, Elias Bareinboim

arXiv:2611.35226PDF

AI-assisted summary based on the paper. Consult the linked source for methods and limitations. Benchmark numbers appear after editor verification.

TL;DR

The authors propose counterfactual debugging to attribute why a policy trained on a world model fails in the real environment (the world model transfer gap). They treat each time step’s predicted transition/reward as a “player,” create counterfactual rollouts by swapping real vs world-model mechanisms at selected time steps, and compute per-step counterfactual Shapley (ϕ) values with a coarse-to-fine divide-and-conquer algorithm that exploits causal sparsity for tractability and exponential speedup.

Why it matters

Rather than flagging all prediction discrepancies, the method identifies time steps whose transition or reward errors are causally responsible for the performance degradation on real trajectories. The resulting step-level attributions are presented as actionable diagnostics for continual learning (where the world model needs improvement) and as a principled way to explain the simulator-to-real/world-model-to-real transfer gap.

Method

  • Define the world model transfer gap as the performance difference between deploying an optimal policy under the world model versus the expected outcome on trajectories generated in the real environment.
  • Compute per-time-step causal attributions by counterfactual Shapley values: treat time steps as players, evaluate counterfactual rollouts where a coalition of time steps uses the world model mechanisms, and measure return differences.
  • Make computation scalable via coarse-to-fine recursive attribution (divide-and-conquer) that partitions the trajectory into blocks, estimates block attributions, and prunes blocks with attribution below a threshold, recursively refining only active parts.
Abstract (from arXiv)

Policies achieving strong performance in simulators or learned world models can fail when deployed into the real environment. While there must be environmental differences that account for these failures, not all differences are equally responsible. A benign error of irrelevant visual details may co-exist with a failure to predict a single critical transition causing an inevitable catastrophic failure. In this paper, we introduce counterfactual debugging as an approach for world model transfer gap attribution to identify the time steps whose transition or reward errors are causally responsible for a performance degradation exhibited in a real trajectory, rather than only visually or statistically different. We develop a scalable algorithm for computing these attributions that exploits the sparsity of causal errors by recursively divide-and-conquer, significantly reducing computational costs, achieving an exponential speedup while maintaining a high attribution quality. Experiments across distinct environments with various common world model failures (observation corruption, reward misprediction, and physics violations) demonstrate that counterfactual debugging correctly identifies the errors that cause the transfer gap, providing principled, actionable insights for continual learning in world models. Project Page: mingxuan.me/debugwm.html

Related papers

Publication record

Bibliographic evidence describes where and when a record appeared. It does not validate scientific claims.

First announced by arXiv: 2026-11-30 · Indexed by Pub-AI: 2026-11-30 UTC

preprint

Counterfactual Debugging the World Model Transfer Gap

Mingxuan Li, Kai-Zhan Lee, Michael Dennis, Elias Bareinboim

First announced by arXiv: 2026-11-30 · Original record ↗

arxiv
2611.35226
Explicit source versions (1)
  • v1 · Date not supplied
  1. Preprint available

    Source date: 2026-11-30 · First detected: 2026-11-30 UTC · Historical baseline

    Source evidence (1)
    • Official evidence ↗ · RSS guid=oai:arXiv.org:2611.35226v1; arxiv:announce_type=new; item pubDate (official metadata)
Abstract · arxiv

Policies achieving strong performance in simulators or learned world models can fail when deployed into the real environment. While there must be environmental differences that account for these failures, not all differences are equally responsible. A benign error of irrelevant visual details may co-exist with a failure to predict a single critical transition causing an inevitable catastrophic failure. In this paper, we introduce counterfactual debugging as an approach for world model transfer gap attribution to identify the time steps whose transition or reward errors are causally responsible for a performance degradation exhibited in a real trajectory, rather than only visually or statistically different. We develop a scalable algorithm for computing these attributions that exploits the sparsity of causal errors by recursively divide-and-conquer, significantly reducing computational costs, achieving an exponential speedup while maintaining a high attribution quality. Experiments across distinct environments with various common world model failures (observation corruption, reward misprediction, and physics violations) demonstrate that counterfactual debugging correctly identifies the errors that cause the transfer gap, providing principled, actionable insights for continual learning in world models. Project Page: mingxuan.me/debugwm.html