Introduction
The Hilbert-Schmidt Independence Criterion (HSIC) has become a staple in machine learning for measuring statistical independence between random variables. Its popularity stems from its computational efficiency and its utility in tasks ranging from feature selection to causal discovery. However, HSIC suffers from a significant practical drawback: it lacks an objective method for selecting kernel parameters. Traditionally, practitioners rely on heuristics, such as the "median distance trick," to set the width of Gaussian kernels. When these heuristics fail to capture the underlying data structure, the reliability of the independence test is compromised.
This paper addresses this "black box" nature of HSIC by establishing a formal mathematical connection between HSIC and Least-Squares Mutual Information (LSMI). LSMI is a statistically principled method that includes a robust cross-validation framework for parameter tuning but is computationally intensive. By bridging these two methods, the authors provide a way to achieve the objective model selection of LSMI with the speed of HSIC.
Bridging the Gap: HSIC as an Approximation of LSMI
The core contribution of this work is the proof that the empirical estimator for HSIC is a simplified version of the LSMI estimator. Specifically, the authors demonstrate that by using a centralized kernel and approximating the density-ratio parameters in LSMI with a constant ($1/n$), one arrives at the standard HSIC formula.
This insight reveals that HSIC is essentially a "lazy" version of LSMI. Because of this relationship, the robust cross-validation (CV) framework designed for LSMI can be directly applied to tune HSIC's parameters. This allows for an objective selection of kernel widths and regularization parameters, moving beyond the limitations of the median heuristic.
Proposed Methodology
The authors propose a workflow that leverages LSMI-based cross-validation to optimize HSIC:
- Parameter Search: Define a grid of potential kernel parameters (e.g., Gaussian widths).
- Cross-Validation: Use LSMI’s CV procedure, which minimizes a squared-loss criterion ($J$), to identify the optimal parameters within the grid.
- Independence Testing: Apply these optimized parameters to the HSIC formula to perform the final statistical test.
Experimental Evaluation
The methodology was tested using synthetic datasets consisting of rotated Gaussian mixtures. By rotating two independent Gaussian distributions by an angle $\alpha$, the authors could precisely control the degree of dependence. When $\alpha = 0$, the variables are independent; when $\alpha = \pi/8$, they are dependent. All samples were normalized to unit variance to ensure a fair evaluation across different kernel widths.
Performance and Accuracy
The experiments compared three primary approaches: LSMI with cross-validation ($\text{LSMI}_{\text{CV}}$), HSIC with the median heuristic ($\text{HSIC}_{\text{med}}$), and the proposed HSIC with cross-validation ($\text{HSIC}_{\text{CV}}$).
As shown in the figure above, $\text{HSIC}_{\text{CV}}$ significantly outperforms the standard $\text{HSIC}_{\text{med}}$ in detecting dependence. Its rejection rate—the ability to correctly identify dependent variables—closely tracks the performance of the more complex $\text{LSMI}_{\text{CV}}$. Crucially, all methods maintained the expected 5% significance level when variables were independent, indicating that the improved sensitivity does not come at the cost of increased false positives.
Computational Efficiency
While $\text{HSIC}_{\text{CV}}$ matches the accuracy of LSMI, it does so with much greater efficiency.
According to the normalized computation times, $\text{HSIC}_{\text{CV}}$ requires approximately 80% less computation time than the full $\text{LSMI}_{\text{CV}}$. Although it is roughly 9 times slower than the simple median heuristic due to the overhead of cross-validation, the gain in reliability and accuracy makes it a superior choice for complex datasets where heuristics often fail.
Conclusion
By proving that HSIC is an approximation of LSMI, this research provides a rigorous foundation for kernel parameter selection. The proposed $\text{HSIC}_{\text{CV}}$ method offers "objective efficiency," combining the statistical rigor of cross-validation with the computational advantages of the HSIC framework. This approach moves kernel-based independence testing away from manual "guessing" toward a more reliable, automated process.
Summary updated