mlsanityData to 14 Oct 2026

MMD Aggregated Two-Sample Test

arXiv 2110.15073 ↗First posted 28 Oct 2021stat.ML cs.LG math.STcited by 75

Not on the map. Why?

Abstract (arXiv)

We propose two novel nonparametric two-sample kernel tests based on the Maximum Mean Discrepancy (MMD). First, for a fixed kernel, we construct an MMD test using either permutations or a wild bootstrap, two popular numerical procedures to determine the test threshold. We prove that this test controls the probability of type I error non-asymptotically. Hence, it can be used reliably even in settings with small sample sizes as it remains well-calibrated, which differs from previous MMD tests which only guarantee correct test level asymptotically. When the difference in densities lies in a Sobolev ball, we prove minimax optimality of our MMD test with a specific kernel depending on the smoothness parameter of the Sobolev ball. In practice, this parameter is unknown and, hence, the optimal MMD test with this particular kernel cannot be used. To overcome this issue, we construct an aggregated test, called MMDAgg, which is adaptive to the smoothness parameter. The test power is maximised over the collection of kernels used, without requiring held-out data for kernel selection (which results in a loss of test power), or arbitrary kernel choices such as the median heuristic. We prove that MMDAgg still controls the level non-asymptotically, and achieves the minimax rate over Sobolev balls, up to an iterated logarithmic term. Our guarantees are not restricted to a specific type of kernel, but hold for any product of one-dimensional translation invariant characteristic kernels. We provide a user-friendly parameter-free implementation of MMDAgg using an adaptive collection of bandwidths. We demonstrate that MMDAgg significantly outperforms alternative state-of-the-art MMD-based two-sample tests on synthetic data satisfying the Sobolev smoothness assumption, and that, on real-world image data, MMDAgg closely matches the power of tests leveraging the use of models such as neural networks.

Key facts. Cited by 75 papers in the map (data through 14 Oct 2026). Builds on 15 of its 73 references that are in the map. First posted on arXiv 28 Oct 2021.

Builds on

15 of 73 references.

References · 15

  1. 2020AutoGluon-Tabular: Robust and Accurate AutoML for Structured Datacited by 383
  2. 2018Failing Loudly: An Empirical Study of Methods for Detecting Dataset Shiftcited by 243
  3. 2016A Kernelized Stein Discrepancy for Goodness-of-fit Tests and Model Evaluationcited by 236
  4. 2016A Kernel Test of Goodness of Fitcited by 143
  5. 2020Learning Deep Kernels for Non-Parametric Two-Sample Testscited by 130
  6. 2016Generative Models and Model Criticism via Optimized Maximum Mean Discrepancycited by 100
  7. 2013Exact post-selection inference, with application to the lassocited by 91
  8. 2014Optimal Inference After Model Selectioncited by 67
  9. 2016Interpretable Distribution Features with Maximum Testing Powercited by 63
  10. 2020A Kernel Two-Sample Test for Functional Datacited by 28
  11. 2021A Witness Two-Sample Testcited by 23
  12. 2019On the Optimality of Gaussian Kernel Based Nonparametric Tests against Smooth Alternativescited by 21
3 more
  1. 2020Learning Kernel Tests Without Data Splittingcited by 19
  2. 2018Post Selection Inference with Incomplete Maximum Mean Discrepancy Estimatorcited by 11
  3. 2021Statistical Depth Meets Machine Learning: Kernel Mean Embeddings and Depth in Functional Data Analysiscited by 6

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2021: 1; 2022: 10; 2023: 12; 2024: 11; 2025: 22; 2026: 19.

75 papers.

Sort:

By area:

  1. 2022Normalizing flow neural networks by JKO schemecited by 39
  2. 2023MMD-FUSE: Learning and Combining Kernels for Two-Sample Testing Without Data Splittingcited by 33
  3. 2024DySLIM: Dynamics Stable Learning by Invariant Measure for Chaotic Systemscited by 30
  4. 2022Efficient Aggregated Kernel Tests using Incomplete U-statisticscited by 27
  5. 2022KSD Aggregated Goodness-of-fit Testcited by 21
  6. 2022AutoML Two-Sample Testcited by 20
  7. 2022Spectral Regularized Kernel Two-Sample Testscited by 20
  8. 2021Composite Goodness-of-fit Tests with Kernelscited by 16
  9. 2024Practical Kernel Tests of Conditional Independencecited by 15
  10. 2024A Practical Guide to Sample-based Statistical Distances for Evaluating Generative Models in Sciencecited by 14
  11. 2025A Practical Introduction to Kernel Discrepancies: MMD, HSIC & KSDcited by 13
  12. 2023A Symmetry-Aware Exploration of Bayesian Neural Network Posteriorscited by 12
