Papers › A Meta-Learning Approach to Bayesian Causal Discovery

A Meta-Learning Approach to Bayesian Causal Discovery

21 Dec 2024arXiv:2412.16577archive 2025-07-28

Anish Dhir, Matthew Ashman, James Requeima, Mark van der Wilk

Discovering a unique causal structure is difficult due to both inherent identifiability issues, and the consequences of finite data. As such, uncertainty over causal structures, such as those obtained from a Bayesian posterior, are often necessary for downstream tasks. Finding an accurate approximation to this posterior is challenging, due to the large number of possible causal graphs, as well as the difficulty in the subproblem of finding posteriors over the functional relationships of the causal edges. Recent works have used meta-learning to view the problem of estimating the maximum a-posteriori causal graph as supervised learning. Yet, these methods are limited when estimating the full posterior as they fail to encode key properties of the posterior, such as correlation between edges and permutation equivariance with respect to nodes. Further, these methods also cannot reliably sample from the posterior over causal structures. To address these limitations, we propose a Bayesian meta learning model that allows for sampling causal structures from the posterior and encodes these key properties. We compare our meta-Bayesian causal discovery against existing Bayesian causal discovery methods, demonstrating the advantages of directly learning a posterior over causal structure.

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="2412.16577")

Code

Syntology Ran 1 of 16 code samples harvested from 1 repository linked to this paper; 15 have no recorded run. Of those that ran: 1 ran · our draft was wrong.

By repository: community (archive-listed): 15 samples from 1 repository, 0 ran; 1 identical to code first harvested elsewhere. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

Anish144/CausalStructureNeuralProcess mentioned on GitHubpytorchMIT 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; 1 ran; 0 honoured the contract we drafted; 15 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.

1ran · our draft was wrong
15unverified

Licence: 1 of the 16 samples is 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 Anish144/CausalStructureNeuralProcess. Some samples are identical code Syntology first harvested from another repository; for those, this paper's copy is not located and its licence is not recorded. “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.

balance_for_auc Anish144/CausalStructureNeuralProcess/ml2_meta_causal_discovery/utils/metrics.py community (archive-listed) unverified MIT (permissive) · 75176516afeedbb4 · report
batch Anish144/CausalStructureNeuralProcess/ml2_meta_causal_discovery/utils/helpers.py community (archive-listed) unverified MIT (permissive) · 1a65e10e8d0a485b · report
build_mlp Anish144/CausalStructureNeuralProcess/ml2_meta_causal_discovery/models/causaltransformercomponents.py community (archive-listed) unverified MIT (permissive) · 1fcb0240ade1eb3c · report
calculate_auc Anish144/CausalStructureNeuralProcess/ml2_meta_causal_discovery/utils/metrics.py community (archive-listed) unverified MIT (permissive) · 1731dc78c5f9c460 · report
compress_batch_dimensions Anish144/CausalStructureNeuralProcess/ml2_meta_causal_discovery/utils/helpers.py community (archive-listed) unverified MIT (permissive) · e48a440c91fe3bdf · report
cyclicity Anish144/CausalStructureNeuralProcess/ml2_meta_causal_discovery/utils/metrics.py community (archive-listed) unverified MIT (permissive) · 480302d65d118255 · report
generate_random_dag Anish144/CausalStructureNeuralProcess/ml2_meta_causal_discovery/datasets/causal_graph_generator.py community (archive-listed) unverified MIT (permissive) · a67185539f352f49 · report
generate_synthetic_dag Anish144/CausalStructureNeuralProcess/ml2_meta_causal_discovery/datasets/causal_graph_generator.py community (archive-listed) unverified MIT (permissive) · 0090b66ac20f2e33 · report
get_random_indices Anish144/CausalStructureNeuralProcess/ml2_meta_causal_discovery/utils/datautils.py community (archive-listed) unverified MIT (permissive) · d3aec780435dd02f · report
retun_default_args Anish144/CausalStructureNeuralProcess/ml2_meta_causal_discovery/utils/args.py community (archive-listed) unverified MIT (permissive) · 3715f9dedbfce722 · report
sample_lengthscale Anish144/CausalStructureNeuralProcess/ml2_meta_causal_discovery/utils/gplvm_utils.py community (archive-listed) unverified MIT (permissive) · 34228451461107e8 · report
sample_variance Anish144/CausalStructureNeuralProcess/ml2_meta_causal_discovery/utils/gplvm_utils.py community (archive-listed) unverified MIT (permissive) · d54d06358c0f7c9a · report
transformer_classifier_split_withpadding Anish144/CausalStructureNeuralProcess/ml2_meta_causal_discovery/utils/datautils.py community (archive-listed) unverified MIT (permissive) · e6fcc8b735c0a08c · report
turn_bivariate_causal_graph_to_label Anish144/CausalStructureNeuralProcess/ml2_meta_causal_discovery/utils/datautils.py community (archive-listed) unverified MIT (permissive) · b531baf3d12f98f3 · report
with_first_last Anish144/CausalStructureNeuralProcess/ml2_meta_causal_discovery/utils/helpers.py community (archive-listed) unverified MIT (permissive) · 26c82df107366b6e · report
list_of_strings identical code first harvested elsewhere ran · our draft was wrong fingerprinted licence of this copy not recorded · 19ee4683eda506c6 · report

Tasks

Causal DiscoveryMeta-Learning

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