A Topological Sorting Criterion for Random Causal Directed Acyclic Graphs

Alexander Gilbert Reisach, Antoine Chambaz, Gilles Blanchard, Sebastian WeichwaldNeurIPS 2026

TL;DR

When researchers test algorithms that infer cause-and-effect from data, they almost always evaluate them on synthetic graphs generated using standard random network models. This paper uncovers a hidden topological quirk in those standard synthetic graphs: as you move down the causal chain, the number of correlated variables ("relatives") tends to strictly increase. Because this pattern makes synthetic benchmarks artificially easy to solve—even when numerical shortcuts are removed—the authors introduce a simple baseline to exploit it and propose time-unrolled graphs as a more realistic way to test causal algorithms.

What Problem Does This Paper Address?

Causal discovery is the mathematical detective work of figuring out what causes what—represented as a Directed Acyclic Graph (DAG)—purely from observational data. Because we rarely know the true ground-truth causal graph in the real world, researchers rely heavily on synthetic benchmarks. Typically, they generate random Erdős–Rényi (ER) or scale-free (SF) networks and orient the arrows according to a vertex order.

Recently, the field realized these synthetic datasets often contain unintended numerical "cheats." For instance, variance tends to snowball along the causal chain (var-sortability), allowing simple variance-sorting heuristics to beat sophisticated algorithms. Researchers designed clever normalization schemes to scrub out these numerical artifacts. However, the underlying graph topologies (ER and SF DAGs) went largely unchallenged. The authors ask: does the shape of these standard random graphs alone leak the causal order?

Methods

The authors introduce a purely graphical concept called relatives. For any node $y$, its relatives are all the descendants of its ancestors—essentially, any node connected to $y$ via an open, unblocked path (meaning $y$ and its relatives are marginally correlated).

They prove a fundamental monotonicity property: in any DAG, if $x$ is an ancestor of $y$, $y$ inherits all of $x$'s relatives, so the set of relatives never shrinks along the causal order. To measure how often it strictly increases, they define rel-sortability ($s_\rho$), a score from $0$ to $1$ ($0.5$ = random guessing, $1.0$ = sorting by number of relatives perfectly reveals the causal order).

To show this can be exploited in practice, they build rel-SortnRegress, a two-step causal discovery algorithm:

  1. Novel sorting step: Compute the empirical correlation matrix from the data, count how many correlations exceed a statistical significance threshold for each variable (estimating its number of relatives), and sort the variables in ascending order.
  2. Standard regression step: Regress each variable on those preceding it in the estimated order using sparse regression (penalized via BIC) to find the exact graph edges.

Finally, to generate synthetic graphs without uncontrolled rel-sortability, they propose time-unrolled DAGs: taking a potentially cyclic "summary graph" with self-loops and unrolling its interactions step-by-step over a finite time horizon $T$.

Datasets

  • Real-world benchmarks: To check rel-sortability in the wild, they evaluate five networks from the bnlearn repository (sprinkler, asia, sachs, alarm, andes) and manufacturing datasets from causalAssembly (five individual stations and the full production line).
  • Synthetic data: They generate 30-node ER and SF DAGs across edge densities $c \in \{1, \dots, 10\}$ with $m = 1000$ observations, parameterized via linear Gaussian structural causal models (SCMs). Crucially, they test across four modern data-generation schemes explicitly designed to eliminate numerical sortability artifacts: sSCM, iSCM, DaO, and UUMC (plus standard non-standardized SCMs).

Key Insights and Ideas

  • The Literature's Blind Spot: Most causal discovery papers test on sparse graphs (around $c=1$ to $5$ edges per node). As shown below, this exact parameter band happens to be the sweet spot where rel-sortability approaches $1.0$ in random ER and SF DAGs!
