stat.MLOct 6, 2026

Two-Sample Testing via Generative Processes

Authors: Eshant English, Kenji Fukumizu, Taiji Suzuki

Organizations: The University of Tokyo, Tokyo, Japan · Hasso Plattner Institute for Digital Engineering, Germany · Institute of Statistical Mathematics, Japan · RIKEN Centre for Advanced Intelligence Project (AIP), Tokyo, Japan

Abstract

Deciding whether two samples come from the same distribution is a classical problem in statistics, and generative transport offers a new way to approach it. We build a stochastic interpolant directly between the two samples and observe that, for a symmetric schedule, its law is invariant under the time reflection t↦1−tt \mapsto 1-t whenever the two distributions coincide. We therefore test whether the marginals at times t and 1-t agree by computing their Jensen--Shannon divergence. Both marginals are explicit mixtures over all cross-pairs of observations, so nothing is learned, and permutation calibration gives an exact finite-sample level. For Gaussian noise, this divergence equals a time integral that pairs the reflection defects of the velocity field and of the score, so the test compares transport dynamics rather than endpoints alone. With a narrow-plus-broad noise design, the test attains the minimax separation rate n^{-2s/(4s+d)} over bounded, compactly supported densities whose difference has Sobolev smoothness s > 3d/4, with no lower bound on the densities. Fusing a dyadic grid of noise scales through their permutation ranks, without sample splitting, preserves exact level and adapts to unknown s at an iterated-logarithmic cost. Empirically, the test matches or outperforms state-of-the-art kernel two-sample tests.

Figures & tables

Appendix figures & tables3 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Two-Sample Testing via Path-based Inference

    Oct 5, 2026Eshant English, Wei-Cheng Lai, Yanfeng Yang +3Two-Sample Testing

  2. Zero-Flow Two-Sample Tests

    Jul 23, 2026Yakun Wang, Leyang Wang, Song Liu +1Two-Sample Testing

  3. Maximum Mean Discrepancy with Unequal Sample Sizes via Generalized U-Statistics

    Dec 16, 2025Aaron Wei, Milad Jalali, Danica J. SutherlandMaximum Mean DiscrepancyTwo-Sample Testing