Abstract
Conditional independence tests (CIT) are widely used for causal discovery and feature selection. Even with false discovery rate (FDR) control procedures, they often fail to provide frequentist guarantees in practice. We highlight two common failure modes: (i) in small samples, asymptotic guarantees for many CITs can be inaccurate and even correctly specified models fail to estimate the noise levels and control the error, and (ii) when sample sizes are large but models are misspecified, unaccounted dependencies skew the test's behavior and fail to return uniform p-values under the null. We propose Empirically Calibrated Conditional Independence Tests (ECCIT), a method that measures and corrects for miscalibration. For a chosen base CIT (e.g., GCM, HRT), ECCIT optimizes an adversary that selects features and response functions to maximize a miscalibration metric. ECCIT then fits a monotone calibration map that adjusts the base-test p-values in proportion to the observed miscalibration. Across empirical benchmarks on synthetic and real data, ECCIT achieves valid FDR with higher power than existing calibration strategies while remaining test agnostic.
Introduction
Conditional Independence Testing (CIT) serves as the fundamental engine for causal discovery and high-dimensional feature selection. In theory, these tests provide rigorous mathematical guarantees for identifying whether a variable $X$ influences $Y$ given a set of controls $Z$. However, in practical applications, these guarantees frequently collapse due to two primary failure modes.
First, small sample sizes often render asymptotic guarantees—which assume infinite data—inaccurate. In these regimes, noise levels are typically underestimated, leading to inflated false discovery rates. Second, model misspecification occurs when the assumed relationship between variables (e.g., linearity) does not match the complex, non-linear reality of the data. This results in unreliable p-values that fail to represent the true underlying dependencies.
The ECCIT Framework
To address these challenges, we introduce Empirically Calibrated Conditional Independence Tests (ECCIT). ECCIT acts as a "wrapper" method that can be applied to nearly any base CIT, such as the Generalized Covariance Measure (GCM) or the Holdout Randomization Test (HRT). The framework operates in three distinct stages:
- Adversarial Optimization: Rather than assuming a simple null hypothesis, ECCIT employs a machine learning "adversary" to identify the response function that maximizes the base test's error rate on the specific dataset. This step uses a Gumbel-softmax approach to learn which features most effectively "trick" the test.
- Synthetic Null Generation: Using the identified worst-case adversary and bootstrap resampling, ECCIT generates a large ensemble of synthetic adversarial outcomes.
- Monotone Calibration: The base test is applied to these synthetic outcomes to fit a calibration map. This map adjusts the original p-values, ensuring the test remains honest even under worst-case scenarios within a specified model class.
Experimental Evaluation and Results
We evaluated ECCIT across a variety of challenging environments, including synthetic benchmarks with heavy-tailed distributions (Laplace, Student-t), high-dimensional genomics data from the Genomics of Drug Sensitivity in Cancer (GDSC) dataset, and standard UCI machine learning benchmarks.
A critical metric introduced in this work is "Valid Power." Traditional power (the ability to detect true effects) is misleading if the error rate is not controlled. Valid power zeros out a method's score if it fails to meet the user-defined False Discovery Rate (FDR) threshold.
As shown in the figure above, the calibrated version of the HRT test maintains a Type-I error rate very close to the nominal alpha (the "Target Type-I" line), whereas the raw test significantly exceeds it. Crucially, while calibration is often associated with a loss in sensitivity, ECCIT maintains substantial power compared to uncalibrated baselines.
Furthermore, ECCIT demonstrates superior valid power across various noise distributions. By effectively calibrating the test to the specific characteristics of the data—such as heavy tails or high correlation—ECCIT allows for more reliable discovery than existing robust methods. On genomics data, where uncalibrated tests often reached 60-80% FDR against a 20% target, ECCIT successfully pulled the FDR back to the target level.
Discussion
ECCIT's primary strength lies in its test-agnostic nature; it can provide a safety layer for any underlying statistical model. However, it introduces an Adversary-Power Trade-off. An overly simple adversary may fail to capture miscalibration, while an excessively complex one might lead to overly conservative results. Future research will focus on automated selection of adversarial complexity to further optimize the balance between safety and discovery power.
Summary updated