TL;DR
This paper tackles the computational bottleneck of the powerful Maximum Mean Discrepancy (MMD) two-sample test by using Random Fourier Features (RFF). They prove that a fixed number of RFFs leads to inconsistent tests, but crucially, show that by letting the number of RFFs grow with the data, the test can achieve the same statistical guarantees as the original MMD test, but with sub-quadratic (and sometimes linear) computational complexity.
What Problem Does This Paper Address?
The Maximum Mean Discrepancy (MMD) test is a popular and powerful tool for comparing two distributions, especially in complex, high-dimensional settings. Its strength lies in its non-parametric nature and ability to capture subtle differences between distributions. However, a major drawback is its quadratic time complexity ($O(N^2)$ where $N$ is the total sample size), which makes it impractical for large datasets. While approximations using Random Fourier Features (RFF) offer a path to sub-quadratic time complexity, it was unclear whether these approximations could maintain the statistical power and theoretical guarantees of the original MMD test. Specifically, the optimal number of RFFs needed to balance computational cost and statistical performance was not well understood. This paper aims to bridge this gap by providing a theoretical analysis of the computational-statistical trade-off in RFF-based MMD tests.
Methods
The core of the paper lies in its theoretical analysis of the RFF-MMD test. The authors first establish a critical finding: RFF-MMD tests with a fixed number of random features are not pointwise consistent. This means they can fail to detect differences between distributions even asymptotically. This inconsistency is demonstrated through theoretical arguments involving the limiting distributions of the test statistics and their permuted critical values.
To overcome this, they investigate the scenario where the number of random features, $R$, grows with the sample size. They prove that if $R$ grows to infinity (even slowly), pointwise consistency is achieved. The main contribution then focuses on the time-power trade-off using the minimax testing framework. They analyze how the choice of $R$ affects both computational efficiency and the ability to distinguish distributions (separation rates) under different metrics (L2 and MMD). They derive conditions on $R$ and kernel bandwidths to achieve optimal separation rates within sub-quadratic time complexity, and even linear time for specific cases like Gaussian distributions. The analysis involves intricate mathematical tools, including properties of characteristic functions, permutation tests, and asymptotic analysis of random variables.
Datasets
Not discussed in the paper. The paper focuses on theoretical analysis and uses synthetic data for simulations.
Key Insights and Ideas
- Fixed R is Bad: The most striking insight is that using a fixed, finite number of random Fourier features for MMD tests leads to a fundamental lack of consistency. This means the test can fail even with infinite data if $R$ is not chosen carefully.
- $R$ Must Grow: Pointwise consistency is only achieved when the number of random features $R$ grows with the sample size. This is a crucial theoretical requirement.
- Sub-quadratic Optimality is Achievable: The paper demonstrates that by carefully selecting $R$ (and kernel bandwidths), RFF-MMD tests can achieve the same optimal statistical performance (minimax separation rates) as the original quadratic-time MMD test, but with significantly reduced computational cost (sub-quadratic, and even linear in some cases). This is a major theoretical breakthrough for large-scale statistical testing.
- Trade-off is Quantifiable: The work provides a framework for understanding and quantifying the computational-statistical trade-off, showing how $R$ needs to scale with sample size and dimensionality to maintain statistical guarantees.
Key Results
- Inconsistency with Fixed R: The paper proves that RFF-MMD tests with a fixed number of random features fail to achieve pointwise consistency (Theorem 3 and Corollary 4).
- Consistency with Growing R: Pointwise consistency is achieved if the number of random features $R$ grows to infinity with the sample size (Theorem 5).
- Optimal Separation Rates in Sub-quadratic Time: For smooth distributions, RFF-MMD tests can achieve the optimal minimax separation rate against L2 alternatives in sub-quadratic time (Theorem 6).
- Optimal Separation Rates in Linear Time: For Gaussian distributions, a parametric separation rate against MMD alternatives can be achieved in linear time (Proposition 8).
- Empirical Validation: Simulation studies (Figures 1 and 2, Table 1) corroborate the theoretical findings, showing that RFF-MMD test power increases with $R$ and approaches that of the standard MMD test, while maintaining significantly lower computational costs.
Limitations and Future Work
- Bounded Support Assumption: Theorem 6, which establishes sub-quadratic time optimality, is derived under the assumption of bounded support for the distributions. The authors note that extending this to unbounded supports is an open problem.
- Specific Kernel Assumptions: Some theoretical results rely on specific kernel properties (e.g., translation-invariant, characteristic).
- Broader Distribution Classes: While Proposition 8 shows linear-time optimality for Gaussian distributions, the authors believe this might hold for broader classes of distributions and suggest exploring this further.
- Other Metrics: The paper focuses on L2 and MMD metrics. Future work could explore time-power trade-offs for other metrics like the Hellinger distance.
- Deterministic Fourier Features: The paper uses random Fourier features. Investigating deterministic Fourier features, which can offer better kernel approximations, is suggested as a future direction.
Summary updated