[Paper Review] Adaptivity and Computation-Statistics Tradeoffs for Kernel and Distance based High Dimensional Two Sample Testing
This paper establishes theoretical connections between kernel-based (gMMD) and distance-based (eED) two-sample tests in high-dimensional settings, showing they achieve asymptotically equal and optimal power for mean difference alternatives (MDA), while remaining consistent for general distributional differences (GDA). It reveals a smooth computation-statistics tradeoff, where increased computation boosts power, and demonstrates that gMMD's performance is robust to bandwidth choice beyond the median heuristic.
Nonparametric two sample testing is a decision theoretic problem that involves identifying differences between two random variables without making parametric assumptions about their underlying distributions. We refer to the most common settings as mean difference alternatives (MDA), for testing differences only in first moments, and general difference alternatives (GDA), which is about testing for any difference in distributions. A large number of test statistics have been proposed for both these settings. This paper connects three classes of statistics - high dimensional variants of Hotelling's t-test, statistics based on Reproducing Kernel Hilbert Spaces, and energy statistics based on pairwise distances. We ask the question: how much statistical power do popular kernel and distance based tests for GDA have when the unknown distributions differ in their means, compared to specialized tests for MDA? We formally characterize the power of popular tests for GDA like the Maximum Mean Discrepancy with the Gaussian kernel (gMMD) and bandwidth-dependent variants of the Energy Distance with the Euclidean norm (eED) in the high-dimensional MDA regime. Some practically important properties include (a) eED and gMMD have asymptotically equal power; furthermore they enjoy a free lunch because, while they are additionally consistent for GDA, they also have the same power as specialized high-dimensional t-test variants for MDA. All these tests are asymptotically optimal (including matching constants) under MDA for spherical covariances, according to simple lower bounds, (b) The power of gMMD is independent of the kernel bandwidth, as long as it is larger than the choice made by the median heuristic, (c) There is a clear and smooth computation-statistics tradeoff for linear-time, subquadratic-time and quadratic-time versions of these tests, with more computation resulting in higher power.
Motivation & Objective
- To understand the statistical power of general-purpose kernel and distance-based tests (gMMD, eED) when distributions differ only in mean (MDA), compared to specialized high-dimensional t-tests.
- To characterize the asymptotic behavior of gMMD and eED under high-dimensional MDA, particularly regarding power, variance, and bandwidth dependence.
- To establish a smooth computation-statistics tradeoff across linear-time, subquadratic-time, and quadratic-time variants of these tests.
- To provide theoretical justification for the median heuristic in bandwidth selection for gMMD.
- To prove that gMMD and eED are asymptotically optimal for MDA under spherical covariances, matching lower bounds with identical constants.
Proposed method
- Derives asymptotic distributions of test statistics under both null and alternative hypotheses using U-statistic theory and Hermite polynomial expansions.
- Applies Taylor expansions to the Gaussian kernel and modified Euclidean distance to approximate higher-order moments under MDA.
- Uses trace asymptotics and moment bounds for quadratic forms in high-dimensional Gaussian vectors to characterize variance and mean of test statistics.
- Establishes that the variance of gMMD and eED under the alternative is O(1/n) when signal-to-noise ratio is high, while under the null it is O(1/n²), consistent with degenerate U-statistics.
- Compares the asymptotic power of gMMD and eED to that of high-dimensional t-tests under MDA, showing equivalence in limiting power and constants.
- Demonstrates that the power of gMMD is invariant to kernel bandwidth as long as it exceeds the median heuristic value.
Experimental results
Research questions
- RQ1How does the power of gMMD and eED for general difference alternatives (GDA) compare to that of specialized high-dimensional t-tests under mean difference alternatives (MDA)?
- RQ2Is there a theoretical justification for using the median heuristic in bandwidth selection for gMMD?
- RQ3What is the relationship between computational cost and statistical power in kernel and distance-based two-sample tests?
- RQ4Do gMMD and eED achieve asymptotic optimality in terms of power for MDA under spherical covariance structures?
- RQ5How do the variances and asymptotic distributions of gMMD and eED behave under high-dimensional MDA?
Key findings
- gMMD and eED achieve asymptotically equal power for MDA, matching the power of specialized high-dimensional t-tests under the same conditions.
- The power of gMMD is independent of the kernel bandwidth as long as it exceeds the value selected by the median heuristic.
- gMMD and eED are asymptotically optimal for MDA under spherical covariances, achieving the same limiting power and constants as lower bounds.
- There exists a smooth computation-statistics tradeoff: increasing computational cost (from linear to quadratic time) leads to a direct, order-of-magnitude increase in statistical power.
- The variance of gMMD and eED under the alternative is O(1/n), while under the null it is O(1/n²), consistent with degenerate U-statistics in high dimensions.
- The theoretical analysis confirms that gMMD and eED are automatically adaptive to MDA, being both consistent for GDA and optimally powerful for MDA without requiring reparameterization.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.