Papers › Using Perturbation to Improve Goodness-of-Fit Tests based on Kernelized Stein Discrepancy

Using Perturbation to Improve Goodness-of-Fit Tests based on Kernelized Stein Discrepancy

28 Apr 2023arXiv:2304.14762archive 2025-07-28

Xing Liu, Andrew B. Duncan, Axel Gandy

Kernelized Stein discrepancy (KSD) is a score-based discrepancy widely used in goodness-of-fit tests. It can be applied even when the target distribution has an unknown normalising factor, such as in Bayesian analysis. We show theoretically and empirically that the KSD test can suffer from low power when the target and the alternative distributions have the same well-separated modes but differ in mixing proportions. We propose to perturb the observed sample via Markov transition kernels, with respect to which the target distribution is invariant. This allows us to then employ the KSD test on the perturbed sample. We provide numerical evidence that with suitably chosen transition kernels the proposed approach can lead to substantially higher power than the KSD test.

PaperPDFCodeCode Syntology ran

In Syntology View this paper on Syntology: its repositories, every harvested function with whether it ran, its licence and the call to fetch it.

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="2304.14762")

Code

Syntology Ran 0 of 16 code samples harvested from 1 repository linked to this paper; 16 have no recorded run.

By repository: official repository: 16 samples from 1 repository, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

xinglliu/pksd officialmentioned in papermentioned on GitHubtfMIT 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

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

16unverified

Licence: 0 of the 16 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 XingLLiu/pksd. “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.

compute_ksd XingLLiu/pksd/pksd/kgof/kernel.py official repository unverified MIT (permissive) · 48932edc3b597c09 · report
create_mixture_gaussian_kdim_logprobb XingLLiu/pksd/pksd/models_np.py official repository unverified MIT (permissive) · 703b535ace0bba4b · report
ksdagg_wild_custom XingLLiu/pksd/pksd/kgof/ksdagg.py official repository unverified MIT (permissive) · 01ab641d9bba2730 · report
l2norm XingLLiu/pksd/pksd/kernel.py official repository unverified MIT (permissive) · 5ac1129cecb37805 · report
logsumexp XingLLiu/pksd/pksd/models_np.py official repository unverified MIT (permissive) · 1e9f4edd607a92bd · report
merge_modes XingLLiu/pksd/pksd/find_modes.py official repository unverified MIT (permissive) · 0e4dfe17d8b7d807 · report
multivariate_t_logprob XingLLiu/pksd/pksd/models_np.py official repository unverified MIT (permissive) · 6a15096c15f4ca4e · report
norm2_sq XingLLiu/pksd/pksd/sensors.py official repository unverified MIT (permissive) · b3810f48851c8037 · report
norm2_sq_np XingLLiu/pksd/pksd/sensors.py official repository unverified MIT (permissive) · c5325727ede27f6e · report
pairwise_mahalanobis XingLLiu/pksd/pksd/find_modes.py official repository unverified MIT (permissive) · 16fc88a882225eb1 · report
plot_sensors XingLLiu/pksd/pksd/sensors.py official repository unverified MIT (permissive) · fade3727070787f0 · report
prepare_proposal_input XingLLiu/pksd/pksd/langevin.py official repository unverified MIT (permissive) · 44916ebc94da1c8f · report
prepare_proposal_input_all XingLLiu/pksd/pksd/langevin.py official repository unverified MIT (permissive) · f0eef89f6029121e · report
ratio_ksd_stdev XingLLiu/pksd/pksd/kgof/kernel.py official repository unverified MIT (permissive) · afdccdc29f702ebf · report
stein_kernel_matrices XingLLiu/pksd/pksd/kgof/kernel.py official repository unverified MIT (permissive) · ec8a35d4a6925338 · report
t_prob_fast XingLLiu/pksd/pksd/models.py official repository unverified MIT (permissive) · 94592dc674f4f6a4 · report

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