Kernel-Based Differentiable Learning of Non-Parametric Directed Acyclic Graphical Models

Yurou Liang, Oleksandr Zadorozhnyi, Mathias Drton · DOI

Abstract

Causal discovery from observational data is a fundamental challenge in machine learning, often hindered by the combinatorial complexity of searching for Directed Acyclic Graphs (DAGs). This paper presents RKHS-DAGMA, a non-parametric approach that leverages Reproducing Kernel Hilbert Spaces (RKHS) to model complex dependencies. By integrating RKHS with a stable, continuous log-determinant acyclicity constraint and an extended Representer Theorem, RKHS-DAGMA achieves high accuracy and stability without the architectural sensitivities of neural-network-based methods.

Introduction

Identifying causal structures—determining "what causes what"—is essential for scientific discovery. Traditionally, this task involves a discrete search over the space of DAGs, which grows exponentially with the number of variables. While recent breakthroughs like the NOTEARS algorithm reformulated this as a continuous optimization problem using smooth acyclicity constraints, they often rely on linear assumptions. Non-parametric extensions using Multi-Layer Perceptrons (MLPs) frequently suffer from instability, high data requirements, and "black box" interpretability issues.

Methodology

RKHS-DAGMA addresses these challenges by combining kernel methods with differentiable optimization to model non-linear dependencies.

Kernel-Based Modeling and the Representer Theorem

Instead of neural networks, the authors utilize functions within an RKHS. A major theoretical contribution is an Extended Representer Theorem tailored for acyclicity-constrained problems. This theorem proves that the optimal function for each variable can be expressed as a finite linear combination of kernel evaluations and their partial derivatives, effectively transforming an infinite-dimensional functional search into a tractable finite-dimensional optimization.

Derivative-Based Adjacency

The model defines the adjacency matrix based on the partial derivatives of the learned functions. Specifically, the edge weight from variable $X_k$ to $X_j$ is determined by the influence of $X_k$ on the function $f_j$. This derivative-based approach provides a principled, model-agnostic measure of causal strength.

Acyclicity Constraints

To ensure the resulting graph is a DAG, the authors adopt the log-determinant formulation from the DAGMA algorithm. This constraint is more numerically stable than previous exponential-based methods, preventing optimization failures near the boundaries of acyclic space.

Table 1: Characterizations of the acyclicity constraint, including the log-determinant formulation ($h_{\text{ldet}}$).

The framework also considers a variety of differentiable characterizations for acyclicity, allowing for flexible optimization strategies depending on the specific properties of the data.

Table 2: Additional differentiable characterizations of acyclicity explored in the framework.

Experimental Evaluation

The researchers evaluated RKHS-DAGMA on both synthetic and real-world datasets:

  • Synthetic DAGs: Erdos-Rényi (ER4) graphs were generated with various functional forms, including Gaussian Processes (GP), Additive GPs, and complex combinatorial models mixing exponentials and sines.
  • Real-World Data: The model was tested on the Mooij et al. (2016) benchmark, consisting of 102 bivariate cause-effect pairs with known ground-truth directions.

Key Results and Insights

RKHS-DAGMA demonstrated significant improvements in both accuracy and robustness:

  • Superior Accuracy: In synthetic tests, the method consistently achieved lower Structural Hamming Distance (SHD) than NOTEARS-MLP and NOTEARS-SOB, indicating fewer errors in edge addition or reversal.
  • Real-World Robustness: On the Mooij benchmark, RKHS-DAGMA achieved 55.88% accuracy. Notably, it remained functional on small sample sizes where MLP-based methods (e.g., NOTEARS-MLP at 0.98%) failed entirely.
  • Stability: By avoiding the random initialization issues inherent in neural networks, the kernel approach provides more deterministic and reliable causal discovery.

Conclusion

RKHS-DAGMA represents a significant step forward in non-parametric causal discovery. While the method faces computational challenges related to Hessian calculations and $n \times n$ matrix operations, its mathematical elegance and empirical stability offer a compelling alternative to neural-network-based approaches. Future work involving Random Fourier Features or other kernel approximations may further enhance its scalability for high-dimensional datasets.

Summary updated

BibTeX
@inproceedings{liang2024kernel,
  author = {Yurou Liang and Oleksandr Zadorozhnyi and Mathias Drton},
  title = {{Kernel-Based Differentiable Learning of Non-Parametric Directed Acyclic Graphical Models}},
  booktitle = {PGM},
  year = {2024},
  url = {https://openreview.net/forum?id=VvJ6q3ikQ1},
}
Figure