Cross-validating causal discovery via Leave-One-Variable-Out

Daniela Schkoda, Philipp Michael Faller, Dominik Janzing, Patrick Blöbaum

TL;DR

Validating causal discovery algorithms on observational data has long been hindered by the lack of ground-truth causal graphs. This paper introduces Leave-One-Variable-Out (LOVO) cross-validation: by omitting a variable pair $(X, Y)$ and running causal discovery separately on subsets $(X, \mathbf{Z})$ and $(Y, \mathbf{Z})$, researchers can use the resulting causal models to predict the statistical dependency between $X$ and $Y$ without ever observing them together. Comparing this causally informed prediction against the true joint distribution yields a continuous, ground-truth-free validation metric that reliably flags erroneous causal graphs.

What Problem Does This Paper Address?

In standard machine learning, out-of-sample cross-validation (like train/test splits or leave-one-out) offers a gold standard for evaluating models without ground-truth parameters. In causal discovery—where the goal is to infer directed causal graphs from observational data—evaluation remains a major bottleneck.

Interventional datasets (such as genetic knockouts) are expensive, rare, and often target multiple unobserved nodes. Consequently, researchers rely heavily on synthetic benchmarks that fail to reflect real-world complexities. Previous self-consistency checks evaluate whether an algorithm's output on subsets contradicts its output on the full graph, but they produce discrete disagreement counts without providing an optimizable loss or a clear threshold for when to reject a learned graph.

The authors tackle this gap by asking: Can we evaluate causal models by testing their ability to predict unseen relationships across variables, rather than across data points?

Methods

Pure probability theory guarantees that marginal distributions $P(X, \mathbf{Z})$ and $P(Y, \mathbf{Z})$ can never uniquely pin down $P(X, Y)$—even the sign of their correlation remains ambiguous without additional structure (Lemma 1). However, causal models bridge this gap:

  1. Marginal Graph Inference: Given data on $\mathbf{W} = (X, Y, \mathbf{Z})$, split the variables into leave-one-out sets $(X, \mathbf{Z})$ and $(Y, \mathbf{Z})$ and run causal discovery to obtain marginal graphs $G_X$ and $G_Y$.
  2. Detecting Unlinked Nodes: By analyzing the structural "footprints" left in marginal graphs (e.g., how marginalizing out a mediator creates direct edges or marginalizing out a confounder induces bidirected edges), the authors prove criteria (Lemmas 2, 3, and 7) determining when $X$ and $Y$ cannot share a direct edge.
  3. Parent Adjustment Predictor: If $X$ and $Y$ are unlinked and their parents are unconfounded, the union of their parents $\mathbf{Z}_S = \text{pa}(X) \cup \text{pa}(Y)$ $d$-separates (or $m$-separates) them: $$P(y \mid x) = \sum_{\mathbf{z}_S} P(y \mid \mathbf{z}_S) P(\mathbf{z}_S \mid x)$$ In practice, this is estimated via a three-step routine: fit $\hat{\mathbb{E}}[Y \mid \mathbf{Z}_S]$, apply it to samples from $P(X, \mathbf{Z}_S)$ to generate synthetic $(x, \hat{y})$ pairs, and estimate the bivariate relationship (such as correlation $\hat{\rho}_{XY}$).

  4. LiNGAM and Deep Learning Extensions: Under Linear Non-Gaussian Acyclic Models (LiNGAM), structural coefficients can be identified even when an edge exists between $X$ and $Y$. The authors also demonstrate a transformer-based encoder model that predicts $\rho_{XY}$ directly from marginal data without parametric assumptions.

  5. Agnostic Baseline: To set a rejection threshold, LOVO error is compared against a maximum entropy (MaxEnt) baseline ($X \perp\!\!\perp Y \mid \mathbf{Z}$) or random conditioning sets of equal size. If the causally informed LOVO error does not beat this baseline, the graph is rejected.
       Leave-One-Out Datasets:
  (X, Z) ---------> Learn G_X \
                               ==> Deduce X ∤ Y & Parents Z_S ==> Predict E[Y|X]
  (Y, Z) ---------> Learn G_Y /                                       |
                                                                      v
  True (X, Y) Data -----------------------------------------> Evaluate LOVO Error

