SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2506.06039 · NeurIPS · 2025

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

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

arXiv · PDF · Open in the Atlas

Code that ran

4 of 8 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (1 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 1 has no contract verdict; 2 failures of our instrument; 4 no recorded run), measured 2026-11-24; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2506.06039.json · badge: /api/ran/2506.06039.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
jr2021/Do-PFN community
Papers with Code archive
4 ran · 4 no recorded run
FunctionStatusWhere it lives
LayerStack Ran
ran on a synthesized input · constructed an object; no result was computed
jr2021/Do-PFN/model/transformer.py
pointer only (licence: NONE) · get_code("af28181df3196f4a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jr2021/Do-PFN when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

custom_attn_forward Ran
ran; our contract draft was wrong, not the code
jr2021/Do-PFN/model/transformer.py
pointer only (licence: NONE) · get_code("0b51b949c2111733")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jr2021/Do-PFN when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_cu_seqlens Ran
ran, honoured the contract we drafted
jr2021/Do-PFN/model/transformer.py
pointer only (licence: NONE) · get_code("42a763521fc7ad32")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jr2021/Do-PFN when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

make_decoder_dict Ran
ran; our contract draft was wrong, not the code
jr2021/Do-PFN/model/transformer.py
pointer only (licence: NONE) · get_code("b822692ae1f99b30")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jr2021/Do-PFN when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

TransformerEncoderLayer Not yet run
unverified (harvested, no recorded run)
jr2021/Do-PFN/model/transformer.py
pointer only (licence: NONE) · get_code("1dabe5224805f198")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jr2021/Do-PFN when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

TransformerModel Not yet run
unverified (harvested, no recorded run)
jr2021/Do-PFN/model/transformer.py
pointer only (licence: NONE) · get_code("f9ec68b01738eb41")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jr2021/Do-PFN when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

flash_attn_forward Not yet run
unverified (harvested, no recorded run)
jr2021/Do-PFN/model/transformer.py
pointer only (licence: NONE) · get_code("5e6aa672faea6a4d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jr2021/Do-PFN when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

print_once Not yet run
unverified (harvested, no recorded run)
jr2021/Do-PFN/model/transformer.py
pointer only (licence: NONE) · get_code("cc4e902532103f0f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jr2021/Do-PFN when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 8 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

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. 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.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2506.06039")
get_code_for_paper("2506.06039")
have("2506.06039")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2506.06039.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2506.06039.svg)](https://syntology.ai/paper/2506.06039)

Connect an agent — have() is free.