Papers › AutoML Two-Sample Test

AutoML Two-Sample Test

17 Jun 2022arXiv:2206.08843archive 2025-07-28

Jonas M. Kübler, Vincent Stimper, Simon Buchholz, Krikamol Muandet, Bernhard Schölkopf

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.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2206.08843")

Code

Syntology Ran 10 of 11 code samples harvested from 2 repositories linked to this paper; 1 has no recorded run. Of those that ran: 2 ran · honoured contract; 3 ran · our draft was wrong; 5 ran · fixture could not drive it.

By repository: official repository: 9 samples from 2 repositories, 8 ran; 2 identical to code first harvested elsewhere. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

antoninschrab/fl-mmdagg officialmentioned in papermentioned on GitHubpytorch report
jmkuebler/auto-tst officialmentioned in papermentioned on GitHubMIT report
jmkuebler/automl-tst-paper officialmentioned in paperpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

11 samples harvested; 10 ran; 2 honoured the contract we drafted; 1 has no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

2ran · honoured contract
3ran · our draft was wrong
5ran · fixture could not drive it
1unverified

Licence: 2 of the 11 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 2 repositories linked to this paper, official or community; each sample names its own and says which. Some samples are identical code Syntology first harvested from another repository; for those, this paper's copy is not located and its licence is not recorded. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

MMDu jmkuebler/automl-tst-paper/deep_kernel_utils.py official repository ran · our draft was wrong MIT (permissive) · 80d97d29c4bae90a · report
Pdist2 jmkuebler/automl-tst-paper/deep_kernel_utils.py official repository ran · honoured contract fingerprinted MIT (permissive) · 0b62387de45ba23b · report
TST_MMD_u jmkuebler/automl-tst-paper/deep_kernel_utils.py official repository ran · our draft was wrong MIT (permissive) · 677d78c5141590c0 · report
create_weights antoninschrab/fl-mmdagg/mmdagg.py official repository ran · honoured contract MIT (permissive) · 8aafc51eaf6abeef · report
get_item jmkuebler/automl-tst-paper/deep_kernel_utils.py official repository ran · fixture could not drive it fingerprinted MIT (permissive) · ada1992bbe1e1e8b · report
mmdagg antoninschrab/fl-mmdagg/mmdagg.py official repository ran · fixture could not drive it MIT (permissive) · 58fe8d6ec4056d56 · report
sample_blobs_Q jmkuebler/automl-tst-paper/blob.py official repository ran · our draft was wrong MIT (permissive) · c4af21b192891614 · report
snr_score jmkuebler/automl-tst-paper/blob.py official repository ran · fixture could not drive it MIT (permissive) · 6df8371a03ba59bc · report
h1_mean_var_gram jmkuebler/automl-tst-paper/deep_kernel_utils.py official repository unverified MIT (permissive) · fa83a7df3804d085 · report
compute_pairwise_matrix identical code first harvested elsewhere ran · fixture could not drive it licence of this copy not recorded · 139c7796806ebcb2 · report
kernel_matrix identical code first harvested elsewhere ran · fixture could not drive it licence of this copy not recorded · 4e7beb2199214856 · report

Tasks

AutoMLTwo-sample testingVocal Bursts Valence Predictionscientific discovery

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Test

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections