Lune

NeurIPS2025Top-tier venue

Do-PFN: In-Context Learning for Causal Effect Estimation

Jake Robertson, Arik Reuter, Siyuan Guo, Noah Hollmann, Frank Hutter, Bernhard Schölkopf

Abstract

Causal effect estimation is critical to a range of scientific disciplines. Existing methods for this task either require interventional data, knowledge about the ground-truth causal graph, or rely on assumptions such as unconfoundedness, restricting their applicability in real-world settings. In the domain of tabular machine learning, Prior-data fitted networks (PFNs) have achieved state-of-theart predictive performance, having been pre-trained on synthetic causal data to solve tabular prediction problems via in-context learning. To assess whether this can be transferred to the problem of causal effect estimation, we pre-train PFNs on synthetic data drawn from a wide variety of causal structures, including interventions, to predict interventional outcomes given observational data. Through extensive experiments in synthetic and semi-synthetic settings, we show that our approach allows for the accurate estimation of causal effects without knowledge of the underlying causal graph. Recent developments have shown that certain limitations in inferring causal structures and causal effects can be addressed by using multi-domain data in the form of mixtures of i.i.d. observational data (Guo et al., 2023 (Guo et al., , 2024)) . Interestingly, PFNs also leverage pre-training on a mixture of i.i.d. data to meta-learn how to solve predictive tasks at test time. We thus hypothesize that some causal tasks at test time could also be addressed through meta-learning on multi-domain data. As a first step, our goal is to extend PFNs to the problem of estimating conditional interventional distributions (CIDs). In contrast to TabPFN, we not only simulate observational tabular data in order to predict a target feature. Rather, we additionally simulate causal interventions, teaching our model, which we call Do-PFN, to meta-learn how to perform causal inference. Our contributions 1. Do-PFN: We propose Do-PFN, a foundation model pre-trained on data from structural causal models (SCMs) that can predict interventional outcomes and causal effects from observational data. 2. Semi-synthetic evaluation: We evaluate the performance of Do-PFN on six case studies across more than 1,000 synthetic datasets, the popular RealCause benchmark (Neal et al., 2020) , as well as two observational datasets with widely agreed upon causal graphs. We provide ablation studies within our prior, an out-of-distribution analysis, assess uncertainty calibration, and evaluate Do-PFN against a competitive set of meta-learners, doubly robust, and deep-learning-based methods in the task of CATE estimation. 3. Theoretical results: In providing a mathematical underpinning for Do-PFN, we prove that it can achieve an optimal approximation of the conditional intervention distribution (CID) concerning the chosen prior over data-generating functions. We also provide a characterization of the sources of uncertainty in our model, and present a consistency argument to show which types of uncertainty vanish with infinite data.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

9 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • ForecastPFN: Synthetically-Trained Zero-Shot Forecasting cites Transformers Can Do Bayesian Inference
  • Frequentist Consistency of Prior-Data Fitted Networks for Causal Inference cites Transformers Can Do Bayesian Inference
  • Frequentist Consistency of Prior-Data Fitted Networks for Causal Inference cites Foundation Models for Causal Inference via Prior-Data Fitted Networks
  • Use What You Know: Causal Foundation Models with Partial Graphs cites Transformers Can Do Bayesian Inference
  • Use What You Know: Causal Foundation Models with Partial Graphs cites Foundation Models for Causal Inference via Prior-Data Fitted Networks
  • Use What You Know: Causal Foundation Models with Partial Graphs cites Transformer Neural Processes: Uncertainty-Aware Meta Learning Via Sequence Modeling
  • Foundation Models for Causal Inference via Prior-Data Fitted Networks cites Transformers Can Do Bayesian Inference
  • Foundation Models for Causal Inference via Prior-Data Fitted Networks cites CausalPFN: Amortized Causal Effect Estimation via In-Context Learning
  • Transformer Neural Processes: Uncertainty-Aware Meta Learning Via Sequence Modeling cites Transformers Can Do Bayesian Inference
  • TabICLv2: A Better, Faster, Scalable, and Open Tabular Foundation Model cites Transformers Can Do Bayesian Inference
  • TabICLv2: A Better, Faster, Scalable, and Open Tabular Foundation Model cites Foundation Models for Causal Inference via Prior-Data Fitted Networks
  • CausalPFN: Amortized Causal Effect Estimation via In-Context Learning cites Amortized Inference for Causal Structure Learning
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers9

  1. TabICLv2: A Better, Faster, Scalable, and Open Tabular Foundation ModelJingang QU, David Holzmüller, Gael Varoquaux, Marine Le MorvanICML 2026 · 85 citations
  2. CausalPFN: Amortized Causal Effect Estimation via In-Context LearningVahid Balazadeh Meresht, Hamidreza Kamkari, Valentin Thomas, Junwei Ma et al.NeurIPS 2025 · 52 citations
  3. Foundation Models for Causal Inference via Prior-Data Fitted NetworksYuchen Ma, Dennis Frauen, Emil Javurek, Stefan FeuerriegelICLR 2026 · 37 citations
  4. Frequentist Consistency of Prior-Data Fitted Networks for Causal InferenceValentyn Melnychuk, Vahid Balazadeh, Stefan Feuerriegel, Rahul G. KrishnanICML 2026 · 4 citations
  5. Use What You Know: Causal Foundation Models with Partial GraphsArik Reuter, Anish Dhir, Cristiana Diaconu, Jake Robertson et al.ICML 2026 · 2 citations

Builds on17

  1. Transformers Can Do Bayesian InferenceSamuel Müller, Noah Hollmann, Sebastian Pineda-Arango, Josif Grabocka et al.ICLR 2022 · 287 citations
  2. Flow Matching for Scalable Simulation-Based InferenceJonas Wildberger, Maximilian Dax, Simon Buchholz, Stephen R. Green et al.NeurIPS 2023 · 153 citations
  3. Transformer Neural Processes: Uncertainty-Aware Meta Learning Via Sequence ModelingTung Nguyen, Aditya GroverICML 2022 · 148 citations
  4. ForecastPFN: Synthetically-Trained Zero-Shot ForecastingSamuel Dooley, Gurnoor Singh Khurana, Chirag Mohapatra, Siddartha V. Naidu et al.NeurIPS 2023 · 142 citations
  5. Amortized Inference for Causal Structure LearningLars Lorch, Scott Sussex, Jonas Rothfuss, Andreas Krause et al.NeurIPS 2022 · 118 citations

Related papers

  1. Relational In-Context Learning via Synthetic Pre-training with Structural PriorYanbo Wang, Jiaxuan You, Chuan Shi, Muhan ZhangICML 2026 · 8 citations
  2. StablePFN: Stable Prediction with Causal-Aware Tabular Foundation ModelZhengkang Guan, Yikang Chen, Haoyuan Qian, Kairong Han et al.KDD 2026
  3. Unveiling Prior-Data Fitted Networks on Causal Effect Estimation: Pre-Training or Fine-Tuning?Haotian Wang, Xinpeng Lv, Hao Zou, Yanghao Xiao et al.ICML 2026
  4. Drift-Resilient TabPFN: In-Context Learning Temporal Distribution Shifts on Tabular DataKai Helli, David Schnurr, Noah Hollmann, Samuel Müller et al.NeurIPS 2024 · 43 citations
  5. FairPFN: A Tabular Foundation Model for Causal FairnessJake Robertson, Noah Hollmann, Samuel Müller, Noor H. Awad et al.ICML 2025
Dusk over the sea between two cliffs drawn in fine vertical lines