Counterfactual Debugging the World Model Transfer Gap

Mingxuan Li, Kai-Zhan Lee, Michael Dennis, Elias Bareinboim
11/25/2026
cs.LGcs.AI

No confident code implementation found for this paper.

Abstract

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.

Show full abstract

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

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{li2026counterfactual,
  title  = {Counterfactual Debugging the World Model Transfer Gap},
  author = {Mingxuan Li and Kai-Zhan Lee and Michael Dennis and Elias Bareinboim},
  year   = {2026},
  eprint = {2611.35226},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2611.35226v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2611.35226.svg)](https://codeofpaper.com/paper/2611.35226)

Discussion