Papers › (Certified!!) Adversarial Robustness for Free!

(Certified!!) Adversarial Robustness for Free!

21 Jun 2022arXiv:2206.10550archive 2025-07-28

Nicholas Carlini, Florian Tramer, Krishnamurthy Dj Dvijotham, Leslie Rice, MingJie Sun, J. Zico Kolter

In this paper we show how to achieve state-of-the-art certified adversarial robustness to 2-norm bounded perturbations by relying exclusively on off-the-shelf pretrained models. To do so, we instantiate the denoised smoothing approach of Salman et al. 2020 by combining a pretrained denoising diffusion probabilistic model and a standard high-accuracy classifier. This allows us to certify 71% accuracy on ImageNet under adversarial perturbations constrained to be within an 2-norm of 0.5, an improvement of 14 percentage points over the prior certified SoTA using any approach, or an improvement of 30 percentage points over denoised smoothing. We obtain these results using only pretrained diffusion models and image classifiers, without requiring any fine tuning or retraining of model parameters.

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

Code

Syntology Ran 14 of 34 code samples harvested from 2 repositories linked to this paper; 20 have no recorded run. Of those that ran: 3 ran · honoured contract; 6 ran · our draft was wrong; 1 ran · fixture could not drive it; 4 ran with no contract checked.

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

ethz-privsec/diffusion_denoised_smoothing officialmentioned in papermentioned on GitHubpytorchMIT report
blaisedelattre/bridging_the_gap_rs mentioned on GitHubpytorchMIT report
ethz-spylab/diffusion_denoised_smoothing mentioned on GitHubpytorchMIT 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

34 samples harvested; 14 ran; 3 honoured the contract we drafted; 20 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.

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

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

