AutoML Two-Sample Test
Jonas M. Kübler, Vincent Stimper, Simon Buchholz, Krikamol Muandet, Bernhard Schölkopf
Abstract
Two-sample tests are important in statistics and machine learning, both as tools for scientific discovery as well as to detect distribution shifts. This led to the development of many sophisticated test procedures going beyond the standard supervised learning frameworks, whose usage can require specialized knowledge about two-sample testing. We use a simple test that takes the mean discrepancy of a witness function as the test statistic and prove that minimizing a squared loss leads to a witness with optimal testing power. This allows us to leverage recent advancements in AutoML. Without any user input about the problems at hand, and using the same method for all our experiments, our AutoML two-sample test achieves competitive performance on a diverse distribution shift benchmark as well as on challenging two-sample testing problems. We provide an implementation of the AutoML two-sample test in the Python package autotst.
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.
8 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Sequential Predictive Two-Sample and Independence Testing cites Learning Deep Kernels for Non-Parametric Two-Sample Tests
- Meta Two-Sample Testing: Learning Kernels for Testing with Limited Data cites Learning Kernel Tests Without Data Splitting
- Meta Two-Sample Testing: Learning Kernels for Testing with Limited Data cites Learning Deep Kernels for Non-Parametric Two-Sample Tests
- Comparing Distributions by Measuring Differences that Affect Decision Making cites Learning Deep Kernels for Non-Parametric Two-Sample Tests
- MMD-Fuse: Learning and Combining Kernels for Two-Sample Testing Without Data Splitting cites Meta Two-Sample Testing: Learning Kernels for Testing with Limited Data
- MMD-Fuse: Learning and Combining Kernels for Two-Sample Testing Without Data Splitting cites Learning Kernel Tests Without Data Splitting
- MMD-Fuse: Learning and Combining Kernels for Two-Sample Testing Without Data Splitting cites A permutation-free kernel two-sample test
- MMD-Fuse: Learning and Combining Kernels for Two-Sample Testing Without Data Splitting cites Learning Deep Kernels for Non-Parametric Two-Sample Tests
- Learning Kernel Tests Without Data Splitting cites Learning Deep Kernels for Non-Parametric Two-Sample Tests
- Anchor-based Maximum Discrepancy for Relative Similarity Testing cites Meta Two-Sample Testing: Learning Kernels for Testing with Limited Data
- Anchor-based Maximum Discrepancy for Relative Similarity Testing cites MMD-Fuse: Learning and Combining Kernels for Two-Sample Testing Without Data Splitting
- Anchor-based Maximum Discrepancy for Relative Similarity Testing cites A permutation-free kernel two-sample test
- Anchor-based Maximum Discrepancy for Relative Similarity Testing cites Learning Deep Kernels for Non-Parametric Two-Sample Tests
- Anchor-based Maximum Discrepancy for Relative Similarity Testing cites On the Exploration of Local Significant Differences For Two-Sample Test
- DUAL: Learning Diverse Kernels for Aggregated Two-sample and Independence Testing cites Meta Two-Sample Testing: Learning Kernels for Testing with Limited Data
- DUAL: Learning Diverse Kernels for Aggregated Two-sample and Independence Testing cites MMD-Fuse: Learning and Combining Kernels for Two-Sample Testing Without Data Splitting
- DUAL: Learning Diverse Kernels for Aggregated Two-sample and Independence Testing cites Learning Kernel Tests Without Data Splitting
- DUAL: Learning Diverse Kernels for Aggregated Two-sample and Independence Testing cites Learning Deep Kernels for Non-Parametric Two-Sample Tests
- DUAL: Learning Diverse Kernels for Aggregated Two-sample and Independence Testing cites On the Exploration of Local Significant Differences For Two-Sample Test
- On the Exploration of Local Significant Differences For Two-Sample Test cites Meta Two-Sample Testing: Learning Kernels for Testing with Limited Data
- On the Exploration of Local Significant Differences For Two-Sample Test cites A permutation-free kernel two-sample test
- On the Exploration of Local Significant Differences For Two-Sample Test cites Learning Deep Kernels for Non-Parametric Two-Sample Tests
Cited by top-tier papers8
- MMD-Fuse: Learning and Combining Kernels for Two-Sample Testing Without Data SplittingFelix Biggs, Antonin Schrab, Arthur GrettonNeurIPS 2023 · 49 citations
- Sequential Predictive Two-Sample and Independence TestingAleksandr Podkopaev, Aaditya RamdasNeurIPS 2023 · 29 citations
- DUAL: Learning Diverse Kernels for Aggregated Two-sample and Independence TestingZhijian Zhou, Xunye Tian, Liuhua Peng, Chao Lei et al.NeurIPS 2025 · 8 citations
- On the Exploration of Local Significant Differences For Two-Sample TestZhijian Zhou, Jie Ni, Jia-He Yao, Wei GaoNeurIPS 2023 · 6 citations
- Anchor-based Maximum Discrepancy for Relative Similarity TestingZhijian Zhou, Liuhua Peng, Xunye Tian, Feng LiuNeurIPS 2025 · 2 citations
Builds on5
- Learning Deep Kernels for Non-Parametric Two-Sample TestsFeng Liu, Wenkai Xu, Jie Lu, Guangquan Zhang et al.ICML 2020 · 213 citations
- A permutation-free kernel two-sample testShubhanshu Shekhar, Ilmun Kim, Aaditya RamdasNeurIPS 2022 · 40 citations
- Meta Two-Sample Testing: Learning Kernels for Testing with Limited DataFeng Liu, Wenkai Xu, Jie Lu, Danica J. SutherlandNeurIPS 2021 · 30 citations
- Comparing Distributions by Measuring Differences that Affect Decision MakingShengjia Zhao, Abhishek Sinha, Yutong He, Aidan Perreault et al.ICLR 2022 · 28 citations
- Learning Kernel Tests Without Data SplittingJonas M. Kübler, Wittawat Jitkrittum, Bernhard Schölkopf, Krikamol MuandetNeurIPS 2020 · 27 citations
Related papers
- Sequential Covariate Shift Detection Using Classifier Two-Sample TestsSooyong Jang, Sangdon Park, Insup Lee, Osbert BastaniICML 2022 · 24 citations
- Test-Time Training with Masked AutoencodersYossi Gandelsman, Yu Sun, Xinlei Chen, Alexei A. EfrosNeurIPS 2022 · 283 citations
- Context-Aware Drift DetectionOliver Cobb, Arnaud Van LooverenICML 2022 · 22 citations
- Kernel-based Maximum-of-difference Test for Two-sample ComparisonDan Pu, Tianyi Zhu, Yao Yan, Wei LanICML 2026
- Implicit Task-Driven Probability Discrepancy Measure for Unsupervised Domain AdaptationMao Li, Kaiqi Jiang, Xinhua ZhangNeurIPS 2021 · 6 citations
