NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Score Matching Enables Causal Discovery of Nonlinear Additive Noise Models

Paul Rolland, Volkan Cevher, Matthäus Kleindessner, Chris Russell, Dominik Janzing, Bernhard Schölkopf, Francesco Locatello

Overview

Causal discovery—identifying "who causes what" from raw observational data—is notoriously difficult and computationally expensive. This paper introduces SCORE, a novel algorithm that leverages score matching (a technique popular in generative AI) to efficiently recover causal structures in nonlinear models. By identifying leaf nodes through the variance of the score function's Jacobian, SCORE achieves state-of-the-art accuracy while being up to 10x faster than existing methods.

The Challenge: Causal Discovery in Nonlinear Models

Finding the underlying Directed Acyclic Graph (DAG) of a system from purely observational data is a fundamental challenge. The problem is inherently "ill-posed" because many different causal structures can produce the exact same data distribution. To make the problem solvable, researchers often assume Additive Noise Models (ANMs), where each variable is a nonlinear function of its parents plus some independent noise.

Even with the ANM assumption, the search space for DAGs grows super-exponentially with the number of variables, making exact solutions NP-hard. Modern approaches typically fall into two camps: continuous optimization (which is slow and prone to local minima) or order-based methods (which try to find a topological sort of the variables). SCORE tackles the efficiency bottleneck of order-based methods, specifically addressing how to find the correct ordering of variables without exhaustive combinatorial searching.

Methodology: Score Matching for Causal Ordering

The authors propose a new way to find the causal order by analyzing the score function of the data distribution, defined as the gradient of the log-density: $s(x) = \nabla \log p(x)$.

Their key mathematical insight is that in a nonlinear additive Gaussian noise model, a variable is a leaf node (it causes nothing else) if and only if the diagonal element of the score's Jacobian is constant across all observations. In other words, if you look at how the score of variable $X_j$ changes with respect to $X_j$ itself, that change should have zero variance if $X_j$ is a leaf.

The SCORE algorithm operates in four main steps:

  1. Score Estimation: Use a kernel-based Stein estimator to approximate the score and its Jacobian diagonal from the data samples.
  2. Leaf Identification: Identify the variable with the lowest variance in its Jacobian diagonal and mark it as a leaf.
  3. Recursion: Remove that variable from the dataset and repeat the process until a full topological ordering is established.
  4. Pruning: Once the order is fixed, use standard sparse regression (similar to the pruning step in the CAM algorithm) to remove spurious edges and finalize the DAG.

Key Results and Insights

SCORE bridges the gap between deep generative modeling and causal discovery, providing a computationally cheap signal for causal ordering. Identifying the topological order becomes linear in the number of nodes ($d$), a massive improvement over combinatorial approaches.

The authors evaluated SCORE against several baselines (CAM, GraN-DAG, SELF, GES) using synthetic graphs (Erdos-Renyi and Scale-free models) and real-world benchmarks like the Sachs dataset and SynTReN simulator.

SCORE demonstrates a significant leap in speed without sacrificing accuracy:

  • Speedup: On 20-node graphs, SCORE is 10x faster than CAM. On 50-node graphs, it is 5x faster than GraN-DAG.
  • Accuracy: In dense graph settings (ER4), SCORE consistently outperformed baselines in terms of Structural Hamming Distance (SHD) and Structural Intervention Distance (SID).

For example, in the $d=20$ Gaussian noise case, SCORE achieved an SHD of $47.5 \pm 4.5$ compared to CAM's $54.2 \pm 5.4$.

Table 2: Results for d=20 with Gaussian noise. SCORE shows lower SHD and SID in the denser ER4 setting.

This scalability holds up for larger systems as well. For $d=50$, SCORE remains competitive with CAM while being significantly more accurate than GraN-DAG or GES.

Table 3: Results for d=50 with Gaussian noise. SCORE maintains strong performance on larger graphs.
Note: Although the theory is derived for Gaussian noise, experiments showed the method remains highly effective and robust even with Laplace or Gumbel noise.

Limitations and Future Work

  • Additive Assumption: The method relies heavily on the additive noise structure. While robust to different noise distributions, it may struggle with models where noise is multiplicative or interacts in more complex ways.
  • Kernel Scaling: The current implementation uses kernel-based estimators, which scale cubically with the number of samples ($O(n^3)$). For very large datasets, this could become a computational bottleneck.
  • Future Directions: The authors suggest using neural network-based score matching (amortized score estimation) to scale to much higher dimensions and exploring how to "read" causal graphs from the score functions of non-additive models.

Summary updated

BibTeX
@inproceedings{rolland2022score,
  author = {Paul Rolland and Volkan Cevher and Matthäus Kleindessner and Chris Russell and Dominik Janzing and Bernhard Schölkopf and Francesco Locatello},
  title = {{Score Matching Enables Causal Discovery of Nonlinear Additive Noise Models}},
  booktitle = {International Conference on Machine Learning},
  year = {2022},
  url = {https://openreview.net/forum?id=YrocSg24mAi},
}
Figure