center_crop_arr ethz-privsec/diffusion_denoised_smoothing/imagenet/guided_diffusion/image_datasets.py official repository ran · our draft was wrong MIT (permissive) · 8ab9a97df8161f31 · report
betas_for_alpha_bar ethz-privsec/diffusion_denoised_smoothing/imagenet/guided_diffusion/gaussian_diffusion.py official repository ran · honoured contract MIT (permissive) · 2ab2316ac6fdd869 · report
create_named_schedule_sampler ethz-privsec/diffusion_denoised_smoothing/imagenet/guided_diffusion/resample.py official repository ran · our draft was wrong MIT (permissive) · 35572566acf61c78 · report
get_named_beta_schedule ethz-privsec/diffusion_denoised_smoothing/imagenet/guided_diffusion/gaussian_diffusion.py official repository ran · honoured contract MIT (permissive) · a086d6286a40b889 · report
get_param_groups_and_shapes ethz-privsec/diffusion_denoised_smoothing/imagenet/guided_diffusion/fp16_util.py official repository ran MIT (permissive) · e41367ad14ff58fd · report
make_master_params ethz-privsec/diffusion_denoised_smoothing/imagenet/guided_diffusion/fp16_util.py official repository ran MIT (permissive) · e20dd5102da3b050 · report
make_output_format ethz-privsec/diffusion_denoised_smoothing/imagenet/guided_diffusion/logger.py official repository ran MIT (permissive) · bcd8b4acab199405 · report
space_timesteps ethz-privsec/diffusion_denoised_smoothing/imagenet/guided_diffusion/respace.py official repository ran · fixture could not drive it MIT (permissive) · 9b6e4e070473e76f · report
unflatten_master_params ethz-privsec/diffusion_denoised_smoothing/imagenet/guided_diffusion/fp16_util.py official repository ran MIT (permissive) · 64fff1e30802b815 · report
zero_module ethz-privsec/diffusion_denoised_smoothing/imagenet/guided_diffusion/nn.py official repository ran · our draft was wrong MIT (permissive) · 129b804760b3115f · report
avg_pool_nd ethz-privsec/diffusion_denoised_smoothing/imagenet/guided_diffusion/nn.py official repository unverified MIT (permissive) · ecd0fc28815b65ae · report
conv_nd ethz-privsec/diffusion_denoised_smoothing/imagenet/guided_diffusion/nn.py official repository unverified MIT (permissive) · fe4eb545bbb728e0 · report
create_classifier_and_diffusion ethz-privsec/diffusion_denoised_smoothing/imagenet/guided_diffusion/script_util.py official repository unverified MIT (permissive) · 5e5d99a81705a07f · report
create_model ethz-privsec/diffusion_denoised_smoothing/imagenet/guided_diffusion/script_util.py official repository unverified MIT (permissive) · 35ea054532112e53 · report
create_model_and_diffusion ethz-privsec/diffusion_denoised_smoothing/imagenet/guided_diffusion/script_util.py official repository unverified MIT (permissive) · 6a3cfc58dafbe392 · report
mpi_weighted_mean ethz-privsec/diffusion_denoised_smoothing/imagenet/guided_diffusion/logger.py official repository unverified MIT (permissive) · e515a67f7f32e76d · report
profile ethz-privsec/diffusion_denoised_smoothing/imagenet/guided_diffusion/logger.py official repository unverified MIT (permissive) · 0c6607473a4c4c55 · report
random_crop_arr ethz-privsec/diffusion_denoised_smoothing/imagenet/guided_diffusion/image_datasets.py official repository unverified MIT (permissive) · 53d5be4fdbcfac23 · report
approx_standard_normal_cdf blaisedelattre/bridging_the_gap_rs/code/improved_diffusion/losses.py community (archive-listed) ran · our draft was wrong fingerprinted MIT (permissive) · cfd76fd0d89574a4 · report
conv3x3 blaisedelattre/bridging_the_gap_rs/code/archs/cifar_resnet.py community (archive-listed) ran · our draft was wrong MIT (permissive) · fac5364e2f53c6db · report
discretized_gaussian_log_likelihood blaisedelattre/bridging_the_gap_rs/code/improved_diffusion/losses.py community (archive-listed) ran · our draft was wrong MIT (permissive) · cd33283d615fb3d7 · report
normal_kl blaisedelattre/bridging_the_gap_rs/code/improved_diffusion/losses.py community (archive-listed) ran · honoured contract fingerprinted MIT (permissive) · cf2798b666b231ca · report
compute_batchnorm_lipschitz blaisedelattre/bridging_the_gap_rs/code/PUB/compute_lip_PUB_resnet110.py community (archive-listed) unverified MIT (permissive) · e24d913c8ab83bf6 · report
compute_lipschitz_constant_smoothed_classifier blaisedelattre/bridging_the_gap_rs/code/compute_rs_lipschitz_radius.py community (archive-listed) unverified MIT (permissive) · bc700205671c1850 · report
compute_module_lipschitz blaisedelattre/bridging_the_gap_rs/code/PUB/compute_lip_PUB_resnet110.py community (archive-listed) unverified MIT (permissive) · a5ec2c7b30f09261 · report
compute_radius_tsuzuku_for_smoothed_classifier blaisedelattre/bridging_the_gap_rs/code/compute_rs_lipschitz_radius.py community (archive-listed) unverified MIT (permissive) · 079533fab6549a40 · report
compute_spectral_norm blaisedelattre/bridging_the_gap_rs/code/PUB/compute_lip_PUB_resnet110.py community (archive-listed) unverified MIT (permissive) · 5a6f228bb471d3ba · report
get_dataset blaisedelattre/bridging_the_gap_rs/code/datasets.py community (archive-listed) unverified MIT (permissive) · 04c56ca301f7731e · report
get_num_classes blaisedelattre/bridging_the_gap_rs/code/datasets.py community (archive-listed) unverified MIT (permissive) · 8c99213918181c27 · report
load_config_from_json blaisedelattre/bridging_the_gap_rs/code/certify_cpm_from_log.py community (archive-listed) unverified MIT (permissive) · 75fcfc8a765c3ee8 · report
load_counts blaisedelattre/bridging_the_gap_rs/code/certify_cpm_from_log.py community (archive-listed) unverified MIT (permissive) · 84851ec4bb865b9e · report
load_labels blaisedelattre/bridging_the_gap_rs/code/certify_cpm_from_log.py community (archive-listed) unverified MIT (permissive) · b3199d231cdd7b96 · report
multinomial_event_probability blaisedelattre/bridging_the_gap_rs/counter_example.py community (archive-listed) unverified MIT (permissive) · cfe3d3b5d12792a5 · report
phi_sigma blaisedelattre/bridging_the_gap_rs/code/compute_rs_lipschitz_radius.py community (archive-listed) unverified MIT (permissive) · 865a29f21fdb0344 · report

Tasks

Adversarial RobustnessDenoising

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Denoised SmoothingDiffusion

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