Papers › Efficient Aggregated Kernel Tests using Incomplete U-statistics

Efficient Aggregated Kernel Tests using Incomplete U-statistics

18 Jun 2022arXiv:2206.09194archive 2025-07-28

Antonin Schrab, Ilmun Kim, Benjamin Guedj, Arthur Gretton

We propose a series of computationally efficient nonparametric tests for the two-sample, independence, and goodness-of-fit problems, using the Maximum Mean Discrepancy (MMD), Hilbert Schmidt Independence Criterion (HSIC), and Kernel Stein Discrepancy (KSD), respectively. Our test statistics are incomplete U-statistics, with a computational cost that interpolates between linear time in the number of samples, and quadratic time, as associated with classical U-statistic tests. The three proposed tests aggregate over several kernel bandwidths to detect departures from the null on various scales: we call the resulting tests MMDAggInc, HSICAggInc and KSDAggInc. This procedure provides a solution to the fundamental kernel selection problem as we can aggregate a large number of kernels with several bandwidths without incurring a significant loss of test power. For the test thresholds, we derive a quantile bound for wild bootstrapped incomplete U-statistics, which is of independent interest. We derive non-asymptotic uniform separation rates for MMDAggInc and HSICAggInc, and quantify exactly the trade-off between computational efficiency and the attainable rates: this result is novel for tests based on incomplete U-statistics, to our knowledge. We further show that in the quadratic-time case, the wild bootstrap incurs no penalty to test power over the more widespread permutation-based approach, since both attain the same minimax optimal rates (which in turn match the rates that use oracle quantiles). We support our claims with numerical experiments on the trade-off between computational efficiency and test power. In all three testing frameworks, the linear-time versions of our proposed tests perform at least as well as the current linear-time state-of-the-art tests.

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.09194")

Code

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

By repository: official repository: 3 samples from 1 repository, 2 ran; named in the paper: 2 samples from 1 repository, 2 ran; community (archive-listed): 8 samples from 2 repositories, 6 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

antoninschrab/ksdagg officialmentioned on GitHubjax report
antoninschrab/agginc-paper mentioned in papermentioned on GitHubjax report
antoninschrab/agginc mentioned on GitHubjaxMIT report
antoninschrab/mmdagg mentioned on GitHubjax 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

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

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

Licence: 0 of the 13 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 4 repositories linked to this paper, official or community; each sample names its own and says which. “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.

create_weights antoninschrab/ksdagg/ksdagg/jax.py official repository ran · honoured contract MIT (permissive) · 35e8a1dce671edd0 · report
jax_distances antoninschrab/ksdagg/ksdagg/jax.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · f3d6af9cdda0f3d5 · report
ksdagg antoninschrab/ksdagg/ksdagg/jax.py official repository unverified MIT (permissive) · c07fb17178973f65 · report
create_indices antoninschrab/agginc-paper/agginc/np.py named in the paper ran · honoured contract MIT (permissive) · 752346c21d60e812 · report
create_indices antoninschrab/agginc-paper/agginc/jax.py named in the paper ran · honoured contract MIT (permissive) · b94b433bd9c69435 · report
compute_pairwise_matrix antoninschrab/mmdagg/mmdagg/np.py community (archive-listed) ran · fixture could not drive it MIT (permissive) · 139c7796806ebcb2 · report
create_weights antoninschrab/mmdagg/mmdagg/jax.py community (archive-listed) ran · honoured contract MIT (permissive) · ade4e10146ee1a5c · report
kernel_matrix antoninschrab/mmdagg/mmdagg/jax.py community (archive-listed) ran · fixture could not drive it MIT (permissive) · 2c48c4eb0714eef3 · report
kernel_matrix antoninschrab/mmdagg/mmdagg/np.py community (archive-listed) ran · fixture could not drive it MIT (permissive) · 4e7beb2199214856 · report
mmdagg antoninschrab/mmdagg/mmdagg/jax.py community (archive-listed) ran · fixture could not drive it MIT (permissive) · 6fe45123a54a45b7 · report
mmdagg antoninschrab/mmdagg/mmdagg/np.py community (archive-listed) ran · fixture could not drive it MIT (permissive) · e46e1093bf2aa225 · report
agginc antoninschrab/agginc/agginc/np.py community (archive-listed) unverified MIT (permissive) · 52b452b4fab9d208 · report
inc antoninschrab/agginc/agginc/np.py community (archive-listed) unverified MIT (permissive) · 2c9d9a068ef0b1e9 · report

Tasks

Computational Efficiency

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