Papers › Boosting Black-box Attack to Deep Neural Networks with Conditional Diffusion Models

Boosting Black-box Attack to Deep Neural Networks with Conditional Diffusion Models

11 Oct 2023arXiv:2310.07492archive 2025-07-28

Renyang Liu, Wei Zhou, Tianwei Zhang, Kangjie Chen, Jun Zhao, Kwok-Yan Lam

Existing black-box attacks have demonstrated promising potential in creating adversarial examples (AE) to deceive deep learning models. Most of these attacks need to handle a vast optimization space and require a large number of queries, hence exhibiting limited practical impacts in real-world scenarios. In this paper, we propose a novel black-box attack strategy, Conditional Diffusion Model Attack (CDMA), to improve the query efficiency of generating AEs under query-limited situations. The key insight of CDMA is to formulate the task of AE synthesis as a distribution transformation problem, i.e., benign examples and their corresponding AEs can be regarded as coming from two distinctive distributions and can transform from each other with a particular converter. Unlike the conventional \textit{query-and-optimization} approach, we generate eligible AEs with direct conditional transform using the aforementioned data converter, which can significantly reduce the number of queries needed. CDMA adopts the conditional Denoising Diffusion Probabilistic Model as the converter, which can learn the transformation from clean samples to AEs, and ensure the smooth development of perturbed noise resistant to various defense strategies. We demonstrate the effectiveness and efficiency of CDMA by comparing it with nine state-of-the-art black-box attacks across three benchmark datasets. On average, CDMA can reduce the query count to a handful of times; in most cases, the query count is only ONE. We also show that CDMA can obtain >99% attack success rate for untarget attacks over all datasets and targeted attack over CIFAR-10 with the noise budget of ϵ=16.

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

Code

Syntology Ran 14 of 17 code samples harvested from 1 repository linked to this paper; 3 have no recorded run. Of those that ran: 1 ran · honoured contract; 3 ran · violated contract; 10 ran with no contract checked.

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

ryliu68/CDMA officialpytorchMIT 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; 14 ran; 1 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.

1ran · honoured contract
3ran · violated contract
10ran
3unverified

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 ryliu68/CDMA. “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.

default ryliu68/CDMA/models/network.py official repository ran · violated contract MIT (permissive) · fbf9ec7be545688e · report
denorm ryliu68/CDMA/sample_adv_batch.py official repository ran fingerprinted MIT (permissive) · 4752f3a132bde7b3 · report
dict2str ryliu68/CDMA/core/praser.py official repository ran MIT (permissive) · 60fc13986769e4c7 · report
dict_to_nonedict ryliu68/CDMA/core/praser.py official repository ran MIT (permissive) · 38e77ca35f1f8bcb · report
exists ryliu68/CDMA/models/network.py official repository ran · violated contract MIT (permissive) · 608e364a9d2376a3 · report
is_image_file ryliu68/CDMA/core/base_dataset.py official repository ran · violated contract MIT (permissive) · ab4109634b75ef8b · report
mae ryliu68/CDMA/models/metric.py official repository ran fingerprinted MIT (permissive) · 0570fbc1e2582ae7 · report
make_dataset ryliu68/CDMA/core/base_dataset.py official repository ran MIT (permissive) · fd901efe5f883205 · report
mse_loss ryliu68/CDMA/models/loss.py official repository ran · honoured contract fingerprinted MIT (permissive) · 632959a67ae7fdac · report
pil_loader ryliu68/CDMA/core/base_dataset.py official repository ran MIT (permissive) · 534e80dab769ec2f · report
postprocess ryliu68/CDMA/core/util.py official repository ran MIT (permissive) · 1037e66345303a97 · report
sample_adv ryliu68/CDMA/sample_adv_batch.py official repository ran MIT (permissive) · cb4d5720ab772114 · report
set_gpu ryliu68/CDMA/core/util.py official repository ran MIT (permissive) · 24ef4b46c563b220 · report
tensor2img ryliu68/CDMA/core/util.py official repository ran MIT (permissive) · 8aa242823600422d · report
extract ryliu68/CDMA/models/network.py official repository unverified MIT (permissive) · e894fcce48231d2f · report
inception_score ryliu68/CDMA/models/metric.py official repository unverified MIT (permissive) · 6d3c813b7561493d · report
init_obj ryliu68/CDMA/core/praser.py official repository unverified MIT (permissive) · 89ecc1cd0adb6951 · report

Tasks

Adversarial AttackDenoising

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

AEDiffusion

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