When Actions Matter: Causal Affordances for Long-Horizon Credit Assignment in World Models

Pradeep Kr. Banerjee, Frank Röder, Nihat AyNeurIPS 2026

TL;DR

In a long sequence of events, most actions are forgettable routine, while a select few change everything hundreds of steps down the line. This paper introduces WHAM, an AI agent that uses a learned internal simulator to run "what if" experiments—pinpointing the exact moments where choices actually matter and building value bridges across them. By ignoring the mundane steps in between, WHAM cracks multi-hundred-step survival puzzles from raw pixels, boosting its success at the hardest task 41-fold to match human experts.

What Problem Does This Paper Address?

Imagine playing a survival game: you chop wood at minute one, craft a pickaxe at minute three, and finally mine a diamond at minute ten. How does an AI connect that final triumph back to chopping the wood? This is the classic credit assignment problem in reinforcement learning.

Modern "world model" agents (like DreamerV3) learn an internal simulator of their environment and train by imagining short futures. However, their imagination horizon is usually tiny—typically just 15 steps. If a reward requires a prerequisite chain spanning 300 steps, short-sighted imagination sees zero immediate payoff for early preparation. Trying to pass value backward step-by-step over hundreds of mundane walking and waiting actions causes the learning signal to blur and vanish. Agents need a way to skip the boring parts and wire credit directly between pivotal decisions.

WHAM solving Crafter's 370-step diamond chain, showing how causal affordance spikes at key decisions while bottleneck value propagates backward.

Methods

WHAM builds on EMERALD, an existing Transformer-based world model that encodes pixel observations into spatial tokens and predicts future latent states. Rather than changing the base architecture, the authors introduce a causal framework for how the agent uses its simulator:

  • Causal Affordance ($I_2^{\text{dist}}$): Ascending to Level 2 (intervention) of Judea Pearl’s causal hierarchy, WHAM probes its world model at periodic intervals, asking: "If I take different actions right now, how much does my predicted long-term return distribution change?" Formally defined as the mutual information between actions and return distributions inside the model, high affordance flags a critical bottleneck state (e.g., crafting a tool or fighting a monster), while near-zero affordance means the state is routine.
  • Causal Prioritized Replay: Combining causal affordance with prediction surprise and spatial state sensitivity, WHAM prioritizes replaying episodes—and starting its 15-step imaginations—around rare, high-stakes moments.
  • Hierarchical Bottleneck Value Critic ($V_\chi$): Detected bottlenecks (states where affordance is both high and locally unusual) are logged into per-episode tables. A separate value network trains across consecutive bottleneck pairs using actual rewards from the replay buffer rather than error-prone model predictions. During imagination, a lightweight predictor estimates the next bottleneck, allowing WHAM to fuse short-term imagined returns with long-horizon chain values.

Datasets

As a reinforcement learning paper, WHAM is trained and evaluated online rather than on static datasets. The authors use Crafter (specifically the JAX-based Craftax-Classic implementation) over a 10-million-step budget. Crafter is a procedurally generated 2D survival benchmark featuring 22 achievements arranged in a prerequisite graph up to 7 levels deep (culminating in Collect Diamond). No new benchmarks are introduced.

Key Insights and Ideas

  • Return space beats visual drama: Causal affordance measures divergence in predicted return distributions, not state changes. Visually chaotic scenes don't fool the detector unless the agent's choice actually alters its future success.
  • Survival overrides achievements: Qualitative vignettes reveal that WHAM doesn't just flag crafting milestones. In one "iron sword paradox" episode, the agent crafts an iron sword, then immediately runs out of energy next to a zombie. WHAM flags the ensuing fight-or-flight moments as massive bottlenecks—correctly recognizing that if the agent dies now, all future rewards drop to zero, even though it never swings its shiny new sword.
  • Ambition trades off with safety: Pursuing deep rewards slightly lowered the agent's "wake up safely" score (95.4% down to 94.1%). Going deep into caves for iron and diamonds naturally exposes an agent to more hazards than playing it safe on the surface.

Key Results

