Inference, dynamics and causality
Causality, intervention and counterfactual worlds
A prediction becomes causal only when it is licensed to survive a specified change in the generating process: one mechanism is replaced, the others are declared invariant, and a counterfactual additionally preserves the same unit-level background across worlds.
TLDR
- Seeing X and setting X are different operations, even when the observed value is identical.
- An intervention replaces the rule that normally generates a variable; causal validity depends on which other rules remain stable.
- Confounding appears when a common cause helps generate both the action and the outcome, making association travel along the wrong path.
- A counterfactual is stronger than an intervention because actual and alternative histories must share the same background state.
- Before a predictive model is used to act, its intervention target, preserved mechanisms, boundary, time horizon and failure tests must be written down.
The forecast that breaks when touched
A predictor answers a question inside the distribution that produced its data. “Among missions that received helicopters, what survival rate followed?” is a legitimate predictive question. It can be estimated with enough representative records. “What survival rate would follow if we dispatched a helicopter to this class of missions?” is not the same question with more confidence. It refers to a different data-generating process.
The notation makes the difference compact. P(Y | X = x) conditions on a value that arose through the existing dispatch policy. P(Y | do(X = x)) refers to a modified system in which the action is set. Standard probability can describe the first distribution. It cannot, by itself, tell us which modified distribution the second expression denotes. That requires causal assumptions, experimental design or both. Pearl’s graphical programme made this distinction explicit by separating a variable observed at a value from a variable externally set to that value (Pearl, 1995).
This is why predictive accuracy and causal adequacy can move independently. A model may predict dispatch with near-perfect accuracy because it has reconstructed the triage policy. It may also predict survival well because severity is visible in the record. Yet the joint predictor can remain silent about what survival would be under another dispatch rule. Better calibration, more parameters and a larger passive sample refine the same observational distribution. They do not select one of the causal rooms in the next thought experiment.
Deployment often changes the verb without changing the noun. During validation, the system is asked to forecast an outcome under an existing policy. During use, its score is allowed to choose the action that partly generates that outcome. The prediction task has become a control task, but the evidence has not automatically changed with it. Once decisions respond to the score, case selection, workload and future data can all move. A causal review starts at that verb change.
The three rooms also expose a limit on causal discovery. Conditional independences can sometimes rule out graphs, temporal order can orient some arrows, and multiple environments can provide additional constraints. Those methods are valuable. The limit is that their conclusions remain conditional on assumptions such as no hidden common causes, faithful statistical patterns, stable mechanisms or a restricted model class. Causal structure is learned through a partnership between data and declared constraints, not by statistics escaping assumptions.
That distinction matters for frontier models. A representation that predicts an object’s motion across many videos may encode useful regularities. To claim that it has learned a manipulable world model, one must ask whether the representation preserves the consequences of changing mass, force or contact while other mechanisms remain stable. Out-of-distribution prediction is suggestive. A controlled intervention that separates rival generators is stronger.
Scroll within the figure to inspect all three mechanisms.
The load-bearing move is mechanism replacement. A causal query does not ask a predictive model to extrapolate from a rare value. It defines a new system in which the normal rule for one variable is replaced, then uses assumptions about the remaining rules to derive what follows. The model earns the word “causal” only relative to that intervention class.
flowchart LR A["The helicopter flag"] --> B["The forecast that breaks when<br/>touched"] B --> C["The rule that survives the cut"] C --> D["Alternative histories need the<br/>same hidden world"] D -. "re-test" .-> A classDef first fill:#0a1424,stroke:#7B4CD8,stroke-width:2px,color:#e6f3ff classDef step fill:#0a1424,stroke:#3f7da0,stroke-width:1px,color:#e6f3ff class A first class B,C,D step
The rule that survives the cut
Start with an ordinary support service rather than a graph. Cases arrive with an underlying severity. A triage policy decides whether to make a proactive expert contact. The case later resolves or remains open. Severity affects both contact and resolution. Contact may also affect resolution. These are more than four columns. They are four roles in a generating process.
A structural causal model compresses that process into a set of assignments. Let U contain background factors that the model treats as given from outside its boundary, such as latent severity and random disturbances. Let V contain variables generated inside the model, such as contact X and unresolved outcome Y. Each variable has a function that maps its direct causes and an exogenous disturbance to its value. A distribution over U tells us how cases vary. The tuple is often written M = (U, V, F, P(U)) (Peters, Janzing and Schölkopf, 2017).
The equation for contact is not a fitted identity that must remain true in every imaginable world. It describes how contact is generated in the observational regime. A hard intervention do(X = 1) removes that assignment and fixes contact to one. Graphically, incoming arrows to X are cut. The equations for severity and outcome remain unchanged. This surgical semantics underlies the familiar do-operator (Pearl, 1995).
| Question | Compared populations | Unresolved risk | Difference |
|---|---|---|---|
| Observation | Cases selected by the existing triage policy | Contact 42%; no contact 34% | +8 points, misleading harm |
| Intervention | The same severity mix under each contact setting | do(contact) 30%; do(no contact) 55% | −25 points, benefit |
Identification: recovering the altered world
Writing P(Y | do(X=x)) defines the target, but it does not guarantee that historical data identify it. Identification asks whether the interventional quantity can be expressed using distributions we can observe under the stated graph and assumptions. Estimation comes later. This order prevents an impressively precise number from answering an unlicensed question.
In the contact example, suppose severity S is measured before contact and blocks every non-causal path between contact X and outcome Y. Then the intervention risk can be recovered by standardising both contact groups to the same severity mix:
The first factor asks what happened among people with the same recorded severity and contact status. The second restores the target population’s severity distribution instead of accepting the distribution created by triage. With half the population severe and half mild, the formula produces 30 per cent unresolved under contact and 55 per cent under no contact, exactly as the mental calculation did. The equation compresses a reweighting argument; it does not create the causal assumptions that justify it.
Four conditions carry the result. Severity must be measured well enough to remove the relevant common-cause path. Each severity group must contain both contacted and uncontacted cases, otherwise the missing action is unsupported by data. “Contact” must denote the same intervention across records and the proposed policy. Finally, one case’s contact must not change another case’s outcome within the chosen unit boundary. These are versions of exchangeability, positivity, consistency and no interference used throughout modern causal inference (Hernán and Robins, 2020).
Randomisation addresses the first problem by making assignment independent of pre-treatment background in expectation. It does not make every later contrast causal by magic. Non-adherence, attrition, measurement after treatment, spillovers and a poorly specified action can reopen the gap. A useful discipline is to describe the hypothetical trial the observational analysis is trying to emulate: eligibility, assignment, treatment strategy, follow-up, outcome and estimand. The closer the data-generating process is to that target, the smaller the bridge that assumptions must carry.
The potential-outcome bridge
The same decision can be expressed without structural equations. For each case, let Y(1) be the outcome under contact and Y(0) the outcome under no contact. The average causal effect is the population mean of Y(1) − Y(0). Random assignment makes contacted and uncontacted groups comparable in expectation, which is why experimental contrasts can identify average effects. This treatment-based language grew through the work of Neyman and Rubin, and its limits were famously framed as the fact that only one potential outcome is observed for each unit (Rubin, 1972) (Holland, 1986).
Structural models and potential outcomes are not rival slogans. They are often compatible descriptions of the same intervention, but they emphasise different tasks. Potential outcomes force the analyst to define the treatment and estimand. Graphs expose adjustment, mediation and hidden paths. Structural equations additionally specify how unit-level outcomes are generated, which becomes decisive for counterfactuals.
The mechanism-preservation contract
The formal intervention is clean because it says exactly what changes. Real actions are not always surgical. A new contact policy may alter staffing, waiting times, customer expectations and later triage. A drug may affect several pathways. Clamping an activation in a neural network may move it far outside the states on which downstream computation was trained. Each causal query therefore spends an invariance budget: it assumes that some mechanisms remain usable after another is changed.
This paper’s practical proposal is a mechanism-preservation contract. Before estimating an effect, record the intervention, the rule it replaces, the mechanisms presumed invariant, the population and time window, the unit boundary, and the observations that would revoke the claim. It is not a new causal calculus. It is a discipline for exposing the assumptions that a polished effect estimate can hide.
The intervention must be written at the level actually available. Setting contact to one for every case is a hard intervention. Lowering the triage threshold is a policy intervention because contact still depends on severity and capacity, but through a changed rule. Training staff to interpret risk differently is softer still: it alters the conditional distribution of contact rather than fixing its value. These interventions can have different effects even when each raises the overall contact rate to the same percentage.
This yields a practical break condition. An effect of do(X=1) cannot authorise a threshold policy merely because both involve “more contact”. The policy may target a different mix of cases and change waiting time. The causal licence attaches to an intervention family, not to a variable name. The contract should therefore include an implementation description precise enough that another team could tell whether its proposed action is inside or outside the studied family.
The semantics of intervention and the need for assumptions are established causal-inference principles. The “mechanism-preservation contract” and “invariance budget” are practitioner terms proposed here. They would be strengthened if prospective use caught query-to-model mismatches before deployment, weakened if expert teams already expose the same assumptions with no added benefit, and confounded by the possibility that better teams simply document everything better.
Alternative histories need the same hidden world
An intervention asks about a population under a changed rule. A counterfactual asks about a case whose actual history is partly known: “This severe case was contacted and resolved. Would it have remained unresolved without contact?” The word this changes the mathematical burden. We are no longer free to draw a fresh case from the population.
The standard SCM procedure has three steps. Abduction uses observed evidence to update beliefs about the hidden background. Action replaces the equation for the counterfactual intervention. Prediction propagates the inferred background through the modified equations. The first step is why unit-level counterfactuals are more demanding than average effects: the model must say how observations constrain unobserved disturbances.
Preserving the same background does not mean freezing every recorded field. It means reusing the factors treated as upstream of the intervention, then allowing descendants to change through their equations. If contact changes waiting time, later messages and customer behaviour, those variables should move in the alternative history. Holding them fixed would splice together pieces of incompatible worlds. Conversely, changing a pre-existing diagnosis merely because contact changed would violate the model in the other direction.
This also separates two kinds of uncertainty. We may be unsure about the hidden background for this case even with a fixed structural model. We may also be unsure which structural model and cross-world coupling are correct. More factual evidence can reduce the first. It may leave the second untouched. Responsible individual explanations should report both rather than turning model-dependent precision into personal certainty.
Why feature edits are not automatically counterfactuals
Machine-learning explanations often change an input until the prediction flips: reduce declared debt, increase tenure, remove a symptom, alter an image patch. Such a perturbation can reveal decision sensitivity. It becomes a causal counterfactual only if the edited variable names a coherent intervention and the remaining features are generated consistently with it. Changing age while holding every age-dependent variable fixed does not describe a possible person. Editing a latent activation may not correspond to any stable change in the world.
A feature perturbation is an intervention only when its generating and downstream consequences are specified. Otherwise the result belongs in the function ledger: it tells us how the model behaves under an input change, not what would have happened in the represented world.
Not every decision problem requires unit-level counterfactual ontology. Dawid and more recent treatment-wise prediction approaches argue that many causal tasks can be framed as predicting outcomes under hypothetical future regimes, avoiding claims about unobserved personal histories (Dawid, 2000) (Höltgen and Williamson, 2024). This challenge does not collapse intervention into association. It asks whether the stronger cross-world object is necessary for the decision at hand. The practical response is to request the weakest causal query that can change the decision.
stateDiagram-v2 [*] --> Claim state "Identification: recovering the<br/>altered world" as Claim state "The potential-outcome bridge" as Test state "The mechanism-preservation<br/>contract" as Revision Claim --> Test: expose mechanism Test --> Decision: evidence survives Test --> Revision: rival survives Revision --> Claim: narrow or rebuild Decision --> [*]
Build the model, then try to break its licence
Causal language is useful only when it changes how a system is built and tested. Consider a synthetic service that predicts whether a case will remain open and proposes proactive expert contact. Historical contact decisions came from human triage. The deployed system will change contact frequency. The configured system therefore needs more than a classifier.
Its causal dossier should name the target population, the outcome window, the action actually available, the triage variables that jointly cause action and outcome, the capacity effects created by more contacts, and the policy whose effect is sought. The model proposal may estimate risk, but authority to change contact policy should depend on an identified effect or an experiment, not on risk association alone.
Four gates should remain separate. Definition asks whether the action and outcome are operationally precise. Identification asks whether the desired effect follows from the available data plus assumptions. Transport asks whether the mechanisms and population used for estimation match the intended deployment. Decision combines the effect with capacity, cost, uncertainty and asymmetric harm. A system can pass the first two gates and still fail the last two.
Suppose contact shortens resolution for each contacted case, but the service can absorb only 300 additional contacts weekly. A policy that assigns 900 creates a new waiting-time pathway. The relevant estimand is no longer the isolated effect of contact. It is the effect of the configured policy, including queue discipline, staff allocation and displaced work. A unit-level treatment effect does not scale into a policy effect by multiplication when deployment changes the mechanisms around the unit.
Scroll within the figure to inspect the configured-system boundary.
Structural-causal-model lab: make association reverse
The simulator generates synthetic cases from explicit equations. Increase triage bias and watch the observational contrast diverge from the interventional contrast. Both calculations use the same cases; only the treatment mechanism changes.
- Observed difference
- 0.0 pp
- Causal difference
- 0.0 pp
- Sign agreement
- Pending
Run the simulation to inspect a case whose outcome changes when contact is toggled while background noise is held fixed.
A positive observational difference alongside a negative interventional difference reproduces confounding reversal. It permits the narrow conclusion that the explicit synthetic SCM can generate accurate associations with the wrong action sign. It does not prove that any real service has this graph, these risks or no other side effects. A negative result may mean low confounding, weak treatment effect, limited sample size or simply a parameter region without reversal.
function generateCase(rng, triageBias, benefit) {
const U = rng() < 0.5 ? 1 : 0; // latent severity
const pContact = 0.5 + (U ? 1 : -1) * 0.45 * triageBias;
const EX = rng();
const EY = rng();
const X = EX < pContact ? 1 : 0; // observed policy
const risk = (x) => {
const untreated = U ? 0.90 : 0.20;
const reduction = U ? benefit : benefit * 0.25;
return Math.max(0.01, untreated - reduction * x);
};
const outcome = (x) => EY < risk(x) ? 1 : 0; // same EY in both worlds
return { U, X, Y: outcome(X), Y1: outcome(1), Y0: outcome(0) };
}
// Observation groups by the policy-generated X.
// Intervention ignores that assignment and evaluates Y1 and Y0 for every case.
Implementation assumptions and extended checks
The lab assumes independent cases, a binary latent severity, no measurement error, no capacity constraint, a well-defined contact action and a stable outcome equation. It reuses each case’s EY across worlds, which supplies a particular counterfactual coupling. Change that coupling and individual switcher labels can change even when average interventional rates remain similar.
Useful checks include: set triage bias to zero and confirm observational and interventional contrasts converge with large samples; set benefit to zero and confirm the interventional difference approaches zero; increase sample size and verify that sampling noise shrinks but confounding bias remains; replace the shared EY with independent draws to see why that computes two population interventions rather than a unit-level counterfactual.
Test the licence before trusting the estimate
The smallest useful assurance sequence has four stages. First, reproduce the observational association and the adjusted or experimental estimand from versioned synthetic or historical data. Second, use negative controls and placebo interventions to expose paths the proposed graph says should be absent. Third, run a bounded pilot at the intended policy scale, including realistic capacity and timing. Fourth, read back outcomes and mechanism indicators, rather than only whether the action executed.
For the contact service, useful mechanism indicators include assignment mix by severity, wait time, expert utilisation, contact completion, downstream channel switching and outcomes for untreated cases. If the estimated benefit remains but untreated cases deteriorate as the queue grows, the intervention has created interference. If severity coding changes after staff see the score, a previously pre-treatment covariate has become part of the policy loop. If the same action label hides shorter or lower-quality contacts, consistency has failed.
Write at least one observation that would revoke each preserved mechanism, then instrument it during the pilot. An assumption that cannot generate a monitoring signal is not yet an operational control. Passing the pilot licenses only the tested population, scale, implementation and horizon. Expansion is a new intervention and should spend a new invariance budget.
This protocol does not remove the need for domain judgement. Negative controls can share hidden biases, pilots can be underpowered, and short horizons can miss delayed effects. Its value is narrower: it turns causal assumptions into prospective failure searches. A surprising result can then lower the claim instead of being explained away after rollout.
Four ways the preservation contract breaks
A causal licence must name its boundary before the system crosses it. The most important failures are not mysterious. Each violates a declared or hidden preservation assumption.
Interference breaks unit separation. Causal designs can model spillovers or partial interference, but they need a larger treatment vector and a declared network or cluster boundary (Hudgens and Halloran, 2008). Feedback breaks a one-pass acyclic story. If outcomes change future triage and resources, cycles may lack a unique equilibrium or even a solution unless explicit solvability conditions hold (Bongers et al., 2021).
Transport shift breaks population invariance. An effect learned in one region, interface or operating regime does not automatically carry to another. Transportability analysis makes differences between source and target populations part of the model rather than a footnote (Bareinboim and Pearl, 2016). Representation shift breaks variable meaning. A stable predictor across environments can be evidence for a causal mechanism under assumptions, but invariance alone does not identify hidden causal variables in general (Peters, Bühlmann and Meinshausen, 2016) (Bing et al., 2023).
Scroll within the figure to follow the feedback path.
What causal intervention can establish about a mind
The same discipline matters when studying biological or artificial minds. Ablating a circuit, patching an activation or disrupting a brain region can support a mechanism claim when the intervention is specific, the candidate system boundary is declared and downstream changes are measured. It can show that a component is necessary or sufficient under the tested conditions.
It cannot by itself show that the component constitutes intelligence, consciousness or experience. A broad perturbation may alter many mechanisms; an artificial activation may be off-manifold; a behavioural change may travel through a compensating route. Intervention upgrades correlation to a model-relative causal claim, not to an ontological verdict. Questions about what a system is, or whether anything is experienced, require additional constitutive and evidential bridges.
Teams that attach a mechanism-preservation contract to every consequential model-to-action transition will detect more causal-query mismatches before deployment than teams using model cards alone. A small useful test would randomise project teams to standard review or standard review plus the contract, then score preregistered defects found by an independent panel. The hypothesis weakens if detection, decision quality and review time do not improve. A rival explanation is that any structured checklist raises attention. The proposal should not be applied as paperwork to low-consequence descriptive analytics.
sequenceDiagram participant Q as Question participant M as Mechanism participant E as Evidence participant D as Decision Q->>M: The helicopter flag M->>E: Identification, recovering the altered world E-->>M: compare rival explanations E->>D: Specify the modified world before trusting the prediction D-->>Q: revise scope or act
Specify the modified world before trusting the prediction
When a model will only rank, forecast or compress observations, predictive validation may be enough. When its output will change the variable it used to predict, the review must change category. The team must state the action as an intervention, identify the comparison world, and show why the relevant mechanisms remain usable after the action.
Do not promote an association model into action authority until its mechanism-preservation contract is explicit and tested at the scale of the intended policy. If the contract cannot be written, keep the model descriptive or advisory. If it can be written but the effect is unidentified, run an experiment, exploit a defensible natural experiment, collect the missing variables or narrow the claim. If scaling changes capacity, interference or feedback, estimate the configured policy rather than multiplying a unit effect.
For counterfactual explanations, ask one further question: what makes the alternative history belong to the same case? If the answer is only “the other features were held constant”, the result is a sensitivity test. A causal counterfactual needs a model of which background facts remain shared and how the edit propagates.
The decision instrument is deliberately asymmetric. A weak causal case should narrow action authority, not be rescued by a stronger predictive score. A stronger causal design may justify a bounded pilot, but not automatic transfer to another scale or population. Each enlargement must show which mechanisms still deserve preservation.
The deeper shift is methodological. Causality is not a superior flavour of prediction. It is prediction inside an explicitly modified world. The intellectual work lies in specifying the modification, paying the invariance debt, and recognising when the world has changed more than the model allowed.
Glossary
- Association
- A relationship in an observed distribution. It can support prediction without establishing what setting one variable would do to another.
- Confounder
- A common cause of an action or exposure and an outcome, creating a non-causal path between them.
- Counterfactual
- An outcome in an alternative history for a case whose actual history provides evidence about its background state.
- Exogenous variable
- A background variable treated as determined outside the modelled system boundary. In an SCM it supplies unit-level variation to structural assignments.
- Intervention
- A specified change to the generating process, commonly represented in an SCM by replacing one structural assignment.
- Mechanism invariance
- The assumption that selected generating rules remain stable across a declared set of interventions, environments or times.
- Potential outcome
- The outcome assigned to a unit under a specified treatment condition, such as Y(1) and Y(0).
- Structural causal model
- A set of variables, structural assignments and exogenous distributions that represents observational, interventional and, with further coupling, counterfactual worlds.
References
Primary and authoritative sources are favoured. The practitioner contract and figures labelled as synthesis are original to this article.
- Bareinboim, E. and Pearl, J. (2016). “Causal inference and the data-fusion problem.” Proceedings of the National Academy of Sciences, 113(27), 7345–7352. DOI.
- Bing, S., Wahl, J., Ninad, U. and Runge, J. (2023). “Invariance & Causal Representation Learning: Prospects and Limitations.” arXiv:2312.03580.
- Bongers, S., Forré, P., Peters, J. and Mooij, J. M. (2021). “Foundations of Structural Causal Models with Cycles and Latent Variables.” The Annals of Statistics, 49(5), 2885–2915. DOI.
- Dawid, A. P. (2000). “Causal Inference Without Counterfactuals.” Journal of the American Statistical Association, 95(450), 407–424. DOI.
- Hernán, M. A. and Robins, J. M. (2020). Causal Inference: What If. Chapman & Hall/CRC. Official open-access edition.
- Holland, P. W. (1986). “Statistics and Causal Inference.” Journal of the American Statistical Association, 81(396), 945–960. DOI.
- Höltgen, B. and Williamson, R. C. (2024). “Causal modelling without counterfactuals and individualised effects.” arXiv:2407.17385.
- Hudgens, M. G. and Halloran, M. E. (2008). “Toward Causal Inference With Interference.” Journal of the American Statistical Association, 103(482), 832–842. DOI.
- Pearl, J. (1995). “Causal diagrams for empirical research.” Biometrika, 82(4), 669–710. Author-hosted paper.
- Peters, J., Bühlmann, P. and Meinshausen, N. (2016). “Causal inference by using invariant prediction: identification and confidence intervals.” Journal of the Royal Statistical Society: Series B, 78(5), 947–1012. DOI.
- Peters, J., Janzing, D. and Schölkopf, B. (2017). Elements of Causal Inference: Foundations and Learning Algorithms. MIT Press. Publisher page and open-access edition.
- Rubin, D. B. (1972). “Estimating Causal Effects of Treatments in Experimental and Observational Studies.” ETS Research Bulletin Series, 1972(2), i–31. DOI.
- Schölkopf, B., Locatello, F., Bauer, S., Ke, N. R., Kalchbrenner, N., Goyal, A. and Bengio, Y. (2021). “Toward Causal Representation Learning.” Proceedings of the IEEE, 109(5), 612–634. DOI.