38 more
  1. 2026Representation Distribution Matching for One-Step Visual Generationcited by 11
  2. 2023Boosting the Power of Kernel Two-Sample Testscited by 10
  3. 2023The Representation Jensen-Shannon Divergencecited by 9
  4. 2023A Bias-Variance-Covariance Decomposition of Kernel Scores for Generative Modelscited by 8
  5. 2023Variable Selection for Kernel Two-Sample Testscited by 7
  6. 2024Robust Kernel Hypothesis Testing under Data Corruptioncited by 7
  7. 2024A Kernel-Based Conditional Two-Sample Test Using Nearest Neighbors (with Applications to Calibration, Regression Curves, and Simulation-Based Inference)cited by 7
  8. 2024On the Robustness of Kernel Goodness-of-Fit Testscited by 7
  9. 2023Spectral Regularized Kernel Goodness-of-Fit Testscited by 6
  10. 2024A Unified Data Representation Learning for Non-parametric Two-sample Testingcited by 6
  11. 2025A Scalable Nystrom-Based Kernel Two-Sample Test with Permutationscited by 6
  12. 2025DUAL: Learning Diverse Kernels for Aggregated Two-sample and Independence Testingcited by 6
  13. 2023Variable Selection in Maximum Mean Discrepancy for Interpretable Distribution Comparisoncited by 5
  14. 2025A Unified View of Optimal Kernel Hypothesis Testingcited by 5
  15. 2025Sequentially Auditing Differential Privacycited by 5
  16. 2023Using Perturbation to Improve Goodness-of-Fit Tests based on Kernelized Stein Discrepancycited by 4
  17. 2024Statistical and Computational Guarantees of Kernel Max-Sliced Wasserstein Distancescited by 4
  18. 2024General Frameworks for Conditional Two-Sample Testingcited by 4
  19. 2022Discovering Distribution Shifts using Latent Space Representationscited by 3
  20. 2023A Semi-Bayesian Nonparametric Estimator of the Maximum Mean Discrepancy Measure: Applications in Goodness-of-Fit Testing and Generative Adversarial Networkscited by 3
  21. 2026Model-Agnostic Signal Discovery with Machine Learning: Bridging the Gap Between Theory and Practicecited by 3
  22. 2026Zero-Flow Two-Sample Testscited by 3
  23. 2022A general framework for the analysis of kernel-based testscited by 2
  24. 2023MLHOps: Machine Learning for Healthcare Operationscited by 2
  25. 2024Learning Representations for Independence Testingcited by 2
  26. 2024Recurrent Neural Goodness-of-Fit Test for Time Seriescited by 2
  27. 2025Adversarial Subspace Generation for Outlier Detection in High-Dimensional Datacited by 2
  28. 2025Kernel Embeddings and the Separation of Measure Phenomenoncited by 2
  29. 2025AutoSciDACT: Automated Scientific Discovery through Contrastive Embedding and Hypothesis Testingcited by 2
  30. 2025Model-Free Assessment of Simulator Fidelity via Quantile Curvescited by 2
  31. 2026Regularized f-Divergence Kernel Testscited by 2
  32. 2026Magnitude Distance: A Geometric Measure of Dataset Similaritycited by 2
  33. 2026Kernel Tests of Equivalencecited by 2
  34. 2026Minimax Lower Bounds of Kernel Discrepancy Estimation: MMD, HSIC, KSDcited by 2
  35. 2022Collaborative likelihood-ratio estimation over graphscited by 1
  36. 2022A Kernelised Stein Statistic for Assessing Implicit Generative Modelscited by 1
  37. 2025Beyond Basic A/B testing: Improving Statistical Efficiency for Business Growthcited by 1
  38. 2025Probabilistic distances-based hallucination detection in LLMs with RAGcited by 1

50 most cited of 75 All 75 (JSON)