Papers › Double Sampling Randomized Smoothing

Double Sampling Randomized Smoothing

16 Jun 2022arXiv:2206.07912archive 2025-07-28

Linyi Li, Jiawei Zhang, Tao Xie, Bo Li

Neural networks (NNs) are known to be vulnerable against adversarial perturbations, and thus there is a line of work aiming to provide robustness certification for NNs, such as randomized smoothing, which samples smoothing noises from a certain distribution to certify the robustness for a smoothed classifier. However, as shown by previous work, the certified robust radius in randomized smoothing suffers from scaling to large datasets ("curse of dimensionality"). To overcome this hurdle, we propose a Double Sampling Randomized Smoothing (DSRS) framework, which exploits the sampled probability from an additional smoothing distribution to tighten the robustness certification of the previous smoothed classifier. Theoretically, under mild assumptions, we prove that DSRS can certify Θ(√(d)) robust radius under ℓ₂ norm where d is the input dimension, implying that DSRS may be able to break the curse of dimensionality of randomized smoothing. We instantiate DSRS for a generalized family of Gaussian smoothing and propose an efficient and sound computing method based on customized dual optimization considering sampling error. Extensive experiments on MNIST, CIFAR-10, and ImageNet verify our theory and show that DSRS certifies larger robust radii than existing baselines consistently under different settings. Code is available at https://github.com/llylly/DSRS.

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

Code

Syntology Ran 15 of 17 code samples harvested from 2 repositories linked to this paper; 2 have no recorded run. Of those that ran: 14 ran · honoured contract; 1 ran · violated contract.

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

llylly/dsrs officialmentioned in papermentioned on GitHubpytorchBSD-3-Clause report
dsgiitr/re_dsrs mentioned on GitHubpytorch 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

17 samples harvested; 15 ran; 14 honoured the contract we drafted; 2 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.

14ran · honoured contract
1ran · violated contract
2unverified

Licence: 0 of the 17 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. “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.

check llylly/dsrs/algo/algo.py official repository unverified BSD-3-Clause (permissive) · e2025ff88e86c006 · report
P_double_var_numerical dsgiitr/re_dsrs/dsrs/algo/algo.py community (archive-listed) ran · honoured contract fingerprinted BSD-3-Clause (permissive) · f06d8dd1d486d93b · report
P_single_var_numerical dsgiitr/re_dsrs/dsrs/algo/algo.py community (archive-listed) ran · honoured contract fingerprinted BSD-3-Clause (permissive) · 2e6af63ad6bfdd87 · report
Pprime_single_var_numerical dsgiitr/re_dsrs/dsrs/algo/algo.py community (archive-listed) ran · honoured contract fingerprinted BSD-3-Clause (permissive) · 8ea8528158788615 · report
Pshift_double_var_numerical dsgiitr/re_dsrs/dsrs/algo/algo.py community (archive-listed) ran · honoured contract fingerprinted BSD-3-Clause (permissive) · 7db131201488099d · report
Pshift_single_var_numerical dsgiitr/re_dsrs/dsrs/algo/algo.py community (archive-listed) ran · honoured contract fingerprinted BSD-3-Clause (permissive) · fb9da182e97479f9 · report
Q_double_var_numerical dsgiitr/re_dsrs/dsrs/algo/algo.py community (archive-listed) ran · honoured contract fingerprinted BSD-3-Clause (permissive) · 435090fa4bff4fa8 · report
Q_single_var_numerical dsgiitr/re_dsrs/dsrs/algo/algo.py community (archive-listed) ran · honoured contract fingerprinted BSD-3-Clause (permissive) · 9540a262bfdc86e7 · report
Qprime_single_var_numerical dsgiitr/re_dsrs/dsrs/algo/algo.py community (archive-listed) ran · honoured contract fingerprinted BSD-3-Clause (permissive) · 6814ef870c488dc0 · report
bin_search_K_on_P_numerical dsgiitr/re_dsrs/dsrs/algo/algo.py community (archive-listed) ran · honoured contract fingerprinted BSD-3-Clause (permissive) · 81a519ede3a6fd98 · report
bin_search_K_on_Qprime_numerical dsgiitr/re_dsrs/dsrs/algo/algo.py community (archive-listed) ran · honoured contract fingerprinted BSD-3-Clause (permissive) · efb5077cd6701432 · report
bin_search_lambda_2_on_P_numerical dsgiitr/re_dsrs/dsrs/algo/algo.py community (archive-listed) ran · honoured contract fingerprinted BSD-3-Clause (permissive) · fda2190670c06dcb · report
fast_beta dsgiitr/re_dsrs/dsrs/algo/algo.py community (archive-listed) ran · honoured contract BSD-3-Clause (permissive) · cc016e2d63decb65 · report
lambertWlog dsgiitr/re_dsrs/dsrs/algo/algo.py community (archive-listed) ran · honoured contract BSD-3-Clause (permissive) · 331144e4c91f00b9 · report
ln_exp_plus_exp dsgiitr/re_dsrs/dsrs/algo/algo.py community (archive-listed) ran · honoured contract fingerprinted BSD-3-Clause (permissive) · 431e5dacd9481349 · report
sum_exp_greater_than_one dsgiitr/re_dsrs/dsrs/algo/algo.py community (archive-listed) ran · violated contract fingerprinted BSD-3-Clause (permissive) · 781b5c0335c1dea9 · report
check dsgiitr/re_dsrs/dsrs/algo/algo.py community (archive-listed) unverified BSD-3-Clause (permissive) · 20f04d1a583d6fc1 · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Randomized Smoothing

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