Papers › Sample, estimate, aggregate: A recipe for causal discovery foundation models

Sample, estimate, aggregate: A recipe for causal discovery foundation models

2 Feb 2024arXiv:2402.01929archive 2025-07-28

Menghua Wu, Yujia Bao, Regina Barzilay, Tommi Jaakkola

Causal discovery, the task of inferring causal structure from data, has the potential to uncover mechanistic insights from biological experiments, especially those involving perturbations. However, causal discovery algorithms over larger sets of variables tend to be brittle against misspecification or when data are limited. For example, single-cell transcriptomics measures thousands of genes, but the nature of their relationships is not known, and there may be as few as tens of cells per intervention setting. To mitigate these challenges, we propose a foundation model-inspired approach: a supervised model trained on large-scale, synthetic data to predict causal graphs from summary statistics -- like the outputs of classical causal discovery algorithms run over subsets of variables and other statistical hints like inverse covariance. Our approach is enabled by the observation that typical errors in the outputs of a discovery algorithm remain comparable across datasets. Theoretically, we show that the model architecture is well-specified, in the sense that it can recover a causal graph consistent with graphs over subsets. Empirically, we train the model to be robust to misspecification and distribution shift using diverse datasets. Experiments on biological and synthetic data confirm that this model generalizes well beyond its training set, runs on graphs with hundreds of variables in seconds, and can be easily adapted to different underlying data assumptions.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2402.01929")

Code

Syntology Ran 12 of 16 code samples harvested from 1 repository linked to this paper; 4 have no recorded run. Of those that ran: 12 ran with no contract checked.

By repository: official repository: 16 samples from 1 repository, 12 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

rmwu/sea officialmentioned in papermentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

16 samples harvested; 12 ran; 0 honoured the contract we drafted; 4 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

12ran
4unverified

Licence: 16 of the 16 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from rmwu/sea. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

adj rmwu/sea/src/ges/utils.py official repository ran no licence file found · pointer only · 89d20c69f3c6527d · report
get_mask rmwu/sea/src/model/baseline.py official repository ran no licence file found · pointer only · a367036b61699c66 · report
get_params_groups rmwu/sea/src/model/utils.py official repository ran no licence file found · pointer only · 53c768f1526a2e2c · report
get_suffix rmwu/sea/src/utils.py official repository ran fingerprinted no licence file found · pointer only · 56ee495500ae3e00 · report
na rmwu/sea/src/ges/utils.py official repository ran no licence file found · pointer only · 219a7efaf7fb487c · report
neighbors rmwu/sea/src/ges/utils.py official repository ran no licence file found · pointer only · 9b79ca71eafd0891 · report
override_args rmwu/sea/src/args.py official repository ran no licence file found · pointer only · b3d4fdc848c17859 · report
precision_recall rmwu/sea/src/cdt/metrics.py official repository ran no licence file found · pointer only · 74b6c24a736de396 · report
read_csv rmwu/sea/src/utils.py official repository ran no licence file found · pointer only · c59f9272b2e9178c · report
read_pickle rmwu/sea/src/utils.py official repository ran no licence file found · pointer only · 621ec17cc6678229 · report
retrieve_adjacency_matrix rmwu/sea/src/cdt/metrics.py official repository ran no licence file found · pointer only · 91007bd87b2f9f18 · report
shd_metric rmwu/sea/src/model/utils.py official repository ran fingerprinted no licence file found · pointer only · 71a5a3022973fb47 · report
exp_fit_bic rmwu/sea/src/gies/scratch.py official repository unverified no licence file found · pointer only · 9b483f9d2de5ac74 · report
get_CPDAG rmwu/sea/src/cdt/metrics.py official repository unverified no licence file found · pointer only · 4f41006b7caf1dfc · report
get_model_cls rmwu/sea/src/model/factory.py official repository unverified no licence file found · pointer only · d96988e33b80fd0e · report
load_model rmwu/sea/src/model/factory.py official repository unverified no licence file found · pointer only · 599cc4499ffcf6d0 · report

Tasks

Causal Discovery

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections