Learning Representations for Independence Testing

Abstract

Many tools exist to detect dependence between random variables, a core question across a wide range of machine learning, statistical, and scientific endeavors. Although several statistical tests guarantee eventual detection of any dependence with enough samples, standard tests may require an exorbitant amount of samples for detecting subtle dependencies between high-dimensional random variables with complex distributions. In this work, we study two related ways to learn powerful independence tests. First, we show how to construct powerful statistical tests with finite-sample validity by using variational estimators of mutual information, such as the InfoNCE or NWJ estimators. Second, we establish a close connection between these variational mutual information-based tests and tests based on the Hilbert-Schmidt Independence Criterion (HSIC); in particular, learning a variational bound (typically parameterized by a deep network) for mutual information is closely related to learning a kernel for HSIC. Finally, we show how to, rather than selecting a representation to maximize the statistic itself, select a representation which can maximize the power of a test, in either setting; we term the former case a Neural Dependency Statistic (NDS). While HSIC power optimization has been recently considered in the literature, we correct some important misconceptions and expand to considering deep kernels. In our experiments, while all approaches can yield powerful tests with exact level control, optimized HSIC tests generally outperform the other approaches on difficult problems of detecting structured dependence.

Cite

Text

Xu et al. "Learning Representations for Independence Testing." Transactions on Machine Learning Research, 2026.

Markdown

[Xu et al. "Learning Representations for Independence Testing." Transactions on Machine Learning Research, 2026.](https://mlanthology.org/tmlr/2026/xu2026tmlr-learning/)

BibTeX

@article{xu2026tmlr-learning,
  title     = {{Learning Representations for Independence Testing}},
  author    = {Xu, Nathaniel and Liu, Feng and Sutherland, Danica J.},
  journal   = {Transactions on Machine Learning Research},
  year      = {2026},
  url       = {https://mlanthology.org/tmlr/2026/xu2026tmlr-learning/}
}