Two-Sample Testing via Path-based Inference
Not on the map. Why?
Abstract (arXiv)
Modern deep generative models are primarily studied for their ability to generate realistic samples, yet the generative dynamics they learn can also serve as objects of statistical inference. We develop this idea for two-sample testing, the problem of deciding whether the same distribution generated two finite datasets. Using stochastic interpolants, we connect both distributions to a shared Gaussian bottleneck, so that each half of the resulting path is a Gaussian channel acting on a single population. We prove that the null hypothesis holds if and only if the population denoiser, or equivalently, the velocity fields of the two halves, coincide at any single noise level, which amounts to a reflection symmetry of the path about the bottleneck. Deviations from this symmetry yield a continuum of two-sample witnesses, which we estimate via held-out regression risks on learned denoisers and velocities and aggregate along the path; under an information-theoretic weighting, the aggregated discrepancy equals the Jeffreys divergence between the noise-smoothed distributions. Calibrating the resulting statistics by permutation yields tests that are valid in finite samples for any trained networks and consistent when the fields are learned accurately. On a synthetic benchmark and three image benchmarks, the proposed tests improve power over the strongest baseline by up to 33 percentage points at an equal total sample budget, with the best choice of regression representation and path weighting depending on the data modality. These results show that generative paths provide a principled representation for statistical testing, extending stochastic-interpolant models beyond generation.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 13 of its 62 references that are in the map. First posted on arXiv 5 Oct 2026.
Builds on
13 of 62 references.
References · 13
- 2023Your Diffusion Model is Secretly a Zero-Shot Classifiercited by 306
- 2023Text-to-Image Diffusion Models are Zero-Shot Classifierscited by 143
- 2022Denoising diffusion models for out-of-distribution detectioncited by 104
- 2021Density Ratio Estimation via Infinitesimal Classificationcited by 61
- 2023Unsupervised Out-of-Distribution Detection with Diffusion Inpaintingcited by 59
- 2025On the Closed-Form of Flow Matching: Generalization Does Not Arise from Target Stochasticitycited by 50
- 2023Information-Theoretic Diffusioncited by 44
- 2016Classification accuracy as a proxy for two sample testingcited by 42
- 2024Influence Functions for Scalable Data Attribution in Diffusion Modelscited by 33
- 2021A Witness Two-Sample Testcited by 23
- 2025Diffusion-Based Hypothesis Testing and Change-Point Detectioncited by 4
- 2026Midpoint Generative Modelscited by 4
1 more
- 2026Zero-Flow Two-Sample Testscited by 3
Built on by
Citing papers per year: 2026: 1.
1 paper.
- 2026Two-Sample Testing via Generative Processescited by 0
- 2026Two-Sample Testing via Generative Processes6 Oct 2026