A kernel-based causal learning algorithm

Xiaohai Sun, Dominik Janzing, Bernhard Schölkopf, Kenji Fukumizu

Inferring "who causes what" from purely observational data is a foundational challenge in machine learning and statistics. Traditionally, causal discovery relies on constraint-based algorithms, such as the Inductive Causation (IC) or PC algorithms. However, these methods often struggle with real-world data due to rigid linear assumptions and brittle decision-making processes.

This paper introduces a Kernel-based Causal Learning (KCL) algorithm that leverages the Hilbert-Schmidt norm of cross-covariance operators to measure the strength of statistical dependencies. By moving beyond binary "yes/no" independence tests to a quantitative "voting" system based on dependence strength, KCL effectively identifies causal structures in non-linear and non-Gaussian data where traditional algorithms frequently fail.

The Limitations of Traditional Causal Discovery

Standard constraint-based methods typically suffer from two major weaknesses:

  1. Distributional Assumptions: They heavily rely on partial correlations, which implicitly assume variables follow a multivariate normal distribution. This assumption breaks down in real-world scenarios where relationships are frequently non-linear or non-Gaussian.
  2. Categorical Decisions: They treat statistical independence as a strict, binary property. If a single independence test returns a "false positive" or "false negative" due to noise, it can trigger a cascade of errors that corrupts the entire resulting causal graph.

The authors address these limitations by proposing a "distribution-free" method that is far more robust to the inherent noise and uncertainty of statistical testing.

The KCL Method: Kernels and Voting

The core innovation of the KCL algorithm is the use of Reproducing Kernel Hilbert Spaces (RKHS) to measure dependence rather than relying on simple linear correlation.

  • Hilbert-Schmidt Independence Criterion (HSIC): The authors utilize the Hilbert-Schmidt norm of cross-covariance operators. In essence, they map the data into a high-dimensional feature space where even complex, non-linear dependencies manifest as measurable correlations. If this norm is zero, the variables are truly independent.
  • Measuring Conditional Dependence: The researchers extend HSIC to a conditional version. This allows them to quantify how the dependence between two variables, $X$ and $Y$, changes when controlling for (conditioning on) a third variable, $Z$.
  • The Voting Heuristic: Traditional algorithms orient edges (e.g., identifying a collider $X \to Z \leftarrow Y$) only if they detect a very specific, binary independence pattern. KCL, instead, employs a quantitative "voting" system. If conditioning on $Z$ significantly increases the measured dependence between $X$ and $Y$, it serves as a strong quantitative "vote" that $Z$ is a common effect of $X$ and $Y$. The algorithm aggregates these votes to decide edge directions by a majority principle, making it highly robust to isolated testing errors.

Datasets and Evaluation

The algorithm was rigorously evaluated across three distinct types of data:

  1. Synthetic Noisy OR Gates: The authors designed 2-bit and 3-bit logical models to test the algorithm's ability to handle deterministic and probabilistic causal links, featuring both independent and dependent inputs.
Synthetic noisy OR gate models used to evaluate the KCL algorithm, showing both 2-bit and 3-bit configurations with deterministic and probabilistic links.
  1. The "Asia" Network: A well-known synthetic benchmark representing medical knowledge about lung diseases and their causes across 8 variables.
  2. Real-World Smoking Data: A historical 1970 dataset containing cigarette consumption and death rates from various cancers across 43 U.S. states.

Key Insights and Results

The experimental results highlight several major advantages of the KCL approach:

  • Strength Matters: The fundamental insight of KCL is that the magnitude of dependence contains vital structural information. Traditional methods discard this by converting p-values into binary labels. KCL retains this quantitative data to break ties and resolve ambiguities.
  • Superiority over PC: In the noisy OR gate experiments, KCL consistently outperformed the standard PC algorithm. It excelled particularly in "DepPro" cases, where the inputs to a causal gate were themselves dependent.
  • Success on Benchmark Networks: On the Asia Network, KCL (when combined with the K2 algorithm) correctly identified the causal skeleton and oriented 5 out of 8 edges correctly, successfully avoiding the "missing edge" problem that plagued the PC algorithm.
  • Real-World Accuracy: On the 1970s smoking dataset, KCL correctly identified cigarette consumption as the common cause of various cancers. In stark contrast, the PC algorithm produced obviously erroneous results, such as suggesting that lung cancer causes smoking.

Limitations and Future Work

While highly effective, the KCL algorithm has a few notable limitations:

  • Computational Complexity: Kernel methods require calculating and manipulating large Gram matrices. Although the authors suggest using incomplete Cholesky decomposition to handle datasets of up to 2,000 points, the algorithm may struggle to scale to massive datasets without further optimization.
  • Hyperparameter Sensitivity: The voting heuristic relies on a threshold parameter ($\lambda$) to define what constitutes a "significant" change in dependence. Optimally selecting this value remains an open challenge.
  • Vectorial Variables: The current paper primarily focuses on scalar variables. However, the underlying theory supports multi-dimensional data, and the authors suggest extending the framework to handle vectorial variables as a natural next step.

Summary updated

BibTeX
@inproceedings{sun2007kernel,
  author = {Xiaohai Sun and Dominik Janzing and Bernhard Schölkopf and Kenji Fukumizu},
  title = {{A kernel-based causal learning algorithm}},
  booktitle = {International Conference on Machine Learning},
  year = {2007},
  doi = {10.1145/1273496.1273604},
}
Figure