MMD Aggregated Two-Sample Test
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
- 2020AutoGluon-Tabular: Robust and Accurate AutoML for Structured Datacited by 383
- 2018Failing Loudly: An Empirical Study of Methods for Detecting Dataset Shiftcited by 243
- 2016A Kernelized Stein Discrepancy for Goodness-of-fit Tests and Model Evaluationcited by 236
- 2016A Kernel Test of Goodness of Fitcited by 143
- 2020Learning Deep Kernels for Non-Parametric Two-Sample Testscited by 130
- 2016Generative Models and Model Criticism via Optimized Maximum Mean Discrepancycited by 100
- 2013Exact post-selection inference, with application to the lassocited by 91
- 2014Optimal Inference After Model Selectioncited by 67
- 2016Interpretable Distribution Features with Maximum Testing Powercited by 63
- 2020A Kernel Two-Sample Test for Functional Datacited by 28
- 2021A Witness Two-Sample Testcited by 23
- 2019On the Optimality of Gaussian Kernel Based Nonparametric Tests against Smooth Alternativescited by 21
Built on by
Citing papers per year: 2021: 1; 2022: 10; 2023: 12; 2024: 11; 2025: 22; 2026: 19.
75 papers.
Sort:
By area:
- 2022Normalizing flow neural networks by JKO schemecited by 39
- 2023MMD-FUSE: Learning and Combining Kernels for Two-Sample Testing Without Data Splittingcited by 33
- 2024DySLIM: Dynamics Stable Learning by Invariant Measure for Chaotic Systemscited by 30
- 2022Efficient Aggregated Kernel Tests using Incomplete U-statisticscited by 27
- 2022KSD Aggregated Goodness-of-fit Testcited by 21
- 2022AutoML Two-Sample Testcited by 20
- 2022Spectral Regularized Kernel Two-Sample Testscited by 20
- 2021Composite Goodness-of-fit Tests with Kernelscited by 16
- 2024Practical Kernel Tests of Conditional Independencecited by 15
- 2024A Practical Guide to Sample-based Statistical Distances for Evaluating Generative Models in Sciencecited by 14
- 2025A Practical Introduction to Kernel Discrepancies: MMD, HSIC & KSDcited by 13
- 2023A Symmetry-Aware Exploration of Bayesian Neural Network Posteriorscited by 12
38 more
- 2026Representation Distribution Matching for One-Step Visual Generationcited by 11
- 2023Boosting the Power of Kernel Two-Sample Testscited by 10
- 2023The Representation Jensen-Shannon Divergencecited by 9
- 2023A Bias-Variance-Covariance Decomposition of Kernel Scores for Generative Modelscited by 8
- 2023Variable Selection for Kernel Two-Sample Testscited by 7
- 2024Robust Kernel Hypothesis Testing under Data Corruptioncited by 7
- 2024A Kernel-Based Conditional Two-Sample Test Using Nearest Neighbors (with Applications to Calibration, Regression Curves, and Simulation-Based Inference)cited by 7
- 2024On the Robustness of Kernel Goodness-of-Fit Testscited by 7
- 2023Spectral Regularized Kernel Goodness-of-Fit Testscited by 6
- 2024A Unified Data Representation Learning for Non-parametric Two-sample Testingcited by 6
- 2025A Scalable Nystrom-Based Kernel Two-Sample Test with Permutationscited by 6
- 2025DUAL: Learning Diverse Kernels for Aggregated Two-sample and Independence Testingcited by 6
- 2023Variable Selection in Maximum Mean Discrepancy for Interpretable Distribution Comparisoncited by 5
- 2025A Unified View of Optimal Kernel Hypothesis Testingcited by 5
- 2025Sequentially Auditing Differential Privacycited by 5
- 2023Using Perturbation to Improve Goodness-of-Fit Tests based on Kernelized Stein Discrepancycited by 4
- 2024Statistical and Computational Guarantees of Kernel Max-Sliced Wasserstein Distancescited by 4
- 2024General Frameworks for Conditional Two-Sample Testingcited by 4
- 2022Discovering Distribution Shifts using Latent Space Representationscited by 3
- 2023A Semi-Bayesian Nonparametric Estimator of the Maximum Mean Discrepancy Measure: Applications in Goodness-of-Fit Testing and Generative Adversarial Networkscited by 3
- 2026Model-Agnostic Signal Discovery with Machine Learning: Bridging the Gap Between Theory and Practicecited by 3
- 2026Zero-Flow Two-Sample Testscited by 3
- 2022A general framework for the analysis of kernel-based testscited by 2
- 2023MLHOps: Machine Learning for Healthcare Operationscited by 2
- 2024Learning Representations for Independence Testingcited by 2
- 2024Recurrent Neural Goodness-of-Fit Test for Time Seriescited by 2
- 2025Adversarial Subspace Generation for Outlier Detection in High-Dimensional Datacited by 2
- 2025Kernel Embeddings and the Separation of Measure Phenomenoncited by 2
- 2025AutoSciDACT: Automated Scientific Discovery through Contrastive Embedding and Hypothesis Testingcited by 2
- 2025Model-Free Assessment of Simulator Fidelity via Quantile Curvescited by 2
- 2026Regularized f-Divergence Kernel Testscited by 2
- 2026Magnitude Distance: A Geometric Measure of Dataset Similaritycited by 2
- 2026Kernel Tests of Equivalencecited by 2
- 2026Minimax Lower Bounds of Kernel Discrepancy Estimation: MMD, HSIC, KSDcited by 2
- 2022Collaborative likelihood-ratio estimation over graphscited by 1
- 2022A Kernelised Stein Statistic for Assessing Implicit Generative Modelscited by 1
- 2025Beyond Basic A/B testing: Improving Statistical Efficiency for Business Growthcited by 1
- 2025Probabilistic distances-based hallucination detection in LLMs with RAGcited by 1
50 most cited of 75 All 75 (JSON)
- 2026From Imbalance to Evidence: Deep Nonparametric Testing for Complex Data under Severe Sample Imbalance9 Oct 2026
- 2026Minimax Lower Bounds of Kernel Discrepancy Estimation: MMD, HSIC, KSD27 Jul 2026
- 2026Zero-Flow Two-Sample Tests23 Jul 2026
- 2026When Drift Detectors cry Wolf: False Alarm Rates in continuous ML Monitoring19 Jul 2026
- 2026Dimension-Calibrated Unexplained Mass: An Interpretable Drift Statistic for Contamination Monitoring in Data Streams18 Jul 2026
- 2026ASK-NN: An Asymmetric Nearest-Neighbor Test that detects Distribution Drifts in Natural Language17 Jul 2026
- 2026A Gradient Flow Perspective on Minimum MMD Estimation4 Jul 2026
- 2026Representation Distribution Matching for One-Step Visual Generation2 Jul 2026
- 2026USAD: Uncertainty-aware Statistical Adversarial Detection26 Jun 2026
- 2026From Persistence to Survival: Hypothesis Testing, Effect Sizes and Vectorisation for Topological Features10 Jun 2026
- 2026LOTTERY: Learning from Reference-Only Samples in Two-Sample Testing under Size Asymmetry7 Jun 2026
- 2026Model-Agnostic Signal Discovery with Machine Learning: Bridging the Gap Between Theory and Practice29 May 2026
38 more
- 2026Kernel Selection is Model Selection: A Unified Complexity-Penalized Approach for MMD Two-Sample Tests7 May 2026
- 2026Data Fusion with Distributional Equivalence Test-then-pool12 Mar 2026
- 2026Kernel Tests of Equivalence11 Mar 2026
- 2026Magnitude Distance: A Geometric Measure of Dataset Similarity9 Feb 2026
- 2026Distribution-free two-sample testing with blurred total variation distance5 Feb 2026
- 2026Regularized f-Divergence Kernel Tests27 Jan 2026
- 2026Finite-Sample Unbiased Variance of MMD under Unbalanced Sampling: Exact Estimation and Quasi-Linear Computation20 Jan 2026
- 2025Maximum Mean Discrepancy with Unequal Sample Sizes via Generalized U-Statistics16 Dec 2025
- 2025Model-Free Assessment of Simulator Fidelity via Quantile Curves4 Dec 2025
- 2025Classical and quantum kernel fusion for two-sample testing26 Nov 2025
- 2025Sparse, self-organizing ensembles of local kernels detect rare statistical anomalies5 Nov 2025
- 2025Minimax-Optimal Two-Sample Test with Sliced Wasserstein31 Oct 2025
- 2025AutoSciDACT: Automated Scientific Discovery through Contrastive Embedding and Hypothesis Testing24 Oct 2025
- 2025DUAL: Learning Diverse Kernels for Aggregated Two-sample and Independence Testing13 Oct 2025
- 2025Anchor-based Maximum Discrepancy for Relative Similarity Testing12 Oct 2025
- 2025One-shot Conditional Sampling: MMD meets Nearest Neighbors29 Sep 2025
- 2025Sequentially Auditing Differential Privacy8 Sep 2025
- 2025Likelihood Ratio Tests by Kernel Gaussian Embedding11 Aug 2025
- 2025Hybrid Generative Modeling for Incomplete Physics: Deep Grey-Box Meets Optimal Transport27 Jun 2025
- 2025Probabilistic distances-based hallucination detection in LLMs with RAG11 Jun 2025
- 2025Kernel Quantile Embeddings and Associated Probability Metrics26 May 2025
- 2025Beyond Basic A/B testing: Improving Statistical Efficiency for Business Growth13 May 2025
- 2025Boosting Statistic Learning with Synthetic Data from Pretrained Large Models8 May 2025
- 2025Kernel Embeddings and the Separation of Measure Phenomenon7 May 2025
- 2025Adversarial Subspace Generation for Outlier Detection in High-Dimensional Data10 Apr 2025
- 2025A Unified View of Optimal Kernel Hypothesis Testing10 Mar 2025
- 2025A Practical Introduction to Kernel Discrepancies: MMD, HSIC & KSD4 Mar 2025
- 2025A Scalable Nystrom-Based Kernel Two-Sample Test with Permutations19 Feb 2025
- 2025Unsupervised Structural-Counterfactual Generation under Domain Shift17 Feb 2025
- 2024A Unified Data Representation Learning for Non-parametric Two-sample Testing30 Nov 2024
- 2024General Frameworks for Conditional Two-Sample Testing22 Oct 2024
- 2024Recurrent Neural Goodness-of-Fit Test for Time Series17 Oct 2024
- 2024Learning Representations for Independence Testing10 Sep 2024
- 2024On the Robustness of Kernel Goodness-of-Fit Tests11 Aug 2024
- 2024A Kernel-Based Conditional Two-Sample Test Using Nearest Neighbors (with Applications to Calibration, Regression Curves, and Simulation-Based Inference)23 Jul 2024
- 2024Robust Kernel Hypothesis Testing under Data Corruption30 May 2024
- 2024Statistical and Computational Guarantees of Kernel Max-Sliced Wasserstein Distances24 May 2024
- 2024A Practical Guide to Sample-based Statistical Distances for Evaluating Generative Models in Science19 Mar 2024
50 newest of 75 All 75 (JSON)
- 2026Regularized f-Divergence Kernel Testscited by 2
- 2026Regularized f-Divergence Kernel Tests27 Jan 2026
- 2022Normalizing flow neural networks by JKO schemecited by 39
- 2023MMD-FUSE: Learning and Combining Kernels for Two-Sample Testing Without Data Splittingcited by 33
- 2024DySLIM: Dynamics Stable Learning by Invariant Measure for Chaotic Systemscited by 30
- 2022Efficient Aggregated Kernel Tests using Incomplete U-statisticscited by 27
- 2022KSD Aggregated Goodness-of-fit Testcited by 21
- 2022AutoML Two-Sample Testcited by 20
- 2022Spectral Regularized Kernel Two-Sample Testscited by 20
- 2021Composite Goodness-of-fit Tests with Kernelscited by 16
- 2024Practical Kernel Tests of Conditional Independencecited by 15
- 2024A Practical Guide to Sample-based Statistical Distances for Evaluating Generative Models in Sciencecited by 14
- 2025A Practical Introduction to Kernel Discrepancies: MMD, HSIC & KSDcited by 13
- 2023A Symmetry-Aware Exploration of Bayesian Neural Network Posteriorscited by 12
12 most cited of 72 All 72 (JSON)
- 2026From Imbalance to Evidence: Deep Nonparametric Testing for Complex Data under Severe Sample Imbalance9 Oct 2026
- 2026Minimax Lower Bounds of Kernel Discrepancy Estimation: MMD, HSIC, KSD27 Jul 2026
- 2026Zero-Flow Two-Sample Tests23 Jul 2026
- 2026When Drift Detectors cry Wolf: False Alarm Rates in continuous ML Monitoring19 Jul 2026
- 2026Dimension-Calibrated Unexplained Mass: An Interpretable Drift Statistic for Contamination Monitoring in Data Streams18 Jul 2026
- 2026ASK-NN: An Asymmetric Nearest-Neighbor Test that detects Distribution Drifts in Natural Language17 Jul 2026
- 2026A Gradient Flow Perspective on Minimum MMD Estimation4 Jul 2026
- 2026Representation Distribution Matching for One-Step Visual Generation2 Jul 2026
- 2026USAD: Uncertainty-aware Statistical Adversarial Detection26 Jun 2026
- 2026From Persistence to Survival: Hypothesis Testing, Effect Sizes and Vectorisation for Topological Features10 Jun 2026
- 2026LOTTERY: Learning from Reference-Only Samples in Two-Sample Testing under Size Asymmetry7 Jun 2026
- 2026Model-Agnostic Signal Discovery with Machine Learning: Bridging the Gap Between Theory and Practice29 May 2026
12 newest of 72 All 72 (JSON)