Create and explore imaginative 3D worlds with our new product Dreamfield (opens in a new tab)
Papers
Topics
Authors
Recent
Search
2000 character limit reached

Counterfactual World Models: JEPAs That Reason About "What If"

Published 18 Nov 2026 in cs.LG, cs.AI, cs.CV, cs.RO, and stat.ML | (2611.24778v1)

Abstract: World models operate in a world they cannot fully observe. When a hidden disturbance, such as a current pushing a boat, changes the outcome of an action, a counterfactual question follows: what would have happened under a different action, subject to the same disturbance? Its answer separates bad decisions from bad luck. We prove that world models trained on factual transitions cannot answer it on their own, whatever their data or capacity. For many physical systems, the observed outcome and a simple property of the dynamics suffice: natura non facit saltus, nature makes no leaps. When actions and disturbances act as separate forces, their interaction is second-order in time, so the counterfactual outcome is, to first order, the observed outcome plus the difference between the world model's predictions under the alternative and factual actions. This yields a counterfactual world model with no counterfactual data, extra parameters, or retraining. For transitions of duration hh, we prove an O(h2)O(h^2) bound on the counterfactual error relative to the disturbance variance, establish a matching minimax lower bound from unpaired factual data, and characterize failures at discontinuities, coordinate folds, and disturbances that scale the command. We validate these predictions from pixels with JEPA world models on frozen DINOv2 and masked autoencoder (MAE) encoders. On four rendered simulators, our approach improves counterfactual R2R^2 from $38$--46%46\% to $86$--96%96\% with the same world models; on a fifth, an underwater vehicle, it reaches $90$--94%94\% with sixteen times more factual data. Four further frozen encoders, DINOv3, SigLIP~2, CLIP and EVA-02, give $81$--95%95\% on the same simulators. In hindsight planning, it finds the action that would have reached the goal in $35$--69%69\% of events, against $14$--23%23\% for an oracle planner that knows the simulator but not the outcome.

Summary

  • This paper details a method for reasoning about counterfactual outcomes in physical systems using a residual reuse technique that improves predictions without requiring explicit disturbance inference, added parameters, or retraining of models.
  • The method involves decomposing the observed outcome and the factual predictor, leading to an approximate counterfactual prediction with a $O(h^4)$ squared-error rate.
  • The proposed counterfactual model demonstrates significant improvements in benchmark simulations, boosting counterfactual $R^2$ from approximately 38-46% to 86-96% and excelling in hindsight planning with a success rate beyond an oracle with exact dynamics.

Problem formulation and central claim

“Counterfactual World Models: JEPAs That Reason About ‘What If’” (2611.24778) addresses a distinction that is often obscured in learned dynamics: factual prediction estimates the outcome distribution associated with an action, whereas an individual counterfactual asks what would have happened under another action for the same realized disturbance. If a boat is displaced by an unobserved current, for example, a conventional world model predicts an average outcome over possible currents. After observing the boat’s actual endpoint, however, the relevant query is its endpoint under a different heading in that same current.

The paper’s central claim is that factual data alone cannot identify individual counterfactuals, irrespective of model capacity, data volume, or likelihood quality. Factual transitions identify action-conditional marginals, not the coupling between potential outcomes generated under different actions. The authors formalize this using both a potential-outcome construction and an action-dependent latent-noise gauge transformation. Two mechanisms can induce identical factual laws for every action while assigning different alternative outcomes to the same observed event.

The proposed resolution is structural rather than generative. When actions and hidden disturbances enter physical dynamics through separate force-like channels, their interaction is small over an appropriate transition interval. The observed outcome then supplies an event-specific residual, while an ordinary factual world model supplies the action contrast. For an encoder ff, representation zt=f(ot)z_t=f(o_t), factual predictor μ(Ht,a)\mu(H_t,a), executed action ata_t, and alternative action a′a', the counterfactual estimate is

z^t+1(a′)=zt+1+μ(Ht,a′)−μ(Ht,at).\widehat z_{t+1}(a') = z_{t+1} + \mu(H_t,a') - \mu(H_t,a_t).

This construction requires two evaluations of the factual predictor and one residual correction. It does not require counterfactual training data, explicit disturbance inference, extra parameters, encoder fine-tuning, or predictor retraining.

The operational decomposition is precise: the observed endpoint carries information about the realized disturbance, and the factual predictor estimates the effect of changing the action. The method is therefore not a generic claim that prediction models can infer arbitrary counterfactual couplings. It is a residual-transport rule justified under additive or approximately additive response structure.

Why factual prediction is insufficient

The paper distinguishes three quantities. The average treatment effect averages action differences over disturbances; the conditional average treatment effect conditions on pre-action information but still averages over compatible disturbances; and the individual treatment effect compares potential outcomes under the same realized disturbance. A squared-loss world model estimates a conditional mean such as

μ(z,a)=E[Y(a)∣Z=z],\mu(z,a)=\mathbb{E}[Y(a)\mid Z=z],

