Papers › Causal Discovery in Heterogeneous Environments Under the Sparse Mechanism Shift Hypothesis

Causal Discovery in Heterogeneous Environments Under the Sparse Mechanism Shift Hypothesis

4 Jun 2022arXiv:2206.02013archive 2025-07-28

Ronan Perry, Julius von Kügelgen, Bernhard Schölkopf

Machine learning approaches commonly rely on the assumption of independent and identically distributed (i.i.d.) data. In reality, however, this assumption is almost always violated due to distribution shifts between environments. Although valuable learning signals can be provided by heterogeneous data from changing distributions, it is also known that learning under arbitrary (adversarial) changes is impossible. Causality provides a useful framework for modeling distribution shifts, since causal models encode both observational and interventional distributions. In this work, we explore the sparse mechanism shift hypothesis, which posits that distribution shifts occur due to a small number of changing causal conditionals. Motivated by this idea, we apply it to learning causal structure from heterogeneous environments, where i.i.d. data only allows for learning an equivalence class of graphs without restrictive assumptions. We propose the Mechanism Shift Score (MSS), a score-based approach amenable to various empirical estimators, which provably identifies the entire causal structure with high probability if the sparse mechanism shift hypothesis holds. Empirically, we verify behavior predicted by the theory and compare multiple estimators and score functions to identify the best approaches in practice. Compared to other methods, we show how MSS bridges a gap by both being nonparametric as well as explicitly leveraging sparse changes.

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

Code

Syntology Ran 0 of 13 code samples harvested from 1 repository linked to this paper; 13 have no recorded run.

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

rflperry/sparse_shift officialmentioned in paperMIT 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

13 samples harvested; 0 ran; 0 honoured the contract we drafted; 13 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.

13unverified

Licence: 0 of the 13 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 rflperry/sparse_shift. “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.

barabasi_albert_dag rflperry/sparse_shift/sparse_shift/datasets/dags.py official repository unverified MIT (permissive) · f7644dd1aeb0743b · report
check_2d rflperry/sparse_shift/sparse_shift/utils.py official repository unverified MIT (permissive) · ebb3c0ef7ce41cdf · report
connected_erdos_renyi_dag rflperry/sparse_shift/sparse_shift/datasets/dags.py official repository unverified MIT (permissive) · f7acbd0b944b4a8f · report
create_causal_learn_dag rflperry/sparse_shift/sparse_shift/utils.py official repository unverified MIT (permissive) · 512d1d9329fe5bfb · report
dag_false_orientations rflperry/sparse_shift/sparse_shift/metrics.py official repository unverified MIT (permissive) · 6558d096cb46076e · report
dag_precision rflperry/sparse_shift/sparse_shift/metrics.py official repository unverified MIT (permissive) · 663cfcf0d8a32ecb · report
dag_true_orientations rflperry/sparse_shift/sparse_shift/metrics.py official repository unverified MIT (permissive) · 44aeee3d1759c4cf · report
dags2mechanisms rflperry/sparse_shift/sparse_shift/utils.py official repository unverified MIT (permissive) · 695484581db8290c · report
erdos_renyi_dag rflperry/sparse_shift/sparse_shift/datasets/dags.py official repository unverified MIT (permissive) · f3a29a6b0cda9be5 · report
invariant_residual_test rflperry/sparse_shift/sparse_shift/independence_tests.py official repository unverified MIT (permissive) · 4a0e4c099e30b2a5 · report
sample_cdnod_sim rflperry/sparse_shift/sparse_shift/datasets/simulations.py official repository unverified MIT (permissive) · 79215bd3cdbd5127 · report
sample_nonlinear_icp_sim rflperry/sparse_shift/sparse_shift/datasets/simulations.py official repository unverified MIT (permissive) · f42ebf028c5ec1ac · report
sample_topological rflperry/sparse_shift/sparse_shift/datasets/simulations.py official repository unverified MIT (permissive) · 65287b9d099a5288 · 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