Feature-to-Feature Regression for a Two-Step Conditional Independence Test

Qinyi Zhang, Sarah Filippi, Seth R. Flaxman, Dino Sejdinovic

Introduction

Conditional Independence (CI) tests are fundamental to causal discovery, enabling researchers to distinguish between direct causation and shared influence. A common approach is the two-step RESIT (REgression with Subsequent Independence Test) procedure: first, regress variables $X$ and $Y$ on a conditioning variable $Z$; then, test the resulting residuals for independence. However, this method relies heavily on the assumption of additive noise ($X = f(Z) + \epsilon$). When data exhibits more complex relationships, RESIT often fails, leading to false causal discoveries.

The Problem: Leaky Residuals

Standard regression techniques typically only capture the conditional mean of a distribution. If the relationship between variables involves "switching" behaviors or changes in variance, the mean regression line leaves significant information behind.

Standard regression (red lines) fails to capture non-functional or multi-modal dependencies, resulting in residuals that remain dependent on the conditioning variable.

As shown above, when $Z$ causes $X$ to switch between different behaviors, the residuals still contain "leaked" information from $Z$. This "brittleness" causes the subsequent independence test to incorrectly reject the null hypothesis of independence, resulting in a high Type I error rate (false discoveries).

Methodology: Introducing KRESIT

To address these limitations, the authors propose KRESIT (Kernel REgression with Subsequent Independence Test). KRESIT upgrades the regression step from simple scalar values to feature-to-feature regression.

Instead of regressing raw values, KRESIT maps $X$ and $Y$ into a Reproducing Kernel Hilbert Space (RKHS). By performing vector-valued kernel ridge regression on these embeddings, the model captures higher-order moments of the conditional distribution, such as variance and shape, rather than just the mean. This sophisticated "clearing out" of $Z$'s influence ensures that the residuals are truly representative of the noise, allowing for a robust linear independence test.

Experimental Evaluation and Datasets

The paper validates KRESIT across several benchmarks:

  • WHO Socio-Economic Data: This dataset examines the relationship between health expenditure and Gross National Income (GNI) across 178 countries. It serves as a prime example of "switching" behavior.
  • Synthetic Benchmarks: Tests involving non-functional dependencies and high-dimensional conditioning variables (up to $d=7$).
  • Real-World Causal Discovery: Application to the Boston Housing and Ozone datasets to recover known causal structures.
The WHO dataset illustrates "switching" behavior, where different groups of countries (e.g., oil-based economies) follow distinct functional paths.

Key Results

KRESIT demonstrates significant improvements over traditional methods:

  1. Type I Error Control: While RESIT's false positive rate climbed to nearly 60% as sample sizes increased in non-additive noise scenarios, KRESIT consistently maintained the target 5% significance level.
  2. Statistical Power: KRESIT remains competitive with "strong" kernel tests like KCI and KCIPT, particularly as the dimensionality of $Z$ increases, while being more computationally tractable.
  3. Causal Accuracy: In structural discovery tasks, KRESIT successfully avoided the spurious edges that RESIT frequently added due to residual leakage.

Conclusion

KRESIT provides a robust framework for conditional independence testing by moving beyond mean-based regression. By leveraging kernel feature maps, it effectively handles complex, non-additive noise patterns that baffle traditional two-step tests. While future work may focus on scaling these kernel methods to even larger datasets, KRESIT currently offers a powerful tool for more reliable causal discovery in real-world scenarios.

Summary updated

BibTeX
@inproceedings{zhang2017feature,
  author = {Qinyi Zhang and Sarah Filippi and Seth R. Flaxman and Dino Sejdinovic},
  title = {{Feature-to-Feature Regression for a Two-Step Conditional Independence Test}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2017},
}
Figure