SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2307.04333 · NeurIPS · 2023

Enhancing Adversarial Robustness via Score-Based Optimization

Zhihua Zhang, Boya Zhang, Weijian Luo

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 11 functions out of this paper's own repositories and ran 8 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.

RepositoryRoleRan
zzzhangboya/ScoreOpt canonical 6 of 7
zzzhangboya/scoreopt canonical 2 of 4
FunctionStatusWhere it lives
approx_standard_normal_cdf Ran zzzhangboya/ScoreOpt/guided_diffusion/losses.py
pointer only (licence: NONE) · get_code("cfd76fd0d89574a4")
conv3x3 Ran zzzhangboya/ScoreOpt/clf_models/networks/wide_resnet.py
pointer only (licence: NONE) · get_code("00e569acd6b45ef0")
conv3x3 Ran zzzhangboya/ScoreOpt/clf_models/mnist.py
pointer only (licence: NONE) · get_code("a01b6bf3d5c907c2")
conv_transpose_3x3 Ran zzzhangboya/ScoreOpt/clf_models/mnist.py
pointer only (licence: NONE) · get_code("abe28c18ca27abc1")
discretized_gaussian_log_likelihood Ran zzzhangboya/ScoreOpt/guided_diffusion/losses.py
pointer only (licence: NONE) · get_code("cd33283d615fb3d7")
edm_sampler_one_shot Ran zzzhangboya/scoreopt/defense.py
pointer only (licence: NONE) · get_code("b2ac2d2ec596fa09")
normal_kl Ran zzzhangboya/ScoreOpt/guided_diffusion/losses.py
pointer only (licence: NONE) · get_code("cf2798b666b231ca")
parse_resume_step_from_filename Ran zzzhangboya/scoreopt/guided_diffusion/train_util.py
pointer only (licence: NONE) · get_code("76313eaf1a6e8f2a")
classifier_attack_and_purif Not yet run zzzhangboya/ScoreOpt/eval_transfer.py
pointer only (licence: NONE) · get_code("145472a206a4151b")
edm_sampler_multistep Not yet run zzzhangboya/scoreopt/defense.py
pointer only (licence: NONE) · get_code("576df377484eebd1")
purify_x_edm_multistep Not yet run zzzhangboya/scoreopt/defense.py
pointer only (licence: NONE) · get_code("7c279ff215859b97")

Repositories linked to this paper

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

Abstract

Adversarial attacks have the potential to mislead deep neural network classifiers by introducing slight perturbations. Developing algorithms that can mitigate the effects of these attacks is crucial for ensuring the safe use of artificial intelligence. Recent studies have suggested that score-based diffusion models are effective in adversarial defenses. However, existing diffusion-based defenses rely on the sequential simulation of the reversed stochastic differential equations of diffusion models, which are computationally inefficient and yield suboptimal results. In this paper, we introduce a novel adversarial defense scheme named ScoreOpt, which optimizes adversarial samples at test-time, towards original clean data in the direction guided by score-based priors. We conduct comprehensive experiments on multiple datasets, including CIFAR10, CIFAR100 and ImageNet. Our experimental results demonstrate that our approach outperforms existing adversarial defenses in terms of both robustness performance and inference speed.

For agents

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

get_harvested_code_for_paper("2307.04333")
get_code_for_paper("2307.04333")
have("2307.04333")

Connect an agent — have() is free.