Introduction
In machine learning, determining whether two random variables, $X$ and $Y$, are independent is a foundational problem. While classical statistics provides tools like Pearson’s correlation, these are largely limited to detecting linear relationships. More advanced measures, such as the Hilbert-Schmidt Independence Criterion (HSIC), are known to be zero if and only if variables are independent (provided the right "universal" kernels are used). However, until this paper, HSIC lacked a formal statistical "threshold."
Previously, if an empirical HSIC value of 0.05 was calculated, it was unclear whether that represented true statistical significance or merely a fluke of a finite sample. This paper introduces the first formal statistical test for independence based on HSIC. By deriving the asymptotic distribution of the HSIC estimator, the authors provide a rigorous way to calculate a threshold. If the empirical HSIC value exceeds this threshold, practitioners can confidently reject the null hypothesis that the variables are independent. This offers a powerful tool that works for high-dimensional vectors and structured data like text.
Methods
The authors focus on the Hilbert-Schmidt Independence Criterion (HSIC), which measures the norm of the cross-covariance operator between two Reproducing Kernel Hilbert Spaces (RKHSs).
The core technical contribution is determining the asymptotic distribution of the HSIC estimator:
- Under the Null Hypothesis ($H_0$): When variables are independent, the test statistic (scaled by sample size $m$) converges to an infinite sum of weighted chi-squared variables.
- Gamma Approximation: Because the exact null distribution is complex to compute, the authors propose approximating it using a two-parameter Gamma distribution. They derive simple, kernel-based expressions for the mean and variance needed to fit this Gamma curve.
- Efficiency: The resulting test has a computational complexity of $O(m^2)$, where $m$ is the sample size. This is significantly faster than permutation tests (Monte Carlo methods), which require re-calculating the statistic hundreds of times.
Datasets
The authors evaluated their test on two main types of data:
- Synthetic Subspace Data: Univariate "ICA benchmark" densities (multimodal, sub-Gaussian, etc.) mixed with Gaussian noise and rotated to create non-linear dependencies. This allowed them to test the impact of dimensionality ($d=1, 2, 4$) and sample size.
- Canadian Hansard Corpus: A real-world dataset consisting of official records from the Canadian parliament in both English and French, used to test independence between different languages (structured data).
Key Insights and Ideas
- Beyond Euclidean Space: Because the test is kernel-based, it isn't restricted to standard vectors. As long as a valid kernel (similarity measure) can be defined for the data—be it graphs, strings, or images—the test can be applied.
- The "Universal" Advantage: By using universal kernels (like the Gaussian RBF), the test is theoretically guaranteed to detect any type of dependence in the large-sample limit, unlike classical tests that only see specific patterns.
- Gamma vs. Permutation: The Gamma approximation is remarkably accurate for setting the decision threshold. This provides the statistical rigor of a permutation test at a fraction of the computational cost.
- High-Dimensional Robustness: Traditional "contingency table" tests fail as dimensions increase because they try to bin the space (the "curse of dimensionality"). The HSIC test avoids this by looking at global similarities via kernels.
Key Results
- Superiority in High Dimensions: In the subspace experiments, the HSIC-based tests significantly outperformed Power-Divergence (contingency table) and functional correlation tests. For example, at dimension $d=4$, the contingency table test failed to reject the null hypothesis even when variables were clearly dependent, while HSIC maintained high statistical power.
- Text Translation Detection: The test successfully detected the dependence between English sentences and their French translations. Using a "k-spectrum" kernel (which looks at substrings), the HSIC test achieved near-zero Type II error (it almost never missed a true translation pair) even with small samples.
- Consistency: The authors demonstrated that as the sample size $m$ increases, the Type II error (failing to detect dependence) drops to zero, confirming the test is statistically consistent.
Limitations and Future Work
- Kernel Selection: The performance of the test depends heavily on the choice of kernel and its hyperparameters (like the Gaussian width $\sigma$). While the authors use a "median heuristic" for $\sigma$, kernel choice remains a critical factor.
- Variance Estimates in Structured Data: In the text experiments, the Gamma approximation ($HSICg$) was sometimes less accurate than the permutation-based version ($HSICp$) due to high "diagonal dominance" in string kernels. This suggests that for very complex, structured kernels, the faster Gamma approximation might need further refinement.
- Scaling: While $O(m^2)$ is better than many alternatives, it may still be slow for "Big Data" applications with millions of samples. Future work might look into linear-time approximations.
Summary updated