Optimal Kernel Choice for Score Function-based Causal Discovery

Wenjie Wang, Biwei Huang, Feng Liu, Xinge You, Tongliang Liu, Kun Zhang, Mingming Gong

Introduction

Causal discovery—the process of inferring "what causes what" from observational data—is a cornerstone of scientific inquiry. Modern score-based approaches often leverage Reproducing Kernel Hilbert Spaces (RKHS) to model complex, non-linear relationships without restrictive parametric assumptions. However, these methods suffer from a significant practical hurdle: extreme sensitivity to kernel hyperparameters, specifically the bandwidth.

The Pitfalls of the Median Heuristic

Traditionally, researchers have relied on the "median heuristic"—a rule of thumb that sets kernel bandwidth based on the median distance between data points. As this paper demonstrates, this heuristic is frequently "blind" to the underlying causal structure, leading to the identification of spurious edges or the omission of true causal links. While manual tuning might work for simple cases, it becomes impossible as the complexity and dimensionality of the causal graph increase.

Automated Kernel Selection via Marginal Likelihood

To address this, the authors introduce an automated kernel selection framework integrated directly into the causal score function. The core idea is to maximize the marginal likelihood of the joint distribution of variables.

A critical innovation in this approach is the inclusion of a Jacobian determinant term within the score function. Without this term, making kernel parameters "trainable" often leads the model to learn trivial constant mappings to achieve a high score. The Jacobian acts as a regularizer, forcing the model to find meaningful kernels that truly fit the data distribution. By using Gaussian Processes (GPs), the method can integrate out function parameters and optimize kernel parameters directly from the data.

Comparison of the median heuristic versus the proposed optimal kernel selection. The proposed method (d) achieves a lower HSIC score, indicating better independence between the estimated noise and the cause.

Experimental Results

The proposed method was evaluated against standard benchmarks, including synthetic datasets with various non-linearities and real-world protein signaling (SACH) and medical diagnostic (CHILD) networks.

Superior Accuracy and Robustness

On synthetic data, the automated selection method consistently achieved higher F1 scores and lower Structural Hamming Distance (SHD) compared to heuristic-based methods. It proved particularly effective in dense graphs, where determining the direction of causality is notoriously difficult. The method's ability to "block" the influence of non-causal variables leads to significantly fewer false discoveries.

Performance comparison on continuous synthetic data (n=500). The proposed method shows superior accuracy (F1 score) across different settings compared to traditional scoring heuristics.

Real-World Application

In the SACH and CHILD benchmarks, the method outperformed both constraint-based (e.g., PC algorithm) and existing score-based algorithms as sample sizes increased. This demonstrates its practical utility for complex, real-world causal discovery tasks where the "true" kernel is unknown.

Conclusion and Future Work

By automating kernel selection through joint marginal likelihood maximization, this work removes a major bottleneck in score-based causal discovery. While the use of Gaussian Processes introduces a $O(n^3)$ computational cost, the significant gains in structural accuracy make it a compelling choice for many applications. Future research aims to integrate these optimal kernels into continuous optimization search strategies to improve scalability for very large graphs.

Summary updated

BibTeX
@inproceedings{wang2024optimal,
  author = {Wenjie Wang and Biwei Huang and Feng Liu and Xinge You and Tongliang Liu and Kun Zhang and Mingming Gong},
  title = {{Optimal Kernel Choice for Score Function-based Causal Discovery}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=DYd4vyyhUu},
}
Figure