TL;DR
Kernel-based conditional independence tests are powerful tools for detecting complex, non-linear relationships, but they frequently suffer from high false-positive rates due to regression bias. This paper introduces SplitKCI, a novel approach that uses data splitting to decorrelate estimation errors and control false positives without sacrificing statistical power. Combined with an automated train/test splitting heuristic and a mathematically validated wild bootstrap method, SplitKCI provides a highly reliable and practical framework for conditional independence testing.
What Problem Does This Paper Address?
Conditional independence (CI) testing asks a fundamental question: Given a confounding variable $C$, are two variables $A$ and $B$ independent ($A \perp\!\!\perp B \mid C$)? This is crucial for applications ranging from causal discovery to evaluating fairness in machine learning (e.g., ensuring predictions are independent of a protected attribute given the true label).
When $C$ is continuous or high-dimensional, testing becomes exceptionally difficult. The popular Kernel-based Conditional Independence (KCI) test handles non-linear dependencies by using nonparametric kernel ridge regression (KRR) to estimate conditional feature means. However, KRR inherently suffers from estimation bias. Because the test statistic and the regressions are typically computed on the same data, this bias creates artificial dependencies between estimated residuals. As a result, the test frequently "hallucinates" relationships, inflating the Type I error rate (false positives) far above the designated significance level ($\alpha$).
Methods
The authors propose three interconnected techniques to mitigate bias and improve KCI:
- SplitKCI Test Statistic: Instead of using a single regression estimator, SplitKCI splits the training data into equal, non-overlapping subsets to build two independent conditional mean estimators for the regressions. This simple architectural change decorrelates the estimation errors, drastically reducing the spurious correlation that inflates false positives.
- Automated Train/Test Splitting Heuristic: Previous implementations relied on arbitrary data splits. The authors introduce an automated heuristic (Algorithm 3) that systematically balances the data allocated for training the regression models versus evaluating the test statistic. It checks if the residuals are truly independent of $C$ on a given split ratio, optimizing for maximum test power while strictly maintaining Type I error control.
- Wild Bootstrap Calibration: The original KCI framework relies on a moment-matched Gamma approximation to calculate $p$-values, which lacks formal guarantees and fails when regression errors are large. The authors prove that the wild bootstrap technique asymptotically holds for KCI-style tests even with imperfect empirical estimates, ensuring well-calibrated $p$-values.
Datasets
The authors evaluated their methods across three distinct data regimes:
- Synthetic Post-Nonlinear Model: A benchmark variation from the original KCI literature where $A$ and $B$ are non-linear, noisy functions of a multi-dimensional confounder $C$. This was used to test robustness against the dimensionality of $C$.
- Synthetic Neural Data: Generated using the
RatInABoxtoolbox, this dataset simulates the trajectory and high-dimensional neural grid activity of a rat. It models complex, non-trivial dependencies between head direction cells ($A$), conjunctive cells ($B$), and behavioral variables ($C$). - Real-World Car Insurance Data: A dataset from ProPublica mapping car insurance prices ($A$), minority neighborhood indicators ($B$), and driver risk metrics ($C$) across four US states, used to evaluate the tests under a simulated null hypothesis.
Key Insights and Ideas
- The Data-Splitting Paradox: Intuitively, halving the data available to a regression estimator should worsen its performance. However, the authors demonstrate that for kernel-based CI testing, the benefit of decorrelating the errors far outweighs the minor penalty of using less data per estimator.
- Double Robustness of KCI: By comparing KCI to a successor test called CIRCE, the authors highlight that KCI multiplies two separate residuals ($C \to A$ and $C \to B$). This gives it a "double robustness" property: it only needs both regressions to be somewhat right to reduce bias, whereas single-residual tests require extreme regression accuracy.
- Failure of Gamma Approximations: The paper reveals that the widely used Gamma approximation consistently underestimates $p$-values under the null hypothesis when conditional mean estimation errors are present, making the wild bootstrap a necessity for practical deployment.
Key Results
- Type I Error Control: Under the null hypothesis ($\alpha = 0.05$), vanilla KCI's false-positive rate spiked significantly as sample sizes grew. SplitKCI successfully maintained the nominal $0.05$ level across all tested dimensions and sample sizes.
- High Statistical Power: On the synthetic neural dataset, SplitKCI rapidly achieved near-zero Type II errors (maximum test power) as the total data budget $N$ increased, matching or outperforming alternative tests like the Generalized Covariance Measure (GCM).
- Real-World Robustness: On the ProPublica car insurance dataset, SplitKCI delivered stable, robust results that strictly adhered to the simulated null threshold, whereas competing methods like GCM and CIRCE suffered from inflated Type I errors in several states.
Limitations and Future Work
- Pointwise Asymptotics: The mathematical guarantees established for the wild bootstrap in this paper are pointwise asymptotic rather than uniform. Achieving uniform asymptotic control remains an open, challenging problem for kernel-based measures.
- Smoothness Assumptions: The framework assumes that conditional means can be reliably estimated, meaning the underlying data distributions must be sufficiently smooth.
- Future Directions: The authors suggest exploring parametric alternatives (such as replacing KRR with logistic regression when dealing with categorical variables) to improve estimation accuracy. Additionally, improving test interpretability to account for unknown or unmeasured confounding variables remains an important avenue for future research.
Summary updated