under exchangeability, consistency, and positivity. The difference μ(z,a′)−μ(z,a)\mu(z,a')-\mu(z,a) is therefore a conditional average action effect, not generally an individual action effect.

The nonidentification argument is elementary but consequential. Let UU be uniform on [0,1][0,1]. Two worlds may define

Y(a)=U,Y(a)=U,

while setting either Y(a′)=UY(a')=U or Y(a′)=1−UY(a')=1-U. Both worlds have the same uniform factual distribution under either action. Yet observing Y(a)=uY(a)=u implies counterfactual outcomes uu and $1-u$, respectively. No amount of unpaired factual data distinguishes the two couplings.

The same issue persists for expressive generative models. If a model represents each factual law as a transport of a reference noise distribution, action-specific measure-preserving reparameterizations of the latent noise leave all factual likelihoods unchanged while altering the inferred correspondence across actions. Thus, a latent variable inferred from one action is not identified as the same physical disturbance under another action merely because the generator is invertible, calibrated, or likelihood-optimal. The result directly limits interpretations of latent-variable world models that infer a disturbance and reuse it across hypothetical actions without additional structural assumptions.

Residual reuse and its theoretical basis

The proposed rule is exact for additive responses. Suppose

Fh(z,a,ε)=mh(z,a)+qh(z,ε),F_h(z,a,\varepsilon) = m_h(z,a)+q_h(z,\varepsilon),

where the disturbance contribution is shared across actions. Then the individual action contrast is independent of ε\varepsilon:

Fh(z,a′,ε)−Fh(z,a,ε)=mh(z,a′)−mh(z,a).F_h(z,a',\varepsilon)-F_h(z,a,\varepsilon) = m_h(z,a')-m_h(z,a).

The conditional mean difference recovers this action contrast, so residual reuse exactly reconstructs the alternative outcome. Importantly, the method does not need to identify ε\varepsilon itself. Even if multiple disturbances produce the same observation, they are equivalent for counterfactual prediction whenever they induce the same additive residual.

The authors also prove a uniqueness statement: among rules based on factual laws and one observed transition, residual reuse is the only rule that is exact in every additive-response world. This makes the construction more than a heuristic borrowed from disturbance observers or offset-free control; it is the uniquely compatible transport rule under the stated additive class.

Outside exact additivity, the error is governed by variation in the same-event action contrast. Let

Δh=Yh(a′)−Yh(a).\Delta_h=Y_h(a')-Y_h(a).

With exact factual conditional means, the residual-reuse error has squared risk

E[∥TR−Yh(a′)∥2]=tr⁡Var⁡(Δh).\mathbb{E}\left[\|T_R-Y_h(a')\|^2\right] = \operatorname{tr}\operatorname{Var}(\Delta_h).

Consequently, the method fails not because the disturbance is large in absolute terms, but because the effect of changing the action varies across disturbances. The relevant quantity is action–disturbance interaction.

The interaction theorem bounds this risk using a mixed action–disturbance derivative. If the transition map has bounded mixed derivative KzK_z, then

E[∥TR−Y(a′)∥2]≤Kz2∥a′−a∥2tr⁡Cov⁡(ε).\mathbb{E}\left[\|T_R-Y(a')\|^2\right] \le K_z^2\|a'-a\|^2 \operatorname{tr}\operatorname{Cov}(\varepsilon).

After normalizing by the irreducible risk of a predictor that does not observe the factual outcome, residual reuse improves on the no-outcome predictor when the interaction is sufficiently small relative to disturbance-induced outcome variation. This qualification is essential: small mixed derivative alone is not enough if the representation suppresses the disturbance, since the denominator may then be small.

Short-time physics and minimax optimality

The physical justification comes from systems whose dynamics can be written schematically as

s˙=vs(s,a)+bs(s,ε),\dot s=v_s(s,a)+b_s(s,\varepsilon),

with action and disturbance entering through separate channels. Over a transition of duration hh, a smooth expansion gives

Fh(z,a,ε)=z+h v(z,a)+h w(z,ε)+Rh(z,a,ε),F_h(z,a,\varepsilon) = z+h\,v(z,a)+h\,w(z,\varepsilon)+R_h(z,a,\varepsilon),

where the remainder has root-mean-square size O(h2)O(h^2). The first-order disturbance term is shared across actions and cancels in the action contrast. The residual-reuse root-mean-square error is therefore O(h2)O(h^2) and its squared error is O(h4)O(h^4). Since disturbance-induced outcome variance is typically O(h2)O(h^2), the normalized counterfactual risk is O(h2)O(h^2).

This is the precise interpretation of the paper’s physical principle: separate force channels interact only after each has changed the state on which the other acts. Smoothness by itself is insufficient. A smooth gain fault such as u=a(1+ε)u=a(1+\varepsilon) creates first-order action–disturbance interaction and falls outside the separate-channel assumption.

The paper further establishes a matching minimax lower bound. Even an estimator given exact factual transition laws for every source, action, and duration, together with the observed factual endpoint, cannot uniformly improve the leading O(h4)O(h^4) squared-error rate over the stated class of smooth separate-channel systems. The lower-bound construction uses two smooth ODEs with identical factual laws but different disturbance couplings. Hence, residual reuse is rate-optimal under the information restriction of unpaired factual data and one observed outcome.

This optimality is worst-case and asymptotic. A known simulator, paired alternative outcomes, repeated trials under a persistent disturbance, or stronger structural assumptions can yield better performance on particular systems. The theorem excludes a uniformly better estimator over the full model class; it does not assert that residual reuse is pointwise optimal for every physical system.

The short-time argument also admits an inertial extension. With pose-only observations and hidden initial velocity, action effects may first enter position at order h2h^2, while action–disturbance interaction enters at higher order. Under additional sufficiency and smoothness assumptions, the paper obtains an O(h6)O(h^6) squared-error rate. This result is specific to the inertial structure and does not imply that arbitrary partially observed representations support residual transport.

Interaction diagnostics and failure modes

The simulator-only analysis isolates physical interaction from encoder and predictor error. The interaction ratio is the residual-reuse risk divided by the optimal no-outcome risk. Values below one indicate that the observed factual endpoint is useful; values above one indicate that residual reuse is worse than ignoring it.

For actuator offsets and directly affected coordinates, the interaction ratio is small. The reported values include ρ=0.033\rho=0.033 for HandReach wrist angles, ρ=0.062\rho=0.062 for BlueROV2 body velocities, and ρ=0\rho=0 for the selected sin⁡(pitch)\sin(\mathrm{pitch}) coordinate. Ideal residual reuse reaches $98.3$–100.0%100.0\% counterfactual R2R^2 in these settings.

By contrast, gain faults produce first-order interaction. The controlled offset-to-gain sweep predicts interaction ratios of $0$, $0.5$, and $2$ at dial values λ=0\lambda=0, $0.5$, and $1$. Measured ratios closely match: HandReach yields $0.033$, $0.497$, and $2.006$, while Ball-in-Cup yields $0.003$, $0.479$, and $1.969$. The implication is direct: the same residual correction that is nearly exact for an additive actuator offset becomes actively harmful for a multiplicative fault.

Figure 1

Figure 1: Simulator-only interaction ratios increase as an additive actuator offset is transformed into a command-scaled gain fault.

Transition duration does not have a universally monotone effect. In a damped pendulum, separate-channel disturbances exhibit the predicted decrease in interaction at short durations, whereas gain faults and saturation remain strongly non-additive. In HandReach, actuator offsets become more additive at longer durations because the servo approaches an approximately additive equilibrium; the interaction ratio decreases from $0.19$ at $0.04$ seconds to $0.0008$ at $0.32$ seconds. This is a settling phenomenon, distinct from the short-time theorem.

Figure 2

Figure 2: Approximate additivity can arise either from short transitions or from servo settling, while gain faults remain non-additive.

Three failure classes are particularly important. Contacts and impacts introduce discontinuous mode changes; Push-T block velocities have interaction ratios between $1.485$ and $1.889$, and ideal residual-reuse R2R^2 becomes negative. Multiplicative disturbances scale the command and invalidate first-order cancellation. Finally, coordinate transformations can fold the state: BlueROV2 has ρ=0\rho=0 for sin⁡(pitch)\sin(\mathrm{pitch}) but ρ=1.666\rho=1.666 for cos⁡(pitch)\cos(\mathrm{pitch}). Therefore, additivity is coordinate-dependent.

Raw pixels are also unsuitable transport coordinates. On a boat with a uniform current, residual transport in pixel space has interaction ratio approximately $2.13$ and a relative position risk of $5.86$ at the standard duration. The residual creates displaced and blurred copies because pixels encode object location and appearance nonlinearly. Feature-space transport is better but still non-additive; readout-coordinate transport is most accurate. This result supports the paper’s use of frozen visual encoders together with physical readouts rather than pixel-space world models.

Visual JEPA implementation

The empirical method uses frozen visual encoders and newly trained factual predictors. The primary encoders are DINOv2-S, DINOv2-B, and MAE-B; additional experiments use DINOv3-B, SigLIP 2-B, CLIP-B, and EVA-02-B. Each frame is encoded into a CLS or pooled embedding, and a two-block attention predictor receives one to three frame embeddings, past actions, and the queried action. It is trained only on factual transitions using squared loss on feature displacements.

The physical evaluation covers seven rendered environments: HandReach, Ball-in-Cup, FetchReach, liquid transport, Racetrack, Push-T, and BlueROV2.

Figure 3

Figure 3: The benchmark spans seven rendered physical systems with hidden disturbances and same-disturbance counterfactual branches.

Two transport variants are evaluated. Feature-space correction applies the residual directly to the embedding. Readout correction first maps factual and predicted embeddings to physical coordinates and performs residual transport there. The latter requires physical-state labels for fitting the readout, but it often reduces action–disturbance interaction substantially. No counterfactual branch is used for training, checkpoint selection, or model selection.

Counterfactual prediction results

On the four principal rendered environments with $8$k factual episodes, readout correction raises physical counterfactual R2R^2 from 38.1–45.6% for the same predictor without the observed outcome to 85.6–95.7%. The no-outcome oracle, despite access to the complete simulator source state, achieves only 49.1–51.1%, because it cannot observe the realized disturbance. Factual copying performs poorly, confirming that the endpoint alone is not a substitute for action-conditioned correction.

Environment Factual predictor No-outcome oracle Feature correction Readout correction
HandReach 38.1% 49.1% 82.4% 85.6%
Ball-in-Cup 41.6% 51.1% 92.0% 94.2%
FetchReach 44.8% 50.0% 94.0% 95.7%
Liquid transport 42.1% 50.6% 82.3% 94.8%

The result is not attributable to copying the observed endpoint or to improved factual prediction. Shuffling the factual outcomes across disturbance draws reduces feature-space counterfactual R2R^2 to between −14.6%-14.6\% and 6.3%6.3\%. This control demonstrates that the correction uses event-specific disturbance information.

Figure 4

Figure 4: Residual correction substantially improves counterfactual R2R^2 while keeping the encoder and factual predictor fixed.

Feature-space correction, which requires no physical labels, reaches 73.4–94.1% on the four principal environments. The readout adds only modest gains on HandReach, Ball-in-Cup, and FetchReach, but improves liquid transport by 12.1–17.7 percentage points. Thus, most of the benefit can be obtained without state supervision, although coordinate choice remains decisive.

BlueROV2 is more demanding. With $8$k episodes, readout correction reaches 70.7–74.2%, while feature correction reaches only 46.1–53.0%. Scaling factual data to $128$k episodes raises readout-corrected performance to 90.1–93.5% across the DINOv2 encoders, with seed ensembles reaching 94.1% for MAE-B. The no-outcome oracle remains at 51.8%. This supports the theoretical decomposition: physical interaction is fixed, while the learned action contrast improves with factual data.

Figure 5

Figure 5: Factual-data scaling improves counterfactual prediction, especially in BlueROV2, without changing the residual-correction rule.

The encoder comparison is broad but consistent. Across DINOv3, SigLIP 2, CLIP, and EVA-02, readout correction reaches 81.0–95.3% on the four principal environments. DINOv3-B obtains 88.8% on HandReach and 95.0% on Ball-in-Cup. The method therefore depends on the existence of a suitable representation and action contrast, not on a single pretraining family.

The history ablation provides a complementary result. As the fresh, unpredictable disturbance share increases from 25%25\% to 100%100\% on HandReach, trained-predictor performance decreases from 71.7% to 38.1%, whereas readout-corrected performance decreases only from 91.4% to 85.6%. Additional history has limited empirical effect in the finite predictors, consistent with the distinction between persistent disturbances inferable from history and fresh disturbances revealed only by the current endpoint.

Figure 6

Figure 6: Counterfactual accuracy remains high as the disturbance becomes less predictable from pre-action history because the observed endpoint retains event-specific information.

External loads further test whether the disturbance must enter through the command. A palm-applied load in HandReach yields interaction ratio ρ≤0.001\rho\le 0.001 and learned readout-corrected R2R^2 of 88.7% with MAE-B and 86.9% with DINOv2-S. The method therefore applies to plant-side additive forces, not only actuator offsets. Gain faults produce the opposite result: at the pure gain-fault endpoint, feature-space correction falls to 6.4–11.0%, and readout correction becomes negative.

Figure 7

Figure 7: Residual correction succeeds for an external additive load but fails for a command-scaled gain fault.

Hindsight planning

The paper evaluates whether improved counterfactual prediction changes action selection. In one-shot hindsight planning, a goal is generated by another action under the same source state and realized disturbance. The planner must select the command that would have reached that goal in the observed event.

The counterfactual world model achieves 35–69% success across the reported environment–encoder comparisons. The trained predictor without the factual outcome achieves 9–25%, while the simulator oracle that knows the full source state but not the realized disturbance achieves 14–23%. An oracle with the true disturbance succeeds in 100% of events. The counterfactual model therefore outperforms a planner with exact simulator dynamics but no access to the observed outcome.

Figure 8

Figure 8: Observing the factual endpoint improves same-event action selection relative to both a learned predictor and a no-outcome simulator oracle.

Same-event retries amplify the effect. On the third attempt, MAE-B counterfactual planning reaches 60% on HandReach, 86% on Ball-in-Cup, 97% on FetchReach, 71% on BlueROV2, and 87% on liquid transport, compared with 13–21% for the trained predictor. These experiments directly test the paper’s interpretation of the residual as an estimate of the disturbance that affected the failed attempt.

The benefit does not automatically transfer to later transitions. Under a persistent fault, three-step replanning improves success from 4–25% to 11–51% across the reported conditions. Under fresh disturbances, the change is only −4-4 to +6+6 percentage points. In the no-disturbance condition, correction can reduce success by 4–15 points, because it introduces a residual that is not predictive of subsequent errors. Thus, residual reuse is event-specific and its temporal reuse requires disturbance persistence.

Limitations and open questions

The empirical evidence is entirely simulated. The disturbances have controlled physical interpretations, primarily actuator offsets, external loads, bounded goal perturbations, and command faults. The environments do not establish performance under unmodeled real-world contacts, sensor artifacts, actuator hysteresis, or distribution shifts in which the action policy observes information unavailable to the predictor.

The benchmark evaluates prespecified physical coordinates rather than full simulator state. The readouts require physical-state labels on factual frames, and successful recovery of selected coordinates does not establish Markov sufficiency of the visual representation. Racetrack and Push-T fail some disturbance-recovery gates and are retained as diagnostics; BlueROV2 requires substantially more factual data and a specialized disturbance readout. PassWater has fewer native disturbance samples than the declared design target, making its uncertainty estimates comparatively limited.

The theoretical rates also depend on strong assumptions: separate action and disturbance channels, common disturbance laws across actions, supported queried actions, conditional exchangeability, sufficient source context, smooth dynamics, and a coordinate system that preserves disturbance variation. Factual data cannot certify that the same-event coupling satisfies these assumptions. In particular, the interaction ratio requires paired outcomes, a simulator, or repeated trials under a shared disturbance. Factual logs can flag some violations, such as gain faults whose outcome variance changes with action, but cannot establish that residual reuse is safe.

Several specific questions remain open within the paper’s scope: how to identify suitable additive coordinates without physical labels; how to construct transport rules for contacts and multiplicative faults; how to estimate interaction from real paired trials; and how to compose one-step counterfactual corrections over longer horizons without accumulating structural and estimation errors.

Conclusion

The paper establishes a sharp separation between factual world modeling and individual counterfactual reasoning. Unpaired factual transitions identify conditional action effects but not the same-event coupling required for counterfactual outcomes. Under separate-channel physical dynamics, residual reuse supplies that coupling approximately, with an O(h2)O(h^2) relative error rate and a matching minimax lower bound.

The proposed counterfactual world model is computationally minimal: it reuses the observed endpoint and contrasts two evaluations of an ordinary factual JEPA. Across simulated visual environments, it raises counterfactual R2R^2 from roughly 38–46% to 86–96%, reaches 90–94% on BlueROV2 with sufficient factual data, and improves hindsight-planning success beyond an oracle with exact dynamics but no observed outcome. Its validity is nevertheless conditional. Contacts, gain faults, folded coordinates, pixel transport, insufficient representations, and noncausal action logs remain outside the guarantee. The resulting contribution is a theoretically grounded residual-transport mechanism for physical counterfactuals, together with explicit diagnostics for determining when that mechanism should and should not be trusted (2611.24778).

Whiteboard

Explain it Like I'm 14

1. What is the paper about?

This paper studies how an AI system can answer “What if?” questions about the world.

For example, imagine a boat moving through water. The boat chooses a direction, but an invisible ocean current pushes it. After seeing where the boat actually went, we may ask:

What would have happened if the boat had chosen a different direction, while the same current was still pushing it?

This is called an individual counterfactual. It means predicting what would have happened in one particular situation if the action had been different.

The paper presents a new kind of AI world model called a counterfactual world model. It uses the result that actually happened to make a better prediction about what other actions would have caused.

2. What questions does the research ask?

The researchers focus on several main questions:

  • Can an ordinary AI world model answer individual “what if?” questions?
  • If the AI only sees what actually happened, can it know what would have happened after a different action?
  • How can the AI use the unexpected part of an event, such as a gust of wind or a water current?
  • Can this be done without collecting special data showing every possible action in the same situation?
  • When does this method work well, and when does it fail?

The paper’s important argument is that an ordinary world model usually learns average results. It may learn that boats normally drift in a certain way, but it does not automatically know which particular current affected this specific boat trip.

3. How did the researchers approach the problem?

Ordinary world models predict averages

A normal world model learns from many examples. It sees an action and its result, and tries to predict the likely result of that action in the future.

For example, after seeing many boats move, it might learn:

“If the boat points north, it usually ends up about here.”

But this is an average prediction. It does not necessarily know what happened during one particular trip.

The hidden current in that trip might have pushed the boat east, west, or not at all. The normal model often predicts the average current instead of the actual current that affected the boat.

The new idea: reuse the unexpected part

The researchers propose comparing three things:

  1. What actually happened.
  2. What the ordinary model expected under the action that was taken.
  3. What the ordinary model expects under a different action.

The unexpected difference between the real result and the model’s prediction is called a residual. In everyday language, it is the “surprise” in the result.

The method is:

Start with the real outcome, then add the model’s predicted difference between the new action and the original action.

In simplified form:

1
2
3
4
counterfactual prediction
= actual outcome
+ predicted result for new action
- predicted result for original action

For the boat example, the actual result contains information about the current. The model estimates how changing the boat’s heading would change its movement. The method combines these two pieces of information.

It does not need to directly discover or name the hidden current.

Predictions in feature space

The researchers use joint-embedding predictive architectures, or JEPAs. This sounds complicated, but the basic idea is simple:

  • An image is changed into a compact collection of useful numbers called a representation or embedding.
  • The AI predicts how those numbers will change after an action.
  • The AI does not always need to recreate the entire image pixel by pixel.

This is similar to describing a photograph using information such as “the boat is on the left,” “it is facing north,” and “the water is moving.” The model works with this useful description rather than every individual pixel.

The researchers used several already-trained image encoders, including DINOv2, MAE, DINOv3, SigLIP 2, CLIP, and EVA-02. These encoders were kept frozen, meaning they were not changed during the main experiment.

Testing in simulations

The method was tested in several computer-generated physical environments, including:

  • Boats and other moving objects
  • An underwater vehicle
  • Situations involving hidden forces or disturbances

The researchers compared:

  • A standard factual world model
  • The new counterfactual world model
  • An “oracle” model that knows the simulator’s rules but does not know which hidden disturbance occurred

They measured how closely each model’s prediction matched the true result that would have happened under the alternative action.

4. What did the researchers find?

Ordinary models cannot solve the problem by themselves

The paper proves that even a very powerful ordinary world model cannot generally discover individual counterfactuals from ordinary factual data alone.

This is because normal data may show:

  • What happens after action A
  • What happens after action B

But the data may not show what would have happened under both actions for the same starting situation and the same hidden disturbance.

For example, knowing the average results of two different boat headings does not reveal which result belongs to the same invisible current that affected one particular trip.

This is a problem of missing information, not simply a problem of having too little data or a weak AI model.

The residual method worked much better

On four simulated environments, the ordinary models achieved counterfactual accuracy scores of about 38% to 46%.

After using the residual-correction method, the scores improved to about 86% to 96% using the same world models.

On the underwater vehicle task, the method achieved about 90% to 94% accuracy, although it used sixteen times more factual training data for that experiment.

The method also worked with several different image encoders. Across the tested encoders, it achieved scores ranging from about 81% to 95% on the main simulated environments.

It helped with hindsight planning

The researchers also tested hindsight planning. This means asking:

Now that we know what actually happened, which action would have reached the goal?

For example, if a robot missed a target because of an unexpected push, the model could estimate which other action would have succeeded under that same push.

The counterfactual model found an action that would have reached the goal in about 35% to 69% of events.

A comparison planner that knew the simulator’s rules but did not know the actual disturbance succeeded only about 14% to 23% of the time.

This shows that seeing the actual outcome can sometimes be more useful than having a perfect average model of the environment.

The method has important limits

The approach works best when actions and disturbances act like separate forces and change the world gradually.

It can fail in situations such as:

  • Sudden collisions or impacts, where the world changes abruptly
  • Folded representations, where different physical situations look the same in the AI’s feature space
  • Multiplicative disturbances, where the hidden problem changes the size or strength of the action itself

For example, if a damaged motor only produces half of a command, the effect of the action depends strongly on the hidden damage. A simple reused correction may not be accurate.

5. Why are these findings important?

The paper shows that an AI should not ignore the difference between its prediction and what actually happened.

That difference can contain valuable information about hidden events, such as:

  • Wind
  • Water currents
  • Slippery ground
  • Mechanical errors
  • Unexpected pushes
  • Other unobserved disturbances

The main method is also practical because it does not require:

  • Special counterfactual training examples
  • A new model with many extra parameters
  • Retraining the whole system
  • Directly identifying the hidden disturbance

Instead, it reuses an ordinary world model and combines its predictions with the observed result.

This could help robots, vehicles, and game-playing agents understand mistakes more clearly. An agent could distinguish between:

  • A bad decision, where the chosen action was poor
  • Bad luck, where an unexpected disturbance caused the failure

It could also use this information to choose a better action next time.

Conclusion

In simple terms, the paper teaches an AI to learn from what actually happened, not just from what usually happens.

A normal world model says:

“Given this action, this is the average result.”

The proposed counterfactual world model says:

“This is what actually happened in this particular case. If we change the action, we can estimate the change caused by that new action while keeping the same unexpected event.”

The results suggest that this simple idea can make AI systems much better at answering “what if?” questions. It may lead to robots and other intelligent systems that can learn from failures, understand hidden causes, and plan more intelligently in uncertain real-world situations.

Practical Applications

Immediate Applications

The paper’s method can be implemented as a post-processing layer around an existing action-conditioned world model. Given an observed transition, an executed action ata_t, and a candidate action a′a', it computes:

1
2
3
4
counterfactual_outcome =
    observed_outcome
    + predicted_outcome(a')
    - predicted_outcome(a_t)

This requires no counterfactual labels, model retraining, additional parameters, or explicit inference of the hidden disturbance.

  • Robotics and autonomous vehicles — hindsight action evaluation
    • Use the counterfactual world model to estimate what a robot, drone, underwater vehicle, or autonomous car would have experienced under alternative commands after observing the result of the executed command.
    • Applications include diagnosing whether a failed maneuver resulted from poor control or an external disturbance such as wind, current, slippage, or actuator noise.
    • The model could support operator dashboards showing “what would have happened if the robot had turned left,” “used a lower thrust,” or “approached at a different angle.”
    • Feasibility assumptions: the action and disturbance should enter through approximately separate physical channels; transitions should be sufficiently short; the visual representation must retain relevant state information such as velocity or orientation.
  • Model-predictive control with residual correction
    • Integrate the residual-reuse rule into model-predictive control (MPC): after each observed transition, update predictions for candidate actions using the realized disturbance residual.
    • This can improve short-horizon replanning in systems affected by slowly varying disturbances, including mobile robots, marine vehicles, manipulators, and aircraft.
    • A practical workflow is:
    • 1. Train an ordinary factual JEPA or latent dynamics model.
    • 2. Observe the latest transition.
    • 3. Compute the residual between the observed and predicted next state.
    • 4. Add that residual to predictions for candidate actions.
    • 5. Select the action with the best predicted objective.
    • Dependencies: sufficiently frequent observations, reliable action coverage in the training data, and a control loop whose horizon is short enough that action–disturbance interactions remain small.
  • Robotic failure analysis and debugging
    • Use estimated counterfactual outcomes to distinguish:
    • a bad policy choice,
    • an unexpected environmental disturbance,
    • model error,
    • or actuator degradation.
    • For example, a warehouse robot could determine whether a collision was likely caused by selecting the wrong trajectory or by floor slippage that would have affected several alternative trajectories.
    • Assumptions: the method does not by itself identify the true hidden disturbance; it only estimates alternative outcomes under the structural assumptions of the paper. Contacts, discontinuities, and multiplicative actuator faults can produce misleading explanations.
  • Autonomous navigation and marine operations
    • Apply the approach to boats, underwater vehicles, drones, and ground vehicles operating under currents, wind, terrain variation, or slowly changing environmental forces.
    • Candidate uses include route selection, station keeping, docking, obstacle avoidance, and post-mission analysis.
    • The reported BlueROV2 results suggest that the method is particularly relevant to underwater navigation, where currents are difficult to observe directly.
    • Dependencies: disturbances should be relatively smooth over the transition interval. Strongly localized eddies, abrupt collisions, or disturbances that scale with the command may violate the method’s assumptions.
  • Data-efficient reinforcement learning
    • Generate approximate individual counterfactual transitions from ordinary factual trajectories rather than collecting every possible action from the same state.
    • These estimates could support:
    • counterfactual replay buffers,
    • policy comparison,
    • hindsight credit assignment,
    • action ranking,
    • and targeted exploration.
    • This is potentially useful when environment interaction is expensive, such as robotics, industrial automation, and simulated training environments.
    • Caution: the generated transitions should be treated as approximate training signals, not universally valid synthetic data. Errors grow when the queried action is far from the executed action or when the dynamics are highly nonlinear.
  • Visual world-model benchmarking
    • Use the method as a standardized evaluation layer for visual world models. A model can be tested not only on average factual prediction but also on whether it can reuse the disturbance revealed by an observed outcome.
    • Benchmark suites could measure:
    • physical counterfactual R2R^2,
    • hindsight goal-reaching rate,
    • robustness across frozen encoders,
    • and sensitivity to contact or multiplicative-fault scenarios.
    • This provides a practical distinction between models that predict average outcomes and models that support event-specific reasoning.
    • Dependencies: evaluation environments must provide ground-truth paired outcomes, usually through simulation or controlled experiments, even though the deployed method does not require paired training data.
  • Industrial process monitoring and actuator diagnostics
    • In manufacturing or process control, use residual transport to estimate how an alternative control input would have affected a process under the same unobserved operating conditions.
    • Potential applications include tuning temperature, pressure, flow, robotic force, or conveyor speed after observing an anomalous cycle.
    • The method may help separate an inappropriate control setting from a transient disturbance such as material variation or supply fluctuation.
    • Assumptions: the process should be smooth and locally force-like. Actuator faults that multiply or distort the command can invalidate residual reuse and require an explicit fault model.
  • Academic research workflows
    • Researchers can add the counterfactual layer to existing JEPA, DINO, MAE, CLIP, or other frozen-encoder pipelines without retraining the encoder.
    • This enables experiments on:
    • representation sufficiency,
    • latent-space versus physical-coordinate correction,
    • interaction-error scaling with transition duration,
    • and the effect of different pretrained visual representations.
    • Dependencies: physical-state readouts can improve performance but require labeled factual frames. Corrections in feature space avoid labels but may be less interpretable or less accurate for physical quantities.
  • Policy evaluation and public-sector experimentation
    • In settings such as traffic management, energy dispatch, or public-service operations, the approach could provide approximate event-specific comparisons between alternative decisions after an outcome is observed.
    • For example, a traffic controller could estimate whether a different signal action would likely have mitigated a congestion event under the same unobserved demand shock.
    • Important limitation: this does not remove the need for causal identification. If decisions depend on information unavailable in the logged state, or if action overlap is poor, the factual model may learn observational rather than interventional effects.

Long-Term Applications

The following applications require further validation, longer-horizon modeling, improved state representations, or mechanisms for handling violations of the paper’s assumptions.

  • Counterfactual digital twins for complex physical systems
    • Build digital twins for factories, logistics networks, vehicles, power systems, and infrastructure that update their predictions from the latest observed residual.
    • Such systems could maintain an event-specific estimate of how alternative interventions would have unfolded under the same latent operating conditions.
    • Potential products include:
    • disturbance-aware operational dashboards,
    • “what-if” simulators for incident response,
    • and adaptive digital twins for maintenance and scheduling.
    • Required development: multistep residual propagation, uncertainty calibration, online detection of assumption violations, and validation against controlled interventions.
  • Long-horizon autonomous planning
    • Extend hindsight planning from single transitions to sequences of alternative actions. An autonomous agent could use observed outcomes to infer which earlier action sequence would most likely have achieved a goal.
    • Applications include autonomous exploration, spacecraft or marine mission planning, warehouse routing, and recovery from navigation failures.
    • Challenges: residual errors can compound over time; disturbances may evolve in response to the agent’s path; contacts and discrete events introduce discontinuities; and the representation may omit hidden state such as velocity.
  • Safety-critical decision support
    • Develop systems that reconstruct plausible alternative outcomes after medical-device operation, aviation incidents, industrial accidents, or autonomous-driving failures.
    • The method could help answer whether an incident was avoidable through a different action or primarily caused by an external disturbance.
    • Dependencies: safety certification, calibrated uncertainty bounds, interpretable explanations, auditability, and domain-specific validation. Approximate counterfactuals should not be used as sole evidence for liability, clinical decisions, or regulatory enforcement.
  • Healthcare and treatment-effect analysis
    • A conceptual extension is to use event-specific residual correction for personalized treatment decisions, where an observed patient outcome reveals information about latent patient-specific factors.
    • Possible applications include treatment adjustment, individualized rehabilitation planning, or estimating how a patient might have responded to a nearby intervention.
    • Major limitation: the paper’s physical assumptions do not generally hold for biological and clinical systems. Treatment effects may interact strongly with latent disease state, time, adherence, and nonlinear biological mechanisms. Clinical use would require additional causal structure, longitudinal data, or paired and randomized evidence.
  • Energy-grid and climate-control optimization
    • Apply disturbance-aware counterfactual prediction to building HVAC systems, renewable-energy dispatch, microgrids, and storage control.
    • After observing a transition affected by weather, occupancy, or demand shocks, operators could estimate the outcome of alternative setpoints or dispatch actions under the same realized disturbance.
    • Dependencies: smooth dynamics and sufficiently short control intervals are favorable; discrete equipment switching, saturation, nonlinear demand response, and command-dependent failures require specialized extensions.
  • Finance and operational risk
    • A long-term possibility is event-specific evaluation of alternative portfolio, pricing, or risk-management actions after observing a market movement.
    • The model could estimate whether a decision was poor given the realized market shock or whether the shock would have dominated nearby alternatives.
    • Caution: financial markets are not naturally governed by the smooth force-like dynamics emphasized in the paper. Actions can change the disturbance itself through market impact, and hidden confounding and nonstationarity are substantial. Additional structural causal assumptions would be essential.
  • Counterfactual generative models with verified disturbance correspondence
    • The paper shows that factual likelihood alone cannot establish that a latent variable corresponds to the same disturbance across actions. Future systems could combine residual reuse with:
    • paired intervention data,
    • known simulators,
    • structural causal models,
    • monotonicity or rank-preservation constraints,
    • and multimodal sensor observations.
    • This could produce more general counterfactual generative world models capable of handling longer horizons and non-additive disturbances.
    • Required development: methods for learning or validating cross-action latent correspondences rather than merely improving factual likelihood.
  • Robust handling of failure modes
    • Future tools could automatically detect when residual reuse is unreliable, including:
    • discontinuous contacts,
    • folded or non-injective representations,
    • command-scaled disturbances,
    • actuator saturation,
    • large action changes,
    • and long transition durations.
    • A hybrid system might select among residual reuse, a learned disturbance model, a simulator, or a conservative uncertainty set depending on the detected regime.
    • Dependencies: labeled stress-test data, uncertainty estimates, online change-point detection, and fallback controllers.
  • Representation learning for counterfactual sufficiency
    • The results motivate encoders designed not merely to preserve visual similarity but to preserve action-relevant state and disturbance information.
    • Future representations could explicitly encode velocity, contact state, actuator condition, and environmental context while remaining compatible with JEPA-style prediction.
    • Long-term product: a counterfactual-ready perception stack for robotics that produces both a predictive embedding and a physically interpretable state chart.
    • Dependency: representation learning objectives must be evaluated against actual counterfactual performance, since factual prediction quality alone does not guarantee correct event-level coupling.
  • Policy and infrastructure planning
    • Governments and organizations could use validated counterfactual world models to assess alternative responses to disruptions such as storms, transportation failures, supply shortages, or infrastructure outages.
    • The systems could support post-event learning by estimating which intervention would have been preferable under the same disturbance.
    • Limitations: large-scale social and economic systems often violate stable-dynamics assumptions, and policy interventions can alter the disturbance distribution itself. Deployment would require explicit causal models, human oversight, and sensitivity analysis across competing structural assumptions.

Glossary

  • Abduction: Inferring hidden causes or latent variables from observed effects. “More recent approaches study counterfactual prediction in driving world models through abduction, action, and prediction”
  • Additive-noise model: A model in which an outcome is produced by adding a disturbance term to an action-dependent component. “Additive-noise models provide an especially simple case”
  • Action–disturbance interaction: Dependence of an action’s effect on the particular hidden disturbance that occurs. “Their interaction, i.e., how much the effect of changing the action depends on the disturbance, is therefore second-order in the transition duration.”
  • Action-conditioned world model: A predictive model whose output depends on both the current state or representation and a specified action. “This is the question answered by an ideal action-conditioned world model before acting.”
  • Action contrast: The difference between outcomes produced by two alternative actions. “The correction keeps the factual residual y−μh(z,a)y-\mu_h(z,a) and adds it to the predicted outcome under a′a'.”
  • Action-dependent gauge freedom: A reparameterization of latent variables that varies with the action while leaving factual observable distributions unchanged. “This is an action-dependent gauge freedom, a term borrowed from physics for a change of description, here a relabeling of the noise, that leaves every observable prediction unchanged.”
  • Average treatment effect (ATE): The population-average difference between potential outcomes under two actions. “The ATE averages over the population”
  • Causal hierarchy: A framework distinguishing observational, interventional, and counterfactual levels of causal questions. “This is an instance of the causal hierarchy separating interventions from counterfactuals”
  • Causal representation learning: Learning representations intended to capture variables or structure relevant to causal relationships. “Estimating conditional effects from observations is a central problem in causal representation learning and treatment-effect estimation”
  • Conditional average treatment effect (CATE): The average treatment effect among events sharing specified covariates or pre-action information. “The CATE averages over events sharing the same pre-action information”
  • Conditional exchangeability: The assumption that, after conditioning on observed covariates, treatment assignment carries no additional information about potential outcomes. “Suppose actions are conditionally exchangeable given the model input ZZ”
  • Counterfactual coupling: The rule specifying which potential outcome under one action corresponds to an outcome observed under another action in the same event. “The theorem identifies the precise missing information: factual training constrains the distribution of latent noise at each action, but not how a particular realization of that noise corresponds across actions.”
  • Counterfactual world model: A predictive model that estimates an alternative-action outcome using an observed outcome and predicted action differences. “We call the resulting predictor a counterfactual world model.”
  • Coordinate fold: A non-injective representation in which distinct physical states map to the same coordinate or representation. “The same analysis identifies the limits of residual reuse: disturbances that scale the command, discontinuous contacts, and folded representations can invalidate it.”
  • Disturbance observer: A control-theoretic method for estimating or compensating for unmeasured disturbances affecting a system. “Residual correction is familiar in control theory, where disturbance observers, offset-free model predictive control, and iterative learning control reuse errors from observed trajectories”
  • Exogenous variable: A variable determined outside the modeled causal system and treated as fixed when constructing a counterfactual. “In causal inference, it is a structural causal equation: the action is an intervention, and εt\varepsilon_t is the exogenous variable held fixed when constructing a counterfactual”
  • Factual transition: An actually observed state-action-outcome transition, as opposed to an alternative hypothetical transition. “A world model trained on factual transitions cannot answer it on its own.”
  • Factual-law-preserving reparameterization: A transformation of latent variables that preserves all observable factual probability laws. “Within the class of invertible transports from the common reference law, every factual-law-preserving reparameterization is of this form.”
  • Frozen encoder: A pretrained representation function whose parameters are not updated during subsequent model training. “We validate these predictions from pixels with JEPA world models on frozen DINOv2 and masked autoencoder (MAE) encoders.”
  • Gauge ambiguity: Non-uniqueness in the latent representation of a model when different parameterizations yield identical observable predictions. “We establish the nonidentification of individual counterfactuals from factual world models, including a minimax impossibility result and an explicit gauge ambiguity”
  • Hindsight planning: Selecting an action after observing an outcome by determining which alternative action would have achieved a desired goal. “to find in hindsight the action that would have reached the goal, which we call hindsight planning.”
  • Individual counterfactual: The outcome that would have occurred for one particular event under an alternative action while holding the realized disturbance fixed. “This is an individual counterfactual.”
  • Individual treatment effect (ITE): The difference between two potential outcomes for a particular event or individual. “The ITE concerns one particular event.”
  • Interventional distribution: The probability distribution of outcomes under an imposed action, averaging over possible disturbances. “An interventional query asks what would happen if an action were imposed”
  • Joint-embedding predictive architecture (JEPA): A model that predicts the representation of a future observation in the feature space of an encoder rather than reconstructing the observation itself. “Joint-embedding predictive architectures (JEPAs) predict in this feature space rather than reconstructing pixels”
  • Latent dynamics model: A model that predicts system evolution in an unobserved or learned representation space. “From latent dynamics models for control”
  • Latent-variable model: A probabilistic model that introduces unobserved variables to explain observed data. “A diffusion or latent-variable world model may sample realistic outcomes under alternative actions”
  • Masked autoencoder (MAE): A self-supervised encoder trained to reconstruct portions of an input that were masked. “masked autoencoders (MAE)”
  • Minimax lower bound: A worst-case lower bound showing that no estimator can achieve a smaller error over a specified model class. “establish a matching minimax lower bound from unpaired factual data”
  • Nonidentification: A situation in which the available observations and assumptions do not uniquely determine a target quantity. “Without additional structure, individual counterfactuals are not identified.”
  • Normalizing flow: An invertible generative model that transforms a simple reference distribution into a target distribution while permitting exact density evaluation. “A normalizing flow with an exact likelihood can infer a latent variable from an observed transition”
  • Overlap: The condition that observed actions sufficiently cover the actions for which predictions or causal effects are requested. “Suppose also that actions have sufficient overlap”
  • Potential outcome: The outcome that would result for a unit or event under a particular action, whether or not that action was taken. “The distinction can be expressed using potential outcomes.”
  • Push-forward distribution: A probability distribution obtained by applying a measurable transformation to samples from another distribution. “Ps,aP_{s,a} is the resulting law of the outcome, the push-forward of ν\nu by Ts,aT_{s,a}.”
  • Rank preservation: The assumption that an event retains the same ordering or disturbance quantile across different actions. “Monotone scalar responses identify counterfactuals through rank preservation”
  • Rank transport: Constructing a counterfactual by preserving an outcome’s quantile or rank across action-specific distributions. “the counterfactual is the outcome at the same quantile under a′a' (rank transport).”
  • Residual reuse: Estimating an alternative outcome by adding the observed prediction error to the model’s prediction under another action. “Residual reuse therefore achieves the best possible asymptotic rate under the stated information and physical assumptions.”
  • Structural causal model: A causal model represented by equations that specify how variables are generated from their causes and exogenous disturbances. “Additive-noise structural causal models provide a classical route to individual counterfactuals”
  • Structural causal equation: An equation describing a variable as a function of its causes, actions, and exogenous variables. “In causal inference, it is a structural causal equation”
  • Sufficient overlap: Adequate observational coverage of every queried action for each relevant model input. “Suppose also that actions have sufficient overlap, i.e., the logged actions cover every queried action at every value of ZZ.”
  • Treatment-effect estimation: Estimating differences between outcomes that would result from alternative interventions or treatments. “Estimating conditional effects from observations is a central problem in causal representation learning and treatment-effect estimation”
  • Unpaired factual data: Observations containing outcomes from separate factual events rather than matched outcomes under multiple actions for the same event. “The rate cannot be uniformly improved: we establish a matching minimax lower bound, with the sharp leading constant, for estimators using unpaired factual transitions and one observed outcome”
  • World model: A learned model that predicts the consequences of actions in an environment. “World models predict the consequences of actions and are becoming a core component of agents that interact with the world.”

Tweets

Sign up for free to view the 3 tweets with 20 likes about this paper.