NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

On Wasserstein Two-Sample Testing and Related Families of Nonparametric Tests.

Aaditya Ramdas, Nicolás García Trillos, Marco Cuturi

TL;DR

This paper bridges seemingly disparate nonparametric two-sample testing methods by using the Wasserstein distance as a central theme. It reveals connections between univariate tests (like KS, QQ plots) and multivariate tests (like Energy Distance, MMD) through entropic smoothing of the Wasserstein distance, offering a unified perspective for practitioners and theorists.

What Problem Does This Paper Address?

The core problem this paper tackles is the vast and fragmented landscape of nonparametric two-sample testing. This field aims to detect differences between two probability distributions without assuming any specific parametric form (e.g., Gaussian). While numerous tests exist, they often appear disconnected, making it challenging for researchers and practitioners to navigate the field. The paper seeks to unify these methods by highlighting their underlying connections, particularly through the lens of the Wasserstein distance.

Methods

The paper's primary methodological contribution lies in establishing connections between various tests. A key technique is the entropic smoothing of the Wasserstein distance. By adding an entropic penalty to the optimal transport problem that defines the Wasserstein distance, the authors create a family of smoothed distances. This smoothing interpolates between the original Wasserstein distance and the Energy Distance (also known as the Cramer statistic). This connection then allows for further links to Kernel Maximum Mean Discrepancy (MMD), a popular kernel-based multivariate test.

For univariate settings, the paper connects the Wasserstein distance to established tools like quantile-quantile (QQ) plots and probability-probability (PP) plots. A significant development is the proposal of a "distribution-free" Wasserstein test. This is achieved by relating the Wasserstein distance to Receiver Operating Characteristic (ROC) and Ordinal Dominance Curves (ODC), which are known to have distribution-free properties under the null hypothesis.

Datasets

Not discussed in the paper.

Key Insights and Ideas

  • Wasserstein as a Unifying Concept: The paper demonstrates that the Wasserstein distance, particularly through its smoothed variants, serves as a powerful unifying concept for a wide array of nonparametric two-sample tests.
  • Entropic Smoothing Bridges Gaps: The novel use of entropic regularization to smooth the Wasserstein distance is a key innovation, creating a direct link to Energy Distance and, transitively, to MMD. This bridges the gap between optimal transport-based methods and kernel-based methods.
  • Univariate-Multivariate Connections: The paper elegantly connects univariate tools (KS, QQ plots) to multivariate ones, showing how concepts like the Wasserstein distance manifest across different dimensions.
  • Distribution-Free Wasserstein Test: The development of a distribution-free Wasserstein test by leveraging ROC/ODC curves is a significant practical contribution, simplifying hypothesis testing by removing dependence on unknown distribution characteristics.
  • Intuitive Interpretations: The paper provides intuitive explanations for the similarities and differences between tests, often framed around how they represent distributions (CDFs, QFs, CFs) and their behavior under the null hypothesis.

Key Results

  • The paper establishes a formal connection between the multivariate Wasserstein distance and the Energy Distance via an entropy-smoothed Wasserstein distance.
  • This smoothed distance interpolates between the Wasserstein and Energy distances, providing a continuous spectrum of related statistics.
  • Connections are made between univariate Wasserstein tests and QQ/PP plots, as well as the Kolmogorov-Smirnov test.
  • A novel construction for a distribution-free Wasserstein test is presented, which is shown to be related to ROC and ODC curves. This test's null distribution is independent of the underlying data distribution.
  • The paper demonstrates that the p-Wasserstein distance between empirical ODC curves and the population ODC curve can be computed using L^p distances of the ODC curves themselves.

Limitations and Future Work

  • Dimensionality: The paper notes that the rate of convergence of the Wasserstein distance to its population counterpart slows down as the dimension d increases. This is a known challenge for many multivariate statistical methods, including Wasserstein-based ones, suggesting that the original Wasserstein distance might not be the most favorable choice for high-dimensional two-sample testing without further adaptation.
  • Computational Cost: While entropic smoothing (via Sinkhorn's algorithm) addresses some computational challenges of optimal transport, the paper acknowledges that solving the optimal transport problem itself can be computationally expensive, especially for large sample sizes.
  • Scope: The authors explicitly state that they cannot cover all existing nonparametric tests and focus on those with direct connections to the Wasserstein distance. They mention other classes of tests (e.g., rank-based, graphical) that are not discussed.
  • Future Work: The paper suggests that a comprehensive empirical survey of the discussed tests would be of interest, which is beyond the scope of the current theoretical work. The authors also hint at the potential for further study of univariate tests that might require computationally intensive Monte-Carlo techniques, given modern computing speeds.

Summary updated

BibTeX
@article{ramdas2017wasserstein,
  author = {Aaditya Ramdas and Nicolás García Trillos and Marco Cuturi},
  title = {{On Wasserstein Two-Sample Testing and Related Families of Nonparametric Tests.}},
  journal = {Entropy},
  year = {2017},
  doi = {10.3390/e19020047},
}
Figure