arXiv:2610.34385cs.LGOct 2026

Manuscript Offprint

arXiv:2610.34385

Outcome-Aware Agents: When Does Causal Structure Help a Forward Model Foresee the Consequences of Actions?

Mallesh Madapathi

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Agents that act on real systems should predict what their actions will cause before acting. We study when causal structure helps a learned forward model do this, using a planner that rejects candidate actions whose simulated multi-step outcome is unsafe, in synthetic structural causal models where the true consequences are known. We compare the Action-Conditioned Latent Structural Causal Model (AC-LSCM: per-factor mechanisms over a learned sparse graph, actions as do-interventions) with three unstructured forward models on seven random graphs with 10 or 20 variables, a task configured by a fixed rule, and two controls: a do-wrapper that gives every model the same action semantics, and counterfactual data given to all models or to none. When its factors are the observed variables, AC-LSCM recovers the true graph exactly on every 10-variable graph and has lower three-step prediction error than every baseline in all 396 paired comparisons. Its excess safety violations over an oracle are 0.25 of the no-model level on 10-variable graphs (best baseline 0.31) and 0.41 on 20-variable graphs (0.53), and its margin is largest for two-variable actions never seen in training (0.18 versus 0.28). With learned latent factors the same model is worse than the baselines; the choice of factors matters more than the explicit do-operator or counterfactual data, and every planner stays far from the oracle. This version corrects an earlier one, whose model learned an empty graph and whose headline 36×36\times safety improvement came from a task that tested only extrapolation of action values; we withdraw that claim. Code and all per-seed results are released.

Keywords: agents, world models, structural causal models, causal dynamics, safe action selection, counterfactuals.

1 Introduction

Consider a code agent that generates and executes a database migration. The migration is syntactically valid, matches the user's request, and silently drops a foreign-key constraint that downstream services depend on. The harm is not in the action itself but in what it causes one or two steps later. An agent that is to avoid such outcomes needs a forward model: something that predicts, before execution, the state a candidate action will lead to, including its indirect effects, so that the action can be rejected or the decision deferred.

Language-model agents mostly lack such a model. Their training objective is next-token prediction, and current models perform poorly on formal interventional and counterfactual queries [5, 11]. Recent agents obtain a forward model by prompting the language model to simulate outcomes [6, 10, 18]. A natural alternative, long studied in model-based reinforcement learning, is a learned world model [7–9]. Causal reasoning suggests a specific inductive bias for such a model: a state made of variables, one mechanism per variable over a sparse set of causes, and actions that replace mechanisms rather than enter as generic inputs [16, 19]. Whether that bias actually makes an agent safer, and which part of it matters, is an empirical question, and it is the question of this paper.

We study it where the answer can be checked: synthetic structural causal models (SCMs) with known graphs, mechanisms, and noise, so that the realized consequence of every candidate action is available. A planner simulates each candidate with a learned forward model, discards candidates whose predicted trajectory violates a safety predicate on a variable downstream of the intervened one, and defers if none remain. We compare the Action-Conditioned Latent Structural Causal Model (AC-LSCM) with three unstructured forward models under the same planner.

What changed from the first version. An earlier version of this work [15] reported that AC-LSCM reduced safety violations 36×36 \times relative to a Transformer. That result does not hold. The model as specified there learned an empty causal graph in every run, and the agent task only tested whether a model knows that do(zi=v)\text{do}(z^i = v) sets ziz^i to vv, with unsafe values outside the training range; the Transformer's failures there were failures to extrapolate. Section 6 documents both problems and we withdraw the claim. The study reported here replaces the first version's experiments.