Figure 1: Rel-sortability of random ER and SF DAGs with n nodes and density parameter c.
  • Topology Survives Data Normalization: Because rel-sortability is baked into the graph's wiring rather than its edge weights, data-generation fixes like iSCM, DaO, and UUMC cannot erase it. Even when variance and $R^2$ sortability are flatlined near $0.5$, rel-sortability stays high for sparse graphs.
Figure 2: Comparison of rel-sortability to other sortabilities in ER DAGs.
  • Strict Rel-Sortability Collapses Equivalence Classes: Normally, observational data with Gaussian noise can only identify a graph up to its Markov Equivalence Class (MEC)—a set of graphs sharing the same statistical independencies. The authors prove that if $s_\rho(\mathcal{G}) = 1$, the MEC shrinks to a singleton containing only the true DAG, because differences in relatives create unshielded colliders that uniquely orient every edge.
  • Time-Unrolling Tames the Artifact: If every weakly connected component in a summary graph is strongly connected, unrolling it over time $T \to \infty$ forces rel-sortability to converge cleanly to $0.5$, giving researchers a knob to control topological difficulty.

Key Results

  • Real-world diversity: Real-world DAGs span the entire spectrum of rel-sortability—from $0.50$ (sprinkler, sachs) up to $0.96$ (andes and the full causalAssembly line)—proving that exclusively benchmarking on high rel-sortability synthetic graphs fails to reflect real-world variety.
  • Exploiting relatives works: On 30-node ER DAGs at common densities ($c \in \{1, 2\}$), the simple rel-SortnRegress heuristic outperforms or matches $R^2$-SortnRegress and dramatically beats the continuous optimization method DAGMA on normalized datasets (measured via normalized Parent-AID and Structural Hamming Distance). Meanwhile, DAGMA only competes on unstandardized data, confirming its reliance on marginal variance artifacts.
  • MEC methods shine: Surprisingly, FLOP (a state-of-the-art equivalence class learner) nearly aced exact DAG recovery across almost all regimes except the densest graphs, precisely because high rel-sortability makes the underlying MECs tiny for $c > 1$.

Limitations and Future Work

  • Theoretical gaps: The asymptotic lower bound proving high rel-sortability only covers ER DAGs (leaving SF DAGs to numerical evidence), and the proof linking rel-sortability to MEC size only covers the extreme $s_\rho = 1$ singleton case rather than a general continuous relationship.
  • Experimental scope: All causal discovery experiments use linear Gaussian models without hyperparameter tuning, and Algorithm 1 relies on a parametric Gaussian significance test to threshold correlations.
  • Future directions: Researchers could develop nonparametric or adaptive correlation thresholds, enforce ancestor-subset constraints when estimating relatives, and explore how to best parameterize SCMs on top of time-unrolled DAGs—potentially rethinking how we pretrain and benchmark tabular foundation models and supervised causal learners.

Summary updated

Abstract

Random directed acyclic graphs (DAGs) based on imposing a vertex order on Erdős–Rényi or scale-free graphs are widely used to generate synthetic data from causal models, in particular for evaluating causal discovery algorithms. We show that the set of nodes reachable via open paths, termed relatives, never decreases along the causal order in all DAGs. We find that it tends to increase strictly for DAGs with certain density parameters, and demonstrate that this pattern can be exploited for causal discovery via sorting by the estimated number of relatives. We note that many simulations in the literature are focused on a narrow range of parameter settings where sorting by relatives yields an excellent proxy for the causal order, and show that a strict increase of relatives leads to a singleton Markov equivalence class. We propose sampling time-series DAGs as a possible alternative and discuss implications for causal discovery and synthetic data generation. Implementations of our algorithms can be found at https://causaldisco.github.io/CausalDisco/.
BibTeX
@inproceedings{reisach2026topological,
  author = {Alexander Gilbert Reisach and Antoine Chambaz and Gilles Blanchard and Sebastian Weichwald},
  title = {{A Topological Sorting Criterion for Random Causal Directed Acyclic Graphs}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=B65Mjlgily},
}
Figure