A Fast Kernel-based Conditional Independence test with Application to Causal Discovery
Oliver Schacht, Biwei Huang
TL;DR
This work tackles the cubic-time barrier of kernel-based conditional independence testing (KCI) in causal discovery by introducing FastKCI, a scalable, parallelizable method that partitions the conditioning set Z via a mixture-of-experts Gaussian mixture model, runs local KCI tests within partitions, and aggregates results with importance weights to recover the global statistic. FastKCI preserves the KCI null distribution and statistical power while delivering substantial runtime improvements, particularly on large-scale data. Empirical results show comparable Type I error control and power to KCI across synthetic and production datasets, along with dramatic speedups and improved scalability over standard KCI and RCIT. The approach enables practical causal discovery on big data, though it relies on MoE-based partitioning and warrants further exploration for large conditioning sets and more robust partitioning schemes.
Abstract
Kernel-based conditional independence (KCI) testing is a powerful nonparametric method commonly employed in causal discovery tasks. Despite its flexibility and statistical reliability, cubic computational complexity limits its application to large datasets. To address this computational bottleneck, we propose \textit{FastKCI}, a scalable and parallelizable kernel-based conditional independence test that utilizes a mixture-of-experts approach inspired by embarrassingly parallel inference techniques for Gaussian processes. By partitioning the dataset based on a Gaussian mixture model over the conditioning variables, FastKCI conducts local KCI tests in parallel, aggregating the results using an importance-weighted sampling scheme. Experiments on synthetic datasets and benchmarks on real-world production data validate that FastKCI maintains the statistical power of the original KCI test while achieving substantial computational speedups. FastKCI thus represents a practical and efficient solution for conditional independence testing in causal inference on large-scale data.
