TL;DR
Kernel independence tests like the Hilbert-Schmidt Independence Criterion (HSIC) are powerful tools for detecting non-linear relationships, but they are computationally bottlenecked by expensive permutation testing. This paper introduces $m\mathrm{HSIC}$ and $md\mathrm{HSIC}$, two new test statistics that leverage a sequential martingale-difference structure to achieve a standard normal null distribution. This entirely eliminates the need for permutations, delivering a 25x to 60x computational speedup while maintaining excellent statistical power.
What Problem Does This Paper Address?
Non-parametric independence testing—determining whether two or more random variables are truly independent without assuming a linear relationship—is a foundational challenge in statistics and machine learning. HSIC and its multi-variable extension ($d\mathrm{HSIC}$) are widely celebrated because they can detect arbitrary, complex dependencies by embedding probability distributions into Reproducing Kernel Hilbert Spaces (RKHS).
However, they suffer from a major practical flaw: under the null hypothesis (when the variables are independent), their estimators are degenerate $V$-statistics. This means their limiting distribution isn't a clean, standard distribution; instead, it is a complex, data-dependent weighted sum of $\chi^2$ variables that changes based on the unknown underlying data distribution. To calculate a p-value, practitioners must resort to permutation tests, recomputing the statistic hundreds of times ($B \ge 200$) per test. This inflates the computational cost from $O(n^2)$ to $O(B n^2)$, making these tests prohibitively slow for large datasets or real-time applications.
Methods
The authors bypass the permutation bottleneck by redesigning the test statistics to follow a martingale-difference structure, allowing them to invoke a martingale Central Limit Theorem (CLT) to guarantee a distribution-free standard normal limit ($\mathcal{N}(0,1)$). They propose two distinct algorithms:
- mHSIC (Martingale HSIC): Designed for pairwise independence ($d=2$). Instead of summing over the entire Gram matrix like a standard $V$-statistic, $m\mathrm{HSIC}$ computes a self-normalised lower-triangular sum of the Hadamard product of two empirically centred Gram matrices. Restricting the evaluation to a lower-triangular structure ensures that each term has a conditional expectation of zero given past observations under the null hypothesis. Studentizing this sum by its own empirical quadratic variation allows it to converge asymptotically to a standard normal distribution.
- mdHSIC (Split-Martingale d-variable HSIC): Designed for joint independence among $d \ge 2$ variables. A naive multi-variable extension of $m\mathrm{HSIC}$ fails because empirical centring errors compound multiplicatively across dimensions ($O_P(d/\sqrt{n})$), breaking the normal calibration when the number of variables grows large. To fix this, the authors introduce a half-sample split: they estimate the empirical mean embeddings (centring) on the first half of the data, and run the lower-triangular martingale test on the second half. This decouples the centring from the test sequence, shrinking the residual bias exponentially ($O_P(m^{-d/2})$) and restoring the standard normal limit.
Datasets
The authors evaluate their methods using synthetic data-generating processes (DGPs) to precisely control the ground-truth dependence strength ($a$):
- Bivariate Setting: $X$ is sampled uniformly from a hypercube, and $Y$ is generated via a random non-linear mixture of linear, cubic, and tanh activations of $X$, plus independent noise (Gaussian, Laplace, or Uniform). The ambient dimension ($d_{ambient}$) ranges from 1 to 500.
- Joint-Independence Setting: A linear-Gaussian joint-independence DGP involving $d \in \{2, 3, 5, 8, 10\}$ variables, where each variable is a 5-dimensional vector ($p=5$).
Key Insights and Ideas
- The Power of the Lower Triangle: Throwing away half the matrix interactions (moving from a full $V$-statistic to a lower-triangular sum) sounds counterintuitive because it discards data pairs. However, it introduces a sequential ordering that creates a martingale-difference sequence. This structural change is what unlocks the distribution-free standard normal limit.
- Bias Compounding in High Dimensions: In multi-variable joint testing, small empirical estimation errors don't just add up—they multiply. This creates a severe roadblock for naive extensions of martingale tests to joint independence.
- Sample Splitting as a Mathematical Eraser: Using a simple half-sample split to calculate the kernel centring completely changes the error dynamics. It turns a dangerous additive bias into an exponentially decaying residual that vanishes as the number of tested variables grows.
Key Results
- Massive Speedups: By replacing the permutation loop with a simple normal-quantile lookup, $m\mathrm{HSIC}$ and $md\mathrm{HSIC}$ run 25x to 60x faster than standard permutation-calibrated baselines. For example, at $n=16,000$, the permutation test takes over 2.5 seconds, while $m\mathrm{HSIC}$ finishes in just 0.042 seconds.
- Tight Type-I Error Control: Under the null hypothesis ($a=0$), both statistics accurately maintain the nominal false positive rate ($\alpha = 0.05$), provided the sample size is sufficient.
- Comparable Power: In the well-calibrated regime, $m\mathrm{HSIC}$ perfectly tracks the power curve of the permutation baseline. For joint independence, $md\mathrm{HSIC}$ exhibits a slight power gap due to the information cost of the sample split but remains highly competitive.
Limitations and Future Work
- Finite-Sample Curse of Dimensionality: For $m\mathrm{HSIC}$, the empirical centring bias leaves a residual that scales as $d_{ambient}/n^{0.875}$. When the ambient dimension is very high (e.g., 500) and the sample size $n$ is small, this inflates the Type-I error rate (as seen in the rightmost panel of Figure 1). The authors suggest a heuristic rule of thumb: $d_{ambient} \lesssim n^{0.875}$ to keep the test well-calibrated.
- Information Cost of Splitting: For $md\mathrm{HSIC}$, splitting the sample in half means fewer samples are used to build the martingale sequence, leading to lower statistical power at low dependence strengths compared to a full-sample permutation test.
- Future Directions: A natural next step is extending this permutation-free martingale framework to other degenerate kernel statistics, such as conditional independence testing.
Summary updated