This paper bridges the gap between machine learning and classical statistics by using AUC optimization to solve the multivariate two-sample problem. The authors propose a two-stage "learn-then-test" procedure: first, learn an optimal scoring function to rank data, and second, use that function to project high-dimensional samples onto a 1D line for a standard Mann-Whitney Wilcoxon test.
The Multivariate Two-Sample Problem
The "two-sample problem" asks a fundamental question: Do these two sets of data come from the same probability distribution? In one dimension, we have powerful, "distribution-free" tools like the Mann-Whitney Wilcoxon (MWW) test. However, as the number of dimensions ($d$) increases, these classical methods break down—a victim of the curse of dimensionality.
While modern approaches like Maximum Mean Discrepancy (MMD) exist, they often rely on complex kernel choices. The authors identify a clever connection: if two distributions are different, there must exist a scoring function that can rank samples from one distribution higher than the other. This is exactly what Area Under the Curve (AUC) optimization does in bipartite ranking.
A Score-Based Rank-Sum Wilcoxon Test
The authors introduce a two-stage method to tackle this problem:
- Data Splitting: The available data is split into two halves.
- Stage 1 (Ranking): Using the first half of the data, the algorithm performs empirical AUC maximization. It learns a scoring function, $\hat{s}(x)$, designed to assign higher values to one sample set versus the other. This essentially "finds" the most discriminative direction in high-dimensional space.
- Stage 2 (Testing): The second half of the data is projected onto the real line using the learned scoring function $\hat{s}(x)$. Because the data is now one-dimensional, the authors can apply a standard MWW test.
Why the split? Splitting the data ensures that the scoring function is independent of the data used for the final test. This preserves the "distribution-free" property of the rank test under the null hypothesis, meaning the test's significance level ($\alpha$) remains valid regardless of the underlying distribution.
Key Insights
- AUC as a Distance Metric: The authors show that the null hypothesis (distributions are identical) is equivalent to saying the optimal AUC is exactly 0.5. Any deviation from 0.5 indicates a difference in distributions.
- Dimension Reduction via Learning: Instead of trying to estimate high-dimensional densities (which is hard), the method uses supervised learning to find a 1D projection that preserves the dissimilarity.
- Automatic Thresholds: A "stunning property" of this method is that the critical thresholds for the test are set automatically by the MWW distribution, requiring no complex bootstrapping or parameter tuning once the scoring function is learned.
- Universal Consistency: The authors prove that if the AUC learning step is "consistent" (gets better with more data), the resulting two-sample test will eventually detect any difference between two distinct distributions.
Experimental Results
The paper evaluates the method using synthetic multivariate Gaussian distributions, varying the dimensions ($d=10$ and $d=30$) and the distance between distributions ($\Delta\mu$) to test the sensitivity of the method against "fairly far" and "very close" alternatives.
The proposed score-based MWW test was compared against Linear Discriminant Analysis (LDA) and MMD variants:
- High-Dimensional Superiority: In 30-dimensional tests with subtle differences ($\Delta\mu = 0.2$), the score-based MWW achieved 85% power, significantly outperforming MMD (54-58%) and Kernel Fisher Discriminant Analysis (36%).
- Robustness: Even when the distributions were very close ($\Delta\mu = 0.05$), the proposed method maintained higher power (16-18%) than competing kernel methods (6-13%).
- Efficiency: The results suggest that "learning the test" via AUC optimization is a highly efficient way to handle the curse of dimensionality in hypothesis testing.
Limitations and Future Work
- Data Splitting Penalty: By splitting the data, the method uses only half the samples for the actual statistical test, which might reduce power in very small sample regimes.
- Scoring Function Complexity: The performance depends on the "richness" of the class of scoring functions. If the true difference between distributions cannot be captured by the chosen model (e.g., using a linear model for a non-linear difference), the test's power will suffer.
- Future Directions: The authors suggest investigating the relative efficiency of this approach against other "natural candidates" and extending the principle to other types of $R$-statistics beyond the MWW test.
Summary updated