{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/automl-two-sample-test","title":"AutoML Two-Sample Test","arxiv_id":"2206.08843","date":"2022-06-17","proceeding":null,"authors":["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.","url_abs":"https://arxiv.org/abs/2206.08843v3","url_pdf":"https://arxiv.org/pdf/2206.08843v3.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"automl-two-sample-test","repo_url":"https://github.com/antoninschrab/fl-mmdagg","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"automl-two-sample-test","repo_url":"https://github.com/jmkuebler/auto-tst","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"automl-two-sample-test","repo_url":"https://github.com/jmkuebler/automl-tst-paper","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"automl","task_name":"AutoML"},{"task_slug":"hypothesis-testing","task_name":"Two-sample testing"},{"task_slug":"two","task_name":"Vocal Bursts Valence Prediction"},{"task_slug":"scientific-discovery","task_name":"scientific discovery"}],"methods":[{"method_slug":"test","method_name":"Test"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2206.08843","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2206.08843"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"deterministic:regex_extraction","url":"https://github.com/jmkuebler/autoML-TST-paper","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/jmkuebler/automl-tst-paper","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/jmkuebler/auto-tst","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/antoninschrab/fl-mmdagg","reach":null}],"summary":{"ran_draft_wrong":3,"ran_honours":2,"ran_fixture":5,"unverified":1},"by_repo_kind":{"official":{"samples":9,"ran":8,"repositories":2}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"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"},"n_pointer_only_for_licence":2,"samples":[{"code_sha256_prefix":"80d97d29c4bae90a","entry":"MMDu","repo":"jmkuebler/automl-tst-paper","repo_kind":"official","path":"deep_kernel_utils.py","file_url":"https://github.com/jmkuebler/automl-tst-paper/blob/HEAD/deep_kernel_utils.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"80d97d29c4bae90a"}},{"code_sha256_prefix":"0b62387de45ba23b","entry":"Pdist2","repo":"jmkuebler/automl-tst-paper","repo_kind":"official","path":"deep_kernel_utils.py","file_url":"https://github.com/jmkuebler/automl-tst-paper/blob/HEAD/deep_kernel_utils.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"0b62387de45ba23b"}},{"code_sha256_prefix":"677d78c5141590c0","entry":"TST_MMD_u","repo":"jmkuebler/automl-tst-paper","repo_kind":"official","path":"deep_kernel_utils.py","file_url":"https://github.com/jmkuebler/automl-tst-paper/blob/HEAD/deep_kernel_utils.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"677d78c5141590c0"}},{"code_sha256_prefix":"139c7796806ebcb2","entry":"compute_pairwise_matrix","repo":null,"repo_kind":null,"path":null,"file_url":null,"link_basis":"identical_code_first_harvested_elsewhere","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":null,"inline_ok":false,"mcp_get_code":{"code_sha256":"139c7796806ebcb2"}},{"code_sha256_prefix":"8aafc51eaf6abeef","entry":"create_weights","repo":"antoninschrab/fl-mmdagg","repo_kind":"official","path":"mmdagg.py","file_url":"https://github.com/antoninschrab/fl-mmdagg/blob/HEAD/mmdagg.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"8aafc51eaf6abeef"}},{"code_sha256_prefix":"ada1992bbe1e1e8b","entry":"get_item","repo":"jmkuebler/automl-tst-paper","repo_kind":"official","path":"deep_kernel_utils.py","file_url":"https://github.com/jmkuebler/automl-tst-paper/blob/HEAD/deep_kernel_utils.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"ada1992bbe1e1e8b"}},{"code_sha256_prefix":"4e7beb2199214856","entry":"kernel_matrix","repo":null,"repo_kind":null,"path":null,"file_url":null,"link_basis":"identical_code_first_harvested_elsewhere","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":null,"inline_ok":false,"mcp_get_code":{"code_sha256":"4e7beb2199214856"}},{"code_sha256_prefix":"58fe8d6ec4056d56","entry":"mmdagg","repo":"antoninschrab/fl-mmdagg","repo_kind":"official","path":"mmdagg.py","file_url":"https://github.com/antoninschrab/fl-mmdagg/blob/HEAD/mmdagg.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"58fe8d6ec4056d56"}},{"code_sha256_prefix":"c4af21b192891614","entry":"sample_blobs_Q","repo":"jmkuebler/automl-tst-paper","repo_kind":"official","path":"blob.py","file_url":"https://github.com/jmkuebler/automl-tst-paper/blob/HEAD/blob.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"c4af21b192891614"}},{"code_sha256_prefix":"6df8371a03ba59bc","entry":"snr_score","repo":"jmkuebler/automl-tst-paper","repo_kind":"official","path":"blob.py","file_url":"https://github.com/jmkuebler/automl-tst-paper/blob/HEAD/blob.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"6df8371a03ba59bc"}},{"code_sha256_prefix":"fa83a7df3804d085","entry":"h1_mean_var_gram","repo":"jmkuebler/automl-tst-paper","repo_kind":"official","path":"deep_kernel_utils.py","file_url":"https://github.com/jmkuebler/automl-tst-paper/blob/HEAD/deep_kernel_utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"fa83a7df3804d085"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}