SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2507.12843 · ICML · 2025

Are Two Datasets Close Enough With Statistical Significance? A Kernel Distributional Closeness Testing Approach

Feng Liu, Mingming Gong, Xunye Tian, Zhijian Zhou, Liuhua Peng

arXiv · PDF · Open in the Atlas

Code that ran

14 of 16 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 2 honoured the contract we drafted, 0 violated it and 1 has no contract verdict; 11 failures of our instrument; 2 no recorded run), measured 2026-11-24; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2507.12843.json · badge: /api/ran/2507.12843.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
zhijianzhouml/NAMMD canonical (classifier label)
classifier basis: census
14 ran · 2 no recorded run
FunctionStatusWhere it lives
MatConvert Ran
ran; our contract draft was wrong, not the code
zhijianzhouml/NAMMD/DCT_exp/power_tv/TST_NAMMD.py
pointer only (licence: NONE) · get_code("ee374b14bf868cc3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhijianzhouml/NAMMD when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

Pdist2 Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
zhijianzhouml/NAMMD/ADV_exp/utils.py
pointer only (licence: NONE) · get_code("c3d0d9e02dfbb665")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhijianzhouml/NAMMD when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

add_label Ran
ran; our contract draft was wrong, not the code
zhijianzhouml/NAMMD/DA_exp/dataprocess.py
pointer only (licence: NONE) · get_code("90785e869e30374a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhijianzhouml/NAMMD when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

adv_generate Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
zhijianzhouml/NAMMD/ADV_exp/attack_generator.py
pointer only (licence: NONE) · get_code("e8cb6c350414ad1f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhijianzhouml/NAMMD when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

build_cifar10_loaders Ran
ran; our contract draft was wrong, not the code
zhijianzhouml/NAMMD/ADV_exp/train_model.py
pointer only (licence: NONE) · get_code("81aa64f5d188fe6f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhijianzhouml/NAMMD when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

compute_bandwidths Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
zhijianzhouml/NAMMD/baseline_tests/ACTT.py
pointer only (licence: NONE) · get_code("baab140f8b1348b2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhijianzhouml/NAMMD when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

cwloss Ran
ran; our contract draft was wrong, not the code
zhijianzhouml/NAMMD/ADV_exp/attack_generator.py
pointer only (licence: NONE) · get_code("9813b7acd483544c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhijianzhouml/NAMMD when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

gaussian_bandwidth_grid Ran
ran; our contract draft was wrong, not the code
zhijianzhouml/NAMMD/kernel_selection.py
pointer only (licence: NONE) · get_code("bded9d75f976a785")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhijianzhouml/NAMMD when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_item Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
zhijianzhouml/NAMMD/DCT_exp/power_tv/TST_NAMMD.py
pointer only (licence: NONE) · get_code("cadcf4826dd988e7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhijianzhouml/NAMMD when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

jax_distances Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
zhijianzhouml/NAMMD/baseline_tests/ACTT.py
pointer only (licence: NONE) · get_code("3b09d1831d8cbccc")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhijianzhouml/NAMMD when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

pairwise_sq_dists Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
zhijianzhouml/NAMMD/kernel_selection.py
pointer only (licence: NONE) · get_code("3d845c2618b1a641")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhijianzhouml/NAMMD when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

pgd Ran
ran on a synthesized input
zhijianzhouml/NAMMD/ADV_exp/attack_generator.py
pointer only (licence: NONE) · get_code("28b14896c4e904e7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhijianzhouml/NAMMD when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

sample_BLOB Ran
ran, honoured the contract we drafted
zhijianzhouml/NAMMD/dataloader.py
pointer only (licence: NONE) · get_code("b510f8702d037681")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhijianzhouml/NAMMD when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

split_selected_bandwidths Ran
ran, honoured the contract we drafted
zhijianzhouml/NAMMD/kernel_selection.py
pointer only (licence: NONE) · get_code("e0dc744050334ad1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhijianzhouml/NAMMD when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

MMscaler Not yet run
unverified (harvested, no recorded run)
zhijianzhouml/NAMMD/dataloader.py
pointer only (licence: NONE) · get_code("1c4218f61250522a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhijianzhouml/NAMMD when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

PCA_transform Not yet run
unverified (harvested, no recorded run)
zhijianzhouml/NAMMD/baseline_tests/ACTT.py
pointer only (licence: NONE) · get_code("bf04be6a55050a67")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhijianzhouml/NAMMD when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 16 samples lifted from this paper's linked repositories, 16 carry a function identity and 0 do not. Of the 16 distinct functions with an identity, 2 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 0 the same month, 0 later) and 14 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
cwloss 6 other papers
6 dated earlier · 2 only as an assembly brick
2010.01736 (2020-10)
Geometry-aware Instance-reweighted Adversarial Training
2106.04928 (2021-06)
Reliable Adversarial Distillation with Unreliable Teachers
2210.03543 (2022-10)
A2: Efficient Automated Attacker for Boosting Adversarial Training
and 3 more not named here
MatConvert 2 other papers
2 dated earlier
2106.07636 (2021-06)
Meta Two-Sample Testing: Learning Kernels for Testing with Limited Data
2306.08777 (2023-06)
MMD-FUSE: Learning and Combining Kernels for Two-Sample Testing Without Data Splitting

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Are two distributions close to each other with statistical significance? Distribution closeness testing (DCT) formalizes this question by testing whether the distance between a distribution pair is at least ϵ-far. Existing DCT methods mainly measure discrepancies between a distribution pair defined on discrete spaces (e.g., using total variation), which limits their applications to complex data (e.g., images). To extend DCT to more types of data, a natural idea is to introduce maximum mean discrepancy (MMD), a powerful measurement of the distributional discrepancy between two complex distributions, into DCT scenarios. However, the empirical results indicate that many distribution pairs can have the same MMD value despite having different norms in the same reproducing kernel Hilbert space (RKHS), and these pairs may exhibit different finite-sample distinguishability and reflect different practical closeness levels, making MMD less informative in DCT. To mitigate the issue, we design a new measurement of distributional discrepancy, norm-adaptive MMD (NAMMD), which scales MMD's value using the RKHS norms of distributions. Based on the asymptotic distribution of NAMMD, we finally propose the NAMMDbased DCT to assess the closeness level of a distribution pair. Theoretically, we prove that NAMMD-based DCT has higher test power compared to MMD-based DCT, with bounded type-I error, which is also validated by extensive experiments on many types of data (e.g., synthetic noise, real images). Our code is available at: https: //github.com/zhijianzhouml/NAMMD.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2507.12843")
get_code_for_paper("2507.12843")
have("2507.12843")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2507.12843.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2507.12843.svg)](https://syntology.ai/paper/2507.12843)

Connect an agent — have() is free.