SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1912.07160 · 2019

DAmageNet: A Universal Adversarial Dataset

arXiv · PDF · Open in the Atlas

Code that ran

8 of 13 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; 0 honoured the contract we drafted, 0 violated it and 6 have no contract verdict; 2 failures of our instrument; 5 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/1912.07160.json · badge: /api/ran/1912.07160.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
XingLiangLondon/Image-Similarity-in-Percentage community (classifier label)
classifier basis not recorded on the link
8 ran · 5 no recorded run
FunctionStatusWhere it lives
calculate_similarity_cosine Ran
ran on a synthesized input
XingLiangLondon/Image-Similarity-in-Percentage/ResNet50_similarity_Xing.py
code served (permissive licence) · get_code("cfa0038cdd075800")
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 2, dtype family float, shape (2, 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 numpy as np
from sklearn.metrics.pairwise import cosine_similarity

# Create two small numpy arrays to use as vectors
# vector1: shape (2, 4) - 2 samples, 4 dimensions
# vector2: shape (3, 4) - 3 samples, 4 dimensions
vector1 = np.array([
    [1.0, 0.0, 0.5, 0.2],
    [0.0, 1.0, 0.3, 0.8]
], dtype=np.float32)

vector2 = np.array([
    [1.0, 0.0, 0.0, 0.0],
    [0.0, 1.0, 0.0, 0.0],
    [0.5, 0.5, 0.0, 0.0]
], dtype=np.float32)

ARGS = {
    "vector1": vector1,
    "vector2": vector2
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sklearn — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (2, 3) — shape (2, 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
calculate_similarity_euclidean Ran
ran on a synthesized input
XingLiangLondon/Image-Similarity-in-Percentage/ResNet50_similarity_Xing.py
code served (permissive licence) · get_code("6307b62440f0a9be")
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 float64, ndim 0, 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 numpy as np

# Create two distinct vectors for similarity calculation
vector1 = np.array([1.0, 2.0, 3.0, 4.0])
vector2 = np.array([2.0, 3.0, 4.0, 5.0])

ARGS = {
    "vector1": vector1,
    "vector2": vector2,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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
conv2d_bn Ran
ran; our contract draft was wrong, not the code
XingLiangLondon/Image-Similarity-in-Percentage/inception_resnet_v2.py
code served (permissive licence) · get_code("a6733fb543c93af7")
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 KerasTensor. 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 tensorflow as tf
from keras.layers import Input
from keras import backend as K

# Set up a small input tensor for the function
# The function expects a tensor that will be passed through Conv2D and BatchNormalization layers
input_tensor = Input(shape=(4, 4, 3))  # (height, width, channels)

ARGS = {
    'x': input_tensor,
    'filters': 32,
    'kernel_size': 3,
    'strides': 1,
    'padding': 'same',
    'activation': 'relu',
    'use_bias': False,
    'name': 'conv2d_bn_block'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
keras, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type KerasTensor — a KerasTensor 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
conv2d_bn Ran
ran on a synthesized input
XingLiangLondon/Image-Similarity-in-Percentage/inception_v3.py
code served (permissive licence) · get_code("f9e794caff5e0303")
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 KerasTensor. 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 numpy as np
from tensorflow import keras
from keras.layers import Input
from keras import backend as K

# Create a small input tensor (batch_size=2, height=4, width=4, channels=3)
input_tensor = Input(shape=(4, 4, 3))

# Define arguments for conv2d_bn function
ARGS = {
    'x': input_tensor,
    'filters': 32,
    'num_row': 3,
    'num_col': 3,
    'padding': 'same',
    'strides': (1, 1),
    'name': 'test_conv'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
keras, numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type KerasTensor — a KerasTensor 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
conv_block Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
XingLiangLondon/Image-Similarity-in-Percentage/resnet50.py
code served (permissive licence) · get_code("5e7a557c615eb17e")
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 KerasTensor. 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 tensorflow as tf
from keras import layers
from keras.layers import Activation, Conv2D, BatchNormalization
import keras.backend as K

# Set seed for reproducibility
tf.random.set_seed(0)

# Create a small input tensor
# Shape: (batch_size=2, height=4, width=4, channels=3)
input_tensor = tf.keras.Input(shape=(4, 4, 3))

# Define parameters
kernel_size = 3
filters = [64, 64, 256]  # filters1, filters2, filters3
stage = 3
block = 'a'
strides = (2, 2)

ARGS = {
    'input_tensor': input_tensor,
    'kernel_size': kernel_size,
    'filters': filters,
    'stage': stage,
    'block': block,
    'strides': strides
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
keras, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type KerasTensor — a KerasTensor 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
decode_predictions Ran
ran on a synthesized input
XingLiangLondon/Image-Similarity-in-Percentage/audio_conv_utils.py
code served (permissive licence) · get_code("96e36ec363cca1ab")
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, ndim 3, 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 numpy as np

torch_manual_seed = 0

# Create predictions: 2D numpy array with shape (batch_size, num_tags)
# batch_size = 2, num_tags = 50
np.random.seed(0)
preds = np.random.rand(2, 50).astype(np.float32)

ARGS = {
    'preds': preds,
    'top_n': 5
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 3, dtype family float — a list 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
preprocess_input Ran
ran on a synthesized input
XingLiangLondon/Image-Similarity-in-Percentage/imagenet_utils.py
code served (permissive licence) · get_code("64eb4bea3d3127c4")
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 4, dtype family float, shape (2, 3, 4, 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 numpy as np
import os

os.environ['KERAS_BACKEND'] = 'tensorflow'

# Create a small numpy array with shape (batch=2, channels=3, height=4, width=4)
# This will be modified in-place by the function
x = np.random.rand(2, 3, 4, 4).astype(np.float32)

ARGS = {
    'x': x,
    'dim_ordering': 'tf'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
keras, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 4, dtype family float, shape (2, 3, 4, 4) — shape (2, 3, 4, 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
preprocess_input Ran
ran on a synthesized input
XingLiangLondon/Image-Similarity-in-Percentage/mobilenet.py
code served (permissive licence) · get_code("bee766c6e15044c2")
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 preprocess_input takes a single parameter x
# and performs in-place operations: division, subtraction, multiplication
# x should be a tensor or array that supports these operations

x = torch.randn(2, 4, dtype=torch.float32) * 255.0

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
identity_block Not yet run
unverified (harvested, no recorded run)
XingLiangLondon/Image-Similarity-in-Percentage/resnet50.py
code served (permissive licence) · get_code("4679231cd26e9089")
How it ran

no invocation recorded.

inception_resnet_block Not yet run
unverified (harvested, no recorded run)
XingLiangLondon/Image-Similarity-in-Percentage/inception_resnet_v2.py
code served (permissive licence) · get_code("fb1c8b0ba1d4fe2f")
How it ran

no invocation recorded.

preprocess_input Not yet run
unverified (harvested, no recorded run)
XingLiangLondon/Image-Similarity-in-Percentage/inception_resnet_v2.py
code served (permissive licence) · get_code("17e355a0c16b9297")
How it ran

no invocation recorded.

preprocess_input Not yet run
unverified (harvested, no recorded run)
XingLiangLondon/Image-Similarity-in-Percentage/audio_conv_utils.py
code served (permissive licence) · get_code("73ad129b7b35ec98")
How it ran

no invocation recorded.

relu6 Not yet run
unverified (harvested, no recorded run)
XingLiangLondon/Image-Similarity-in-Percentage/mobilenet.py
pointer only (licence: MIT); the stored copy get_code serves, from saghiralfasly/VFL-Vehicle-Re-Id, is pointer only (licence: NONE) · get_code("f124399d87a3224b")
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 saghiralfasly/VFL-Vehicle-Re-Id, 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. No invocation recorded.

Also present in other papers' code

Of 13 samples lifted from this paper's linked repositories, 13 carry a function identity and 0 do not. Of the 12 distinct functions with an identity, 10 are also present in other papers whose code we hold (10 with at least one paper dated earlier, 0 the same month, 0 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
relu6 6 other papers
6 dated earlier
1512.03385 (2015-12)
Deep Residual Learning for Image Recognition
1612.03716 (2016-12)
COCO-Stuff: Thing and Stuff Classes in Context
1704.04861 (2017-04)
MobileNets: Efficient Convolutional Neural Networks for Mobile Vision Applications
and 3 more not named here
conv_block 3 other papers
3 dated earlier
1406.2199 (2014-06)
Two-Stream Convolutional Networks for Action Recognition in Videos
1512.03385 (2015-12)
Deep Residual Learning for Image Recognition
1806.03287 (2018-06)
Slalom: Fast, Verifiable and Private Execution of Neural Networks in Trusted Hardware
identity_block 3 other papers
3 dated earlier
1406.2199 (2014-06)
Two-Stream Convolutional Networks for Action Recognition in Videos
1512.03385 (2015-12)
Deep Residual Learning for Image Recognition
1806.03287 (2018-06)
Slalom: Fast, Verifiable and Private Execution of Neural Networks in Trusted Hardware
preprocess_input 3 other papers
3 dated earlier
1503.02531 (2015-03)
Distilling the Knowledge in a Neural Network
1512.03385 (2015-12)
Deep Residual Learning for Image Recognition
1807.06521 (2018-07)
CBAM: Convolutional Block Attention Module
conv2d_bn 2 other papers
2 dated earlier
1512.03385 (2015-12)
Deep Residual Learning for Image Recognition
1807.06521 (2018-07)
CBAM: Convolutional Block Attention Module
conv2d_bn 2 other papers
2 dated earlier
1512.03385 (2015-12)
Deep Residual Learning for Image Recognition
1703.04730 (2017-03)
Understanding Black-box Predictions via Influence Functions
preprocess_input 2 other papers
2 dated earlier
1512.03385 (2015-12)
Deep Residual Learning for Image Recognition
1703.04730 (2017-03)
Understanding Black-box Predictions via Influence Functions
decode_predictions 1 other paper
1 dated earlier
1512.03385 (2015-12)
Deep Residual Learning for Image Recognition
inception_resnet_block 1 other paper
1 dated earlier
1512.03385 (2015-12)
Deep Residual Learning for Image Recognition
preprocess_input 1 other paper
1 dated earlier
1512.03385 (2015-12)
Deep Residual Learning for Image Recognition

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

It is now well known that deep neural networks (DNNs) are vulnerable to adversarial attack. Adversarial samples are similar to the clean ones, but are able to cheat the attacked DNN to produce incorrect predictions in high confidence. But most of the existing adversarial attacks have high success rate only when the information of the attacked DNN is well-known or could be estimated by massive queries. A promising way is to generate adversarial samples with high transferability. By this way, we generate 96020 transferable adversarial samples from original ones in ImageNet. The average difference, measured by root means squared deviation, is only around 3.8 on average. However, the adversarial samples are misclassified by various models with an error rate up to 90\%. Since the images are generated independently with the attacked DNNs, this is essentially zero-query adversarial attack. We call the dataset \emph{DAmageNet}, which is the first universal adversarial dataset that beats many models trained in ImageNet. By finding the drawbacks, DAmageNet could serve as a benchmark to study and improve robustness of DNNs. DAmageNet could be downloaded in http://www.pami.sjtu.edu.cn/Show/56/122.

For agents

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

get_harvested_code_for_paper("1912.07160")
get_code_for_paper("1912.07160")
have("1912.07160")

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

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

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

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

Connect an agent — have() is free.