SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2310.07492 · 2023

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

arXiv · PDF · Open in the Atlas

Code that ran

14 of 17 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 3 honoured the contract we drafted, 3 violated it and 0 have no contract verdict; 8 failures of our instrument; 3 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2310.07492.json · badge: /api/ran/2310.07492.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
ryliu68/CDMA canonical (classifier label)
classifier basis: census
14 ran · 3 no recorded run
FunctionStatusWhere it lives
default Ran
ran, violated the contract we drafted
ryliu68/CDMA/models/network.py
code served (permissive licence) · get_code("fbf9ec7be545688e")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np
from inspect import isfunction

torch.manual_seed(0)

# Test case 1: val exists (not None), d is a regular value
val_case1 = 42
d_case1 = 100

# Test case 2: val is None, d is a regular value
val_case2 = None
d_case2 = "default_string"

# Test case 3: val is None, d is a function
val_case3 = None
def d_case3():
    return [1, 2, 3]

# Test case 4: val exists, d is a function (function should not be called)
val_case4 = torch.tensor([1.0, 2.0, 3.0])
def d_case4():
    return torch.tensor([4.0, 5.0, 6.0])

# We'll use case 2 for the main ARGS
ARGS = {
    'val': None,
    'd': "default_value"
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
denorm Ran
ran, honoured the contract we drafted
ryliu68/CDMA/sample_adv_batch.py
code served (permissive licence) · get_code("4752f3a132bde7b3")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

# The function denorm takes a single parameter x and applies the transformation (x + 1) / 2
# This is typically used to denormalize tensors that were normalized to [-1, 1] range back to [0, 1]
# x should be a tensor

x = torch.randn(2, 4)

ARGS = {
    "x": x
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
dict2str Ran
ran; our contract draft was wrong, not the code
ryliu68/CDMA/core/praser.py
pointer only (licence: MIT); the stored copy get_code serves, from kangliao929/noise-da, is pointer only (licence: NOASSERTION) · get_code("60fc13986769e4c7")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from kangliao929/noise-da, and GitHub could not classify the licence of that repository (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

dict_to_nonedict Ran
ran; our contract draft was wrong, not the code
ryliu68/CDMA/core/praser.py
pointer only (licence: MIT); the stored copy get_code serves, from kangliao929/noise-da, is pointer only (licence: NOASSERTION) · get_code("38e77ca35f1f8bcb")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from kangliao929/noise-da, and GitHub could not classify the licence of that repository (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

exists Ran
ran, violated the contract we drafted
ryliu68/CDMA/models/network.py
code served (permissive licence) · get_code("608e364a9d2376a3")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

def exists(x):
    return x is not None

ARGS = {
    "x": torch.tensor([1, 2, 3, 4])
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
is_image_file Ran
ran, violated the contract we drafted
ryliu68/CDMA/core/base_dataset.py
pointer only (licence: MIT); the stored copy get_code serves, from sgoldyaev/DeepFashion.ADGAN, is pointer only (licence: NONE) · get_code("ab4109634b75ef8b")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from sgoldyaev/DeepFashion.ADGAN, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

mae Ran
ran; our contract draft was wrong, not the code
ryliu68/CDMA/models/metric.py
pointer only (licence: MIT); the stored copy get_code serves, from kangliao929/noise-da, is pointer only (licence: NOASSERTION) · get_code("0570fbc1e2582ae7")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from kangliao929/noise-da, and GitHub could not classify the licence of that repository (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

make_dataset Ran
ran; our contract draft was wrong, not the code
ryliu68/CDMA/core/base_dataset.py
pointer only (licence: MIT); the stored copy get_code serves, from kangliao929/noise-da, is pointer only (licence: NOASSERTION) · get_code("fd901efe5f883205")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from kangliao929/noise-da, and GitHub could not classify the licence of that repository (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

mse_loss Ran
ran, honoured the contract we drafted
ryliu68/CDMA/models/loss.py
pointer only (licence: MIT); the stored copy get_code serves, from bahjat-kawar/gsure-diffusion, is pointer only (licence: NONE) · get_code("632959a67ae7fdac")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from bahjat-kawar/gsure-diffusion, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

pil_loader Ran
ran, honoured the contract we drafted
ryliu68/CDMA/core/base_dataset.py
pointer only (licence: MIT); the stored copy get_code serves, from kangliao929/noise-da, is pointer only (licence: NOASSERTION) · get_code("534e80dab769ec2f")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from kangliao929/noise-da, and GitHub could not classify the licence of that repository (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

postprocess Ran
ran; our contract draft was wrong, not the code
ryliu68/CDMA/core/util.py
code served (permissive licence) · get_code("1037e66345303a97")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np
import math
from torchvision.utils import make_grid

torch.manual_seed(0)

# Create sample tensors for testing postprocess
# The function expects a list of tensors
# Each tensor can be 4D, 3D, or 2D

# Create a 4D tensor (B, C, H, W) - batch of 2 images
tensor_4d = torch.rand(2, 3, 8, 8) * 2 - 1  # Range [-1, 1]

# Create a 3D tensor (C, H, W)
tensor_3d = torch.rand(3, 8, 8) * 2 - 1  # Range [-1, 1]

# Create a 2D tensor (H, W)
tensor_2d = torch.rand(8, 8) * 2 - 1  # Range [-1, 1]

# Test with a list of different tensors
images = [tensor_4d, tensor_3d, tensor_2d]

ARGS = {
    'images': images
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch, torchvision — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list — a list output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
sample_adv Ran
ran; our contract draft was wrong, not the code
ryliu68/CDMA/sample_adv_batch.py
code served (permissive licence) · get_code("cb4d5720ab772114")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 5, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

class MockModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 4)
    
    def restoration(self, cond_image, sample_num=100):
        # Returns a tuple of (output, auxiliary_output)
        # output should have same shape as cond_image
        batch_size = cond_image.shape[0]
        output = torch.randn(batch_size, 3, 4, 4)
        aux_output = None
        return (output, aux_output)

model = MockModel()
cond_image = torch.randn(2, 3, 4, 4)
eps = 8

ARGS = {
    "model": model,
    "cond_image": cond_image,
    "eps": eps
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 5, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
set_gpu Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
ryliu68/CDMA/core/util.py
pointer only (licence: MIT); the stored copy get_code serves, from kangliao929/noise-da, is pointer only (licence: NOASSERTION) · get_code("24ef4b46c563b220")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from kangliao929/noise-da, and GitHub could not classify the licence of that repository (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

tensor2img Ran
ran; our contract draft was wrong, not the code
ryliu68/CDMA/core/util.py
code served (permissive licence) · get_code("8aa242823600422d")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 3, dtype family int, shape (14, 9, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

# Create test tensors for different dimensionalities
# 4D tensor: (B, C, H, W) - batch of 2 images, 3 channels, 4x5 spatial dims
tensor_4d = torch.randn(2, 3, 4, 5) * 2 - 1  # Range approximately (-1, 1)

# 3D tensor: (C, H, W) - single image, 3 channels, 4x5 spatial dims
tensor_3d = torch.randn(3, 4, 5) * 2 - 1

# 2D tensor: (H, W) - single grayscale image, 4x5 spatial dims
tensor_2d = torch.randn(4, 5) * 2 - 1

ARGS = {
    'tensor': tensor_4d,
    'out_type': np.uint8,
    'min_max': (-1, 1)
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch, torchvision — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 3, dtype family int, shape (14, 9, 3) — shape (14, 9, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
extract Not yet run
unverified (harvested, no recorded run)
ryliu68/CDMA/models/network.py
code served (permissive licence) · get_code("e894fcce48231d2f")
How it ran

no invocation recorded.

inception_score Not yet run
unverified (harvested, no recorded run)
ryliu68/CDMA/models/metric.py
code served (permissive licence) · get_code("6d3c813b7561493d")
How it ran

no invocation recorded.

init_obj Not yet run
unverified (harvested, no recorded run)
ryliu68/CDMA/core/praser.py
pointer only (licence: MIT); the stored copy get_code serves, from kangliao929/noise-da, is pointer only (licence: NOASSERTION) · get_code("89ecc1cd0adb6951")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from kangliao929/noise-da, and GitHub could not classify the licence of that repository (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 17 samples lifted from this paper's linked repositories, 17 carry a function identity and 0 do not. Of the 17 distinct functions with an identity, 15 are also present in other papers whose code we hold (13 with at least one paper dated earlier, 5 the same month, 15 later) and 2 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
default 207 other papers
83 dated earlier, 8 the same month, 114 later, 2 same year, order not determinable · 41 only as an assembly brick
1711.11585 (2017-11)
High-Resolution Image Synthesis and Semantic Manipulation with Conditional GANs
2006.11239 (2020-06)
Denoising Diffusion Probabilistic Models
2010.08162 (2020-10)
SidechainNet: An All-Atom Protein Structure Dataset for Machine Learning
and 204 more not named here
exists 144 other papers
55 dated earlier, 4 the same month, 84 later, 1 same year, order not determinable · 40 only as an assembly brick
1611.07004 (2016-11)
Image-to-Image Translation with Conditional Adversarial Networks
1711.11585 (2017-11)
High-Resolution Image Synthesis and Semantic Manipulation with Conditional GANs
2006.11239 (2020-06)
Denoising Diffusion Probabilistic Models
and 141 more not named here
is_image_file 62 other papers
41 dated earlier, 4 the same month, 17 later
1609.04802 (2016-09)
Photo-Realistic Single Image Super-Resolution Using a Generative Adversarial Network
1703.07511 (2017-03)
Deep Photo Style Transfer
1710.10916 (2017-10)
StackGAN++: Realistic Image Synthesis with Stacked Generative Adversarial Networks
and 59 more not named here
dict2str 23 other papers
13 dated earlier, 2 the same month, 8 later
1905.02716 (2019-05)
EDVR: Video Restoration with Enhanced Deformable Convolutional Networks
1907.03222 (2019-07)
IRNet: A General Purpose Deep Residual Regression Framework for Materials Discovery
2005.05650 (2020-05)
Invertible Image Rescaling
and 20 more not named here
dict_to_nonedict 19 other papers
9 dated earlier, 2 the same month, 8 later
1609.04802 (2016-09)
Photo-Realistic Single Image Super-Resolution Using a Generative Adversarial Network
1905.02716 (2019-05)
EDVR: Video Restoration with Enhanced Deformable Convolutional Networks
2006.14200 (2020-06)
SRFlow: Learning the Super-Resolution Space with Normalizing Flow
and 16 more not named here
extract 6 other papers
1 dated earlier, 5 later
2308.04417 (2023-08)
DiffCR: A Fast Conditional Diffusion Framework for Cloud Removal from Optical Satellite Images
2312.11121 (2023-12)
Multi-scale Reconstruction of Turbulent Rotating Flows with Generative Diffusion Models
aaai_28090 (2024 (year only))
Towards Automated Chinese Ancient Character Restoration: A Diffusion-Based Method with a New Dataset
and 3 more not named here
inception_score 6 other papers
4 dated earlier, 2 later
1610.00291 (2016-10)
Deep Feature Consistent Variational Autoencoder
2306.04675 (2023-06)
Exposing flaws of generative model evaluation metrics and their unfair treatment of diffusion models
2308.04417 (2023-08)
DiffCR: A Fast Conditional Diffusion Framework for Cloud Removal from Optical Satellite Images
and 3 more not named here
pil_loader 5 other papers
2 dated earlier, 3 later
1803.10082 (2018-03)
Efficient parametrization of multi-domain deep neural networks
2308.04417 (2023-08)
DiffCR: A Fast Conditional Diffusion Framework for Cloud Removal from Optical Satellite Images
2312.11121 (2023-12)
Multi-scale Reconstruction of Turbulent Rotating Flows with Generative Diffusion Models
and 2 more not named here
mae 4 other papers
2 dated earlier, 2 later
2305.13128 (2023-05)
GSURE-Based Diffusion Model Training with Corrupted Data
2308.04417 (2023-08)
DiffCR: A Fast Conditional Diffusion Framework for Cloud Removal from Optical Satellite Images
2312.11121 (2023-12)
Multi-scale Reconstruction of Turbulent Rotating Flows with Generative Diffusion Models
and 1 more not named here
make_dataset 4 other papers
1 dated earlier, 3 later
2308.04417 (2023-08)
DiffCR: A Fast Conditional Diffusion Framework for Cloud Removal from Optical Satellite Images
2312.11121 (2023-12)
Multi-scale Reconstruction of Turbulent Rotating Flows with Generative Diffusion Models
aaai_28199 (2024 (year only))
FedST: Federated Style Transfer Learning for Non-IID Image Segmentation
and 1 more not named here
mse_loss 4 other papers
2 dated earlier, 2 later
2305.13128 (2023-05)
GSURE-Based Diffusion Model Training with Corrupted Data
2308.04417 (2023-08)
DiffCR: A Fast Conditional Diffusion Framework for Cloud Removal from Optical Satellite Images
2312.11121 (2023-12)
Multi-scale Reconstruction of Turbulent Rotating Flows with Generative Diffusion Models
and 1 more not named here
init_obj 3 other papers
1 dated earlier, 2 later
2308.04417 (2023-08)
DiffCR: A Fast Conditional Diffusion Framework for Cloud Removal from Optical Satellite Images
2312.11121 (2023-12)
Multi-scale Reconstruction of Turbulent Rotating Flows with Generative Diffusion Models
2406.18516 (2024-06)
Denoising as Adaptation: Noise-Space Domain Adaptation for Image Restoration
postprocess 3 other papers
1 dated earlier, 2 later
2308.04417 (2023-08)
DiffCR: A Fast Conditional Diffusion Framework for Cloud Removal from Optical Satellite Images
2312.11121 (2023-12)
Multi-scale Reconstruction of Turbulent Rotating Flows with Generative Diffusion Models
aaai_28199 (2024 (year only))
FedST: Federated Style Transfer Learning for Non-IID Image Segmentation
set_gpu 2 other papers
2 later
aaai_28199 (2024 (year only))
FedST: Federated Style Transfer Learning for Non-IID Image Segmentation
2406.18516 (2024-06)
Denoising as Adaptation: Noise-Space Domain Adaptation for Image Restoration
tensor2img 2 other papers
2 later
2312.11121 (2023-12)
Multi-scale Reconstruction of Turbulent Rotating Flows with Generative Diffusion Models
aaai_28199 (2024 (year only))
FedST: Federated Style Transfer Learning for Non-IID Image Segmentation

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

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

Abstract

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$.

For agents

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

get_harvested_code_for_paper("2310.07492")
get_code_for_paper("2310.07492")
have("2310.07492")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2310.07492.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2310.07492.svg)](https://syntology.ai/paper/2310.07492)

Connect an agent — have() is free.