Lune

NeurIPS2022Top-tier venue

A permutation-free kernel two-sample test

Shubhanshu Shekhar, Ilmun Kim, Aaditya Ramdas

Abstract

The kernel Maximum Mean Discrepancy (MMD) is a popular multivariate distance metric between distributions that has found utility in two-sample testing. The usual kernel-MMD test statistic is a degenerate U-statistic under the null, and thus it has an intractable limiting distribution. Hence, to design a level-α\alpha test, one usually selects the rejection threshold as the (1−α)(1-\alpha)-quantile of the permutation distribution. The resulting nonparametric test has finite-sample validity but suffers from large computational cost, since every permutation takes quadratic time. We propose the cross-MMD, a new quadratic-time MMD test statistic based on sample-splitting and studentization. We prove that under mild assumptions, the cross-MMD has a limiting standard Gaussian distribution under the null. Importantly, we also show that the resulting test is consistent against any fixed alternative, and when using the Gaussian kernel, it has minimax rate-optimal power against local alternatives. For large sample sizes, our new cross-MMD provides a significant speedup over the MMD, for only a slight loss in power.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

9 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • MMD-Fuse: Learning and Combining Kernels for Two-Sample Testing Without Data Splitting cites AutoML Two-Sample Test
  • On the Exploration of Local Significant Differences For Two-Sample Test cites AutoML Two-Sample Test
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers9

  1. MMD-Fuse: Learning and Combining Kernels for Two-Sample Testing Without Data SplittingFelix Biggs, Antonin Schrab, Arthur GrettonNeurIPS 2023 · 49 citations
  2. AutoML Two-Sample TestJonas M. Kübler, Vincent Stimper, Simon Buchholz, Krikamol Muandet et al.NeurIPS 2022 · 29 citations
  3. An Efficient Doubly-Robust Test for the Kernel Treatment EffectDiego Martinez-Taboada, Aaditya Ramdas, Edward KennedyNeurIPS 2023 · 17 citations
  4. A Bias-Variance-Covariance Decomposition of Kernel Scores for Generative ModelsSebastian Gregor Gruber, Florian BuettnerICML 2024 · 6 citations
  5. On the Exploration of Local Significant Differences For Two-Sample TestZhijian Zhou, Jie Ni, Jia-He Yao, Wei GaoNeurIPS 2023 · 6 citations

Related papers

  1. Efficient Aggregated Kernel Tests using Incomplete UU-statisticsAntonin Schrab, Ilmun Kim, Benjamin Guedj, Arthur GrettonNeurIPS 2022 · 42 citations
  2. Neural Tangent Kernel Maximum Mean DiscrepancyXiuyuan Cheng, Yao XieNeurIPS 2021 · 26 citations
  3. Kernel-based Maximum-of-difference Test for Two-sample ComparisonDan Pu, Tianyi Zhu, Yao Yan, Wei LanICML 2026
  4. Learning Kernel Tests Without Data SplittingJonas M. Kübler, Wittawat Jitkrittum, Bernhard Schölkopf, Krikamol MuandetNeurIPS 2020 · 27 citations
  5. Kernel Quantile Embeddings and Associated Probability MetricsMasha Naslidnyk, Siu Lun Chau, François-Xavier Briol, Krikamol MuandetICML 2025
Dusk over the sea between two cliffs drawn in fine vertical lines