Learning DAGs from Data with Few Root Causes

Panagiotis Misiakos, Chris Wendler, Markus Püschel

Executive Summary

Learning the structure of Directed Acyclic Graphs (DAGs) from observational data is a notoriously difficult, NP-hard problem in machine learning. This paper introduces a fresh perspective on causal discovery by assuming that data is driven by a few "root cause" events rather than dense, independent noise at every node. Based on this premise, the authors present SparseRC, an algorithm that recovers graph structures with 10–50x speedups and significantly higher accuracy than state-of-the-art methods when this "few root causes" assumption holds.

The Problem: Dense Noise vs. Sparse Triggers

Most existing causal discovery methods rely on Linear Structural Equation Models (SEMs). These models assume that the value of each node in a graph is a linear combination of its parents' values plus some independent noise.

Crucially, current models usually treat this noise as a "dense" vector. This implies that every node in the system is constantly being nudged by its own random fluctuations. However, in many real-world systems—such as pollution spreading through a river network, or specific genes being activated in a biological cell—the data isn't driven by continuous noise everywhere. Instead, it is triggered by a few specific events (root causes) that ripple through the network. Existing algorithms struggle to scale or maintain accuracy when the underlying signal is sparse in this manner.

Methods: The SparseRC Algorithm

To address this, the researchers reformulate the standard linear SEM ($X = XA + N$) into a closed-form "transitive closure" representation:

$$X = C(I + \bar{A})$$

Here, $(I + \bar{A})$ represents how a signal at any node propagates to all its descendants. The authors rename the traditional noise term $N$ to root causes ($C$).

Illustration of the data generation process: from the original DAG and sparse root causes to the dense measurements vector via transitive closure.

The core idea behind SparseRC is that if the data is generated by only a few root causes, we should look for a graph $A$ that makes the reconstructed root causes as sparse as possible.

  1. Objective: The algorithm minimizes the $L^1$-norm of the estimated root causes: $\min_A \|X(I+A)^{-1}\|_1 + \lambda \|A\|_1$.
  2. Constraint: It utilizes a continuous acyclicity constraint (similar to the one popularized by NOTEARS) to ensure the learned graph has no cycles.
  3. Optimization: Implemented in PyTorch, the model is optimized using the Adam optimizer, allowing it to leverage GPU acceleration for massive scalability.

Key Insights and Theoretical Foundation

  • The "Aha" Moment: A linear SEM is essentially a linear transform. If you view the graph as a filter, the "root causes" are the input signal. If that signal is sparse, the true graph is the one that "de-convolves" the data into the sparsest possible input.
  • Identifiability: The authors provide a rigorous mathematical proof showing that under the "few root causes" assumption, the true DAG is the unique global minimizer of the $L^0$-norm of the root causes. This gives the method a solid theoretical foundation.
  • Fourier Connection: The paper links this work to "Fourier-sparsity" on graphs. In this view, root causes are like a spectrum; assuming few root causes is equivalent to saying the signal is sparse in the graph's "frequency domain."
  • Scalability: By focusing on the sparsity of the root causes, the optimization landscape becomes much more manageable. This allows the algorithm to handle thousands of nodes where previous continuous methods would time out.

Datasets and Key Results

The authors evaluated SparseRC using both synthetic data (Erdős-Rényi and Scale-free graphs ranging from 100 to 3,000 nodes) and real-world data (the classic Sachs et al. protein-signaling network dataset).

  • Superior Accuracy: On synthetic data matching their assumption, SparseRC achieved a Structural Hamming Distance (SHD) of nearly 0.6 (almost perfect recovery), while top competitors like GOLEM and NOTEARS had SHDs over 50.
  • Massive Speedups: SparseRC was consistently 10x to 50x faster than other continuous optimization benchmarks.
  • Large-Scale Success: The algorithm successfully reconstructed graphs with 3,000 nodes and 10,000 samples—a scale that is often out of reach for many modern DAG learners.
  • Real-World Performance: On the Sachs protein dataset, SparseRC performed competitively, finding a number of edges (16) very close to the ground truth (17) with a competitive SHD. This suggests the "few root causes" assumption is highly relevant in biological systems.

Limitations and Future Work

While SparseRC offers a powerful new tool for causal discovery, it has limitations:

  • Linearity: The current model is strictly linear. Extending this framework to non-linear SEMs is a clear next step.
  • Assumption Sensitivity: If the data is actually driven by dense noise at every node (violating the "few root causes" assumption), SparseRC's performance degrades, as it will try to over-sparsify the signal.
  • Causal Directionality: Like most observational methods, it can struggle to distinguish between $A \to B$ and $B \to A$ if the variances aren't well-behaved (a property known as varsortability).
  • Interventions: For complete causal discovery, interventional data is often still required; SparseRC currently focuses on structural recovery strictly from observational data.

Summary updated

BibTeX
@inproceedings{misiakos2023learning,
  author = {Panagiotis Misiakos and Chris Wendler and Markus Püschel},
  title = {{Learning DAGs from Data with Few Root Causes}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=xPLaXSuSvQ},
}
Figure