Transformers Can Distinguish Causation From Correlation
Estimating how interventions affect a target outcome from observational data is central to sci-entific research, economics, and decision-making. Reconstructing a complete causal graph canbe computationally demanding, while many applications require only the effects of selected in-terventions on a specified outcome. We introduce DoKernel, a transformer-based in-context es-timator for causal effect estimation under continuous interventions. The model predicts full out-come distributions from observational data without explicitly reconstructing the causal graph.Training uses only synthetic structural causal models. The prior combines identifiable additive-noise models with restricted confounders-with-additive-noise models. We investigate whetherthis training enables the estimator to distinguish causal influence from associations induced bylatent common causes, while supporting abstention on queries judged ambiguous under the as-sumed model class. Our theoretical analysis establishes a quantitative bound that relates theintervention-density prediction error to errors in detecting causal influence, subject to a mini-mum effect-separation condition. This provides a behavioral guaranty without requiring explicitrecovery of structural mechanisms or exogenous noise. Evaluation covers bi-variate and multi-variate systems of increasing size and held-out real-world datasets with known causal structure.In the evaluated real-world tasks, Do-Kernel outperforms the tested classical discovery baselinesin causal-influence detection and graph-informed estimators in effect prediction. The model re-ceives no causal graph at inference and requires no fine-tuning. These results provide empiricalevidence of transfer beyond the synthetic training distribution.
Authors
- Ahmed Moneim
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-26
- DOI
- https://doi.org/10.5281/zenodo.24571490
- Primary Topic
- Advanced Causal Inference Techniques
- Type
- preprint