Evaluated across 10 seeds (interquartile mean), WHAM substantially outperforms the state-of-the-art EMERALD baseline, with gains heavily concentrated at the deepest, hardest links of the prerequisite chain:

  • Overall Crafter Score: 68.9% (up +9.6 points over EMERALD's 59.3%, well above the 50.5% human expert score).
  • Shallow Tasks (Depths 0–4): Marginal differences (within $\pm 2.7$ points on average), as short-horizon baselines already handle immediate rewards well.
  • Deep Chain Tasks:
  • Collect Iron (Depth 5) jumps from 80.3% to 90.0%.
  • Make Iron Pickaxe (Depth 6) surges +30.5 points from 51.0% to 81.5%.
  • Collect Diamond (Depth 7) rises $41\times$, from a near-zero 0.3% to 12.2% (best seed: 18.4%), matching the reported human expert rate of 12.0%.
Figure 2: WHAM improves Crafter performance, learning dynamics, and deep chain progress over EMERALD. (a) Final overall score and success rates for Collect Diamond and Make Iron Pickaxe. The WHAM and EMERALD point estimates are IQMs across ten seeds with 95% bootstrap confidence intervals; Human, DreamerV3, and ∆-IRIS values are taken from Burchi and Timofte [2025]. (b) Learning curves for the overall score, Collect Diamond, and Make Iron Pickaxe across ten seeds. Lines show IQMs and shaded regions show the minimum and maximum across seeds. (c) Time to success thresholds for the achievements at depths 5 to 7. Each cell reports the earliest crossing across seeds and the number of seeds that cross within the training budget; × indicates no crossing. Compared with EMERALD, WHAM reaches the higher thresholds of the deepest achievements earlier and with higher seed coverage. The earliest WHAM crossing of 75% Iron Pickaxe success occurs at 6M steps, with 9/10 seeds reaching this threshold over training; the corresponding values for 10% Diamond success are 8M steps and 7/10 seeds. EMERALD almost never reaches the end of the chain (0.3% diamond), while WHAM reaches 12.2%, compared with the reported human expert rate of 12.0%. The human reference lies within the WHAM confidence interval.

Limitations and Future Work

  • Model dependency: Because causal interventions happen inside the learned world model, affordance estimates are only as good as the simulator's accuracy, critic calibration, and exploration coverage. If a seed fails to discover iron early on, the deep value chain cannot form—explaining why diamond success still varies from 3.5% to 18.4% across seeds.
  • Approximation & compute overhead: Theoretical error bounds assume a fixed bottleneck chain, whereas bridging states between bottlenecks requires predicting future features, introducing extra approximation error. Running action probes also adds slight computational overhead.
  • Next steps: Pairing WHAM with targeted exploration to reduce seed variance, and scaling up from 2D survival grids to richer, open-ended 3D domains like Minecraft.

Summary updated

Abstract

Long-horizon tasks require identifying which past decisions actually mattered for distant outcomes. In deep achievement chains, a single early decision can determine success hundreds of steps later, far beyond the reach of short-horizon imagination. We introduce WHAM, a world model agent for causal credit assignment in long-horizon tasks. WHAM ascends Pearl's causal hierarchy within a learned world model to identify decision-critical bottleneck states, prioritizes replay and imagination around them, and propagates value through sparse bottleneck chains using replay-derived returns. A hierarchical bottleneck critic bridges credit across hundreds of timesteps with provably controlled error. On Crafter, WHAM achieves $68.9\%$ ($+9.6$ points over a state-of-the-art baseline), with gains concentrated on the deepest links of the achievement chain: diamond collection rises $41\times$ to $12.2\%$ with the central estimate exceeding the reported human expert rate ($12.0\%$). Long-horizon credit flows where actions shape distant outcomes.
BibTeX
@inproceedings{banerjee2026when,
  author = {Pradeep Kr. Banerjee and Frank Röder and Nihat Ay},
  title = {{When Actions Matter: Causal Affordances for Long-Horizon Credit Assignment in World Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=71oPZLHKsN},
}

Loading related content...

Figure