Introduction
The two-sample test is a fundamental problem in statistics: given two sets of samples, do they originate from the same underlying probability distribution? While this problem is well-understood in low-dimensional settings, high-dimensional data presents a significant challenge known as the "curse of dimensionality." As the number of features increases, the amount of data required to distinguish between distributions grows exponentially.
This paper introduces the Projected Wasserstein (PW) distance, a novel metric designed to perform robust two-sample testing in high-dimensional spaces. By identifying an optimal low-dimensional projection that maximizes the distance between distributions, the PW distance effectively bypasses the dimensionality curse, providing a test that is both statistically powerful and computationally feasible.
The Challenge: Wasserstein Distance and Dimensionality
The Wasserstein distance (or Earth Mover's Distance) is highly valued in machine learning for its ability to capture the underlying geometry of data. However, its empirical estimation suffers from a slow convergence rate of $O(n^{-1/d})$, where $n$ is the sample size and $d$ is the dimension. In a 100-dimensional space, the data requirements for a reliable estimate become astronomical. Consequently, standard Wasserstein-based tests lose their power as dimensionality increases, failing to detect even significant differences between datasets.
The Proposed Method: Projected Wasserstein Distance
To address these limitations, the authors propose the Projected Wasserstein (PW) distance. The core idea is to project the high-dimensional data onto a $k$-dimensional linear subspace ($k \ll d$) before calculating the 1-Wasserstein distance.
Optimal Projection and the Stiefel Manifold
The PW distance is defined by finding the "worst-case" projection—the one that maximizes the Wasserstein distance between the two projected distributions. This ensures that the test focuses on the most significant differences between the datasets. Mathematically, this involves an optimization problem over the Stiefel manifold, the space of all orthogonal projection matrices.
Riemannian Optimization
To solve this maximization problem, the authors employ a Riemannian gradient method. By optimizing directly on the manifold of orthogonal matrices, the algorithm maintains the required constraints (orthogonality) throughout the process, leading to a stable and efficient computation of the PW distance.
Theoretical Guarantees
A key contribution of this work is the theoretical proof that the PW distance breaks the curse of dimensionality. Using Rademacher complexity, the authors demonstrate that the finite-sample convergence rate of the PW distance depends primarily on the projection dimension $k$ rather than the ambient dimension $d$. This allows for reliable statistical inference even when the number of features is large, provided the intrinsic differences can be captured in a lower-dimensional subspace.
Experimental Validation
The authors validated their approach using several high-dimensional synthetic datasets, including mean-shifted and covariance-shifted Gaussians, with dimensions up to $d=120$.
Comparison with Maximum Mean Discrepancy (MMD)
The PW test was compared against the Maximum Mean Discrepancy (MMD), a widely used kernel-based benchmark. The results indicated that while MMD's statistical power decayed significantly as the dimensionality increased, the PW test remained sensitive to distributional differences.
Interpretability and Visualization
Beyond statistical power, the PW distance offers superior interpretability. The optimal projection matrix $A$ identifies the specific linear combinations of features that contribute most to the difference between distributions. This allows researchers to visualize the discrepancy using low-dimensional density plots (KDEs), providing a clear "explanation" for why the test rejected the null hypothesis.
Conclusion and Future Directions
The Projected Wasserstein distance represents a significant advancement in high-dimensional hypothesis testing. By combining the geometric strengths of the Wasserstein distance with the efficiency of dimensionality reduction, it provides a robust framework for modern data analysis.
Future research will focus on automating the selection of the projection dimension $k$ and refining the computational efficiency of the Riemannian optimization to handle even larger datasets. Additionally, further exploration into tighter concentration bounds may reduce the reliance on permutation testing for p-value calculation.
Summary updated