Datasets

  • Synthetic Random Graphs:
  • 1,000 Erdős–Rényi DAGs and Acyclic Directed Mixed Graphs (ADMGs) on 10 nodes (directed edge probability $p \in [0.1, 0.9]$; bidirected probability $q \in [0.1, 0.9]$) using linear additive noise models ($n = 5000$).
  • Smaller 5-node graphs to accommodate slower causal discovery algorithms.
  • Real-World Benchmarks:
  • Sachs et al. (2005): Single-cell flow cytometry data measuring 11 protein-signaling molecules across 7,466 cells.
  • Grace et al. (2016): Ecological plant diversity and ecosystem productivity dataset comprising 1,126 plots across 12 variables (evaluating the lower 5-variable subsystem).

Key Insights and Ideas

  • Causality enables out-of-variable interpolation: While standard statistical models interpolate between observed data points, causal graphs provide the structural constraints necessary to "interpolate" statistical relations between variable pairs that have never been co-observed.
  • Marginal graph asymmetries rule out edges: Even if $X$ does not appear in $G_Y$, its role as an unobserved confounder or mediator introduces identifiable bidirected or directed shortcuts among remaining nodes. If these shortcuts are missing, a direct edge $X - Y$ is provably impossible.
  • A continuous, actionable falsification criterion: By reducing validation to a bivariate prediction problem (e.g., predicted vs. true $\rho_{XY}$), LOVO avoids brittle graph-matching metrics and produces a smooth loss function.

Key Results

  • Edge Exclusion Coverage: In 10-node DAGs with $p \ge 0.3$, Lemma 3 identifies nearly all truly absent edges (excluding close to the expected $\approx 25\text{--}30$ missing pairs), allowing LOVO to run without abstaining in almost 100% of DAG trials.
  • Correlation with Discovery Errors: On synthetic data evaluated with DirectLiNGAM and Repetitive Causal Discovery (RCD), LOVO cross-validation loss showed strong, statistically significant correlations with the true Structural Hamming Distance (SHD) ($\rho = 0.66$ for DirectLiNGAM, $\rho = 0.23$ for RCD; $p < 10^{-40}$) and with misidentifying an edge as absent ($\rho = 0.72$ and $0.76$, respectively).
  • Evaluating Real-World Graphs:
  • On both the Sachs and Grace datasets, DirectLiNGAM yielded LOVO errors worse than the non-causal baseline (e.g., Sachs: LOVO error $0.152$ vs. baseline $0.146$; Grace: $0.403$ vs. $0.376$), successfully flagging that linear non-Gaussian assumptions fail on this data.
  • In contrast, the accepted literature ground-truth DAG for the Grace dataset outperformed the baseline (LOVO error $0.354$ vs. baseline $0.436$), confirming the validity of the known ecological model.

Limitations and Future Work

  • Abstention on Dense or Equivalence Graphs: LOVO must abstain when no unlinked pairs can be certified. Algorithms that output purely bidirected edges (e.g., RCD on small sample sizes, which abstained $\sim 52\%$ of the time) or colliders ($X \to Z \leftarrow Y$, where $X \perp\!\!\perp Z$ blocks parent propagation) prevent prediction.
  • Graph Type Restrictions: Extending parent adjustment to equivalence classes (CPDAGs and PAGs) often fails to orient critical edges, forcing the valid adjustment set to default to the empty set.
  • Finite-Sample Sensitivity: When the conditioning set $\mathbf{Z}_S$ grows large, regression estimates in the three-step predictor degrade under finite sample sizes, requiring careful sample-splitting.
  • Future Directions: Incorporating partial orientations into richer semi-parametric models, expanding LOVO beyond bivariate targets, and using LOVO loss as an explicit regularizer during differentiable causal discovery.

Summary updated

BibTeX
@inproceedings{schkoda2025cross,
  author = {Daniela Schkoda and Philipp Michael Faller and Dominik Janzing and Patrick Blöbaum},
  title = {{Cross-validating causal discovery via Leave-One-Variable-Out}},
  booktitle = {CLeaR},
  year = {2025},
  url = {https://openreview.net/forum?id=VO4UpZHMpf},
}
Figure