On the Hardness of Conditional Independence Testing In Practice

Zheng He, Roman Pogodin, Ya-Zhe Li, Namrata Deka, A. Gretton +1 more
12/1/2025
10 citations

No official code found. Best implementation: he-zh/kci-hardness (5 stars).

Abstract

Tests of conditional independence (CI) underpin a number of important problems in machine learning and statistics, from causal discovery to evaluation of predictor fairness and out-of-distribution robustness. Shah and Peters (2020) showed that, contrary to the unconditional case, no universally finite-sample valid test can ever achieve nontrivial power.

Show full abstract

While informative, this result (based on"hiding"dependence) does not seem to explain the frequent practical failures observed with popular CI tests. We investigate the Kernel-based Conditional Independence (KCI) test - of which we show the Generalized Covariance Measure underlying many recent tests is nearly a special case - and identify the major factors underlying its practical behavior. We highlight the key role of errors in the conditional mean embedding estimate for the Type-I error, while pointing out the importance of selecting an appropriate conditioning kernel (not recognized in previous work) as being necessary for good test power but also tending to inflate Type-I error.

View on arXivView PDF

Code Implementations(1)

he-zh/kci-hardnessCommunity25%

Official code for the paper “On the Hardness of Conditional Independence Testing In Practice” (NeurIPS 2025 spotlight).

50

Similar Papers

Cite this paper

@article{he2025hardness,
  title  = {On the Hardness of Conditional Independence Testing In Practice},
  author = {Zheng He and Roman Pogodin and Ya-Zhe Li and Namrata Deka and A. Gretton and Danica J. Sutherland},
  year   = {2025},
  eprint = {2512.14000},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2512.14000},
  url    = {https://doi.org/10.48550/arXiv.2512.14000},
  journal = {Neural Information Processing Systems}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2512.14000.svg)](https://codeofpaper.com/paper/2512.14000)

Discussion