Learning Sparse Nonparametric DAGs

Xun Zheng, Chen Dan, Bryon Aragam, Pradeep Ravikumar, Eric P. Xing

Presented at AISTATS 2020, this research represents a significant leap in causal discovery. It extends the groundbreaking "NOTEARS" framework—which transformed the discrete, combinatorial nightmare of learning Directed Acyclic Graphs (DAGs) into a smooth, continuous optimization problem—from simple linear models to the complex world of nonparametric equations.

The Challenge of Nonlinearity

Learning a DAG from data is a fundamental task in causal inference, but it is notoriously difficult. Traditionally, this was treated as a combinatorial search problem: navigating an astronomical space of possible graphs while ensuring the result had no cycles (acyclicity).

In 2018, the original NOTEARS paper simplified this for linear models by proving that acyclicity could be enforced using a smooth, continuous constraint on a weight matrix. However, real-world relationships are rarely linear. Previous attempts to handle nonlinearity often relied on restrictive assumptions (like additive noise models) or were computationally expensive, scaling poorly with the number of samples ($n$) or variables ($d$). This work addresses the clear gap for a general-purpose, efficient framework that can handle arbitrary nonlinear dependencies.

Methods: The Derivative Bridge

The core innovation is the use of partial derivatives as a surrogate for the adjacency matrix in a nonparametric setting.

  1. Characterizing Dependencies: In a linear model, variable $X_k$ is a parent of $X_j$ if the weight $w_{kj}$ is non-zero. In a nonparametric model $X_j = f_j(X)$, the authors look at the $L^2$ norm of the partial derivative: $\|\partial_k f_j\|_{L^2}$. If this derivative is zero, $X_k$ has no influence on $X_j$.
  2. Continuous Acyclicity: The authors construct a matrix $W(f)$ where each entry is this derivative norm. They then apply the original NOTEARS trace exponential constraint—$h(W) = \text{tr}(e^{W \circ W}) - d = 0$—to this matrix. This ensures the learned function $f$ represents a valid DAG.
  3. Flexible Estimators: Because the framework only requires the functions to be differentiable, it can be implemented using various estimators:
  4. NOTEARS-MLP: Uses Multi-Layer Perceptrons. The authors prove that an MLP is independent of an input $X_k$ if and only if the $k$-th column of the first layer's weight matrix is all zeros.
  5. NOTEARS-Sob: Uses Sobolev basis expansions, which are particularly effective for additive models.

Experimental Validation

The authors evaluated their approach on both synthetic and real-world data. Simulated data followed various Structural Equation Models (SEMs), including Additive Gaussian Processes (GPs), Index Models, and Additive Noise Models (ANM) using both MLPs and GPs.

Structural Hamming Distance (SHD) performance across various graph types (ER2, SF2) and data generation models.

Key Results

  • Robustness: NOTEARS-MLP achieved the best Structural Hamming Distance (SHD)—a measure of graph error—across a wide variety of nonlinear settings. While specialized methods like Causal Additive Models (CAM) excelled when the data strictly followed additive patterns, they struggled with more general nonlinearities.
  • Efficiency: Unlike kernel-based methods that often scale at $O(n^3)$, this approach scales linearly with the number of samples ($n$). In a test with 40 nodes and 1,000 samples, NOTEARS-MLP finished in under 5 minutes, while the competing GSGES algorithm took over 90 minutes.
  • Real-World Application: On the classic Sachs protein signaling dataset, NOTEARS-MLP identified 7 correct edges and 3 reversed edges, outperforming both the original linear NOTEARS and newer GNN-based approaches.
Comparison of NOTEARS variants against CAM across different nonlinear settings, highlighting the robustness of the proposed framework.

Key Insights and Limitations

A major insight of this work is that sparsity can be enforced "at the source." For neural networks, penalizing the columns of the first weight matrix is sufficient and mathematically rigorous to achieve a sparse graph. Furthermore, the framework is a "super-set" that naturally handles linear models and Generalized Linear Models (GLMs) as special cases.

However, some limitations remain. The optimization problem is non-convex, meaning there is no theoretical guarantee of reaching a global optimum, though off-the-shelf solvers like L-BFGS-B perform well in practice. Additionally, causal discovery from observational data remains subject to identifiability conditions, and results can be sensitive to the regularization parameter ($\lambda$). Future work may focus on automated hyperparameter tuning to further enhance the framework's accessibility.

Summary updated

BibTeX
@inproceedings{zheng2020learning,
  author = {Xun Zheng and Chen Dan and Bryon Aragam and Pradeep Ravikumar and Eric P. Xing},
  title = {{Learning Sparse Nonparametric DAGs}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2020},
  url = {https://openreview.net/forum?id=4BjUbEzUwN},
}
Figure