Abstract
Causal discovery from observational data is a fundamental challenge in science. This work introduces SCORE, an algorithm that leverages the score function—the gradient of the log-density—to identify the topological ordering of a Directed Acyclic Graph (DAG) under Nonlinear Additive Noise Models (ANMs). By proving that leaf nodes exhibit constant diagonal elements in the score's Jacobian, we provide a recursive method for causal discovery that is significantly more efficient than existing combinatorial or continuous optimization approaches. Our results demonstrate that SCORE is up to 10x faster than current state-of-the-art methods while maintaining competitive accuracy.
1. Introduction
Identifying causal relationships from purely observational data is a long-standing problem. While traditional methods often rely on interventions, many real-world scenarios, such as genomics or economics, only provide observational snapshots. To tackle this, researchers often assume Nonlinear Additive Noise Models (ANMs), where each variable $x_j$ is a nonlinear function of its parents plus independent noise. However, searching the space of possible DAGs remains an NP-hard problem.
This research, a collaboration between EPFL and Amazon Web Services, introduces a bridge between generative modeling and causal inference. By utilizing "score matching"—a technique central to modern generative AI—we demonstrate that the structural properties of a data distribution's score function can directly reveal its underlying causal hierarchy.
2. The SCORE Algorithm
The primary challenge in causal discovery is determining the topological order of variables (a sequence where parents always precede children). Once an order is established, the problem reduces to a simpler feature selection or pruning task.
2.1 The Leaf Identity
The core theoretical contribution is the "Leaf Identity." In a nonlinear Gaussian ANM, a node $j$ is a leaf (having no children) if and only if the variance of the corresponding diagonal element of the score's Jacobian is zero. Specifically, for a leaf node $j$, the derivative $\partial s_j / \partial x_j$ (where $s$ is the score function $\nabla \log p(x)$) is constant across the support of the distribution. This "flatness" in the score's derivative is a unique signature of a node that does not drive any other variables.
2.2 Recursive Identification
The SCORE algorithm proceeds through the following steps:
- Score Estimation: Estimate the score function and its Jacobian from the observational data using a Stein Hessian Estimator. This allows the necessary values to be derived directly from samples without learning the full density function.
- Leaf Selection: Identify the node with the minimum variance in its Jacobian diagonal.
- Iterative Reduction: Assign this node to the end of the topological order, remove it from the dataset, and repeat the process for the remaining variables.
- Pruning: After establishing the full topological order, apply a pruning method (such as the one used in the CAM algorithm) to remove spurious edges and finalize the DAG.
3. Experimental Evaluation
The authors evaluated SCORE against several baselines, including CAM, GraNDAG, and VarSort, using synthetic data (Erdös-Rényi and Scale-Free graphs), the Sachs dataset (protein signaling pathways), and SynTReN (synthetic gene expression data).
3.1 Efficiency and Scalability
SCORE demonstrates remarkable computational efficiency. Because it identifies one leaf at a time, the complexity of finding the topological order is linear in the number of nodes ($d$). In experiments with 20-node graphs, SCORE achieved a 10x speedup over the CAM algorithm. For larger 50-node graphs, it remained 5x faster than GraNDAG.
3.2 Accuracy and Robustness
Despite its speed, SCORE remains competitive in terms of Structural Hamming Distance (SHD) and Structural Intervention Distance (SID). While the theoretical proofs assume Gaussian noise, empirical results on Laplace and Gumbel noise distributions suggest that the "leaf signal" is robust, allowing the algorithm to generalize beyond its strict theoretical assumptions. On the Sachs dataset, SCORE matched the SHD of the best-performing baselines while providing a superior SID, indicating a more reliable causal graph for predicting the effects of interventions.
4. Discussion and Limitations
While SCORE significantly accelerates the identification of topological orders, the final pruning step remains a computational bottleneck, often accounting for up to 95% of the total runtime in larger graphs. Future research into faster pruning techniques could further enhance the scalability of this approach. Additionally, while the current framework is optimized for additive noise models, the link between score matching and causal identifiability may extend to broader model classes, representing a promising avenue for future study in high-dimensional causal inference.
Summary updated