SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2010.07788 · 2020

Generalizing Universal Adversarial Attacks Beyond Additive Perturbations

arXiv · PDF · Open in the Atlas

Code that ran

2 of 11 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 1 has no contract verdict; 1 failure of our instrument; 9 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/2010.07788.json · badge: /api/ran/2010.07788.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
TrustAI/DeepConcolic canonical (classifier label)
classifier basis: census
2 ran · 9 no recorded run
FunctionStatusWhere it lives
layer_transform_options Ran
ran on a synthesized input
TrustAI/DeepConcolic/deepconcolic/dbnc.py
code served (permissive licence) · get_code("018dd721ff505e4e")
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 int, ndim 0, dtype family int, 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 builtins
import torch
import numpy as np

torch.manual_seed(0)

# Analyze the function:
# - li: an index/key used in dict lookups and passed to eval'd functions
# - feats: can be int, float, str, dict, or None
# - default: fallback value (int, float, etc.)

# Test cases for different branches:

# Case 1: feats is an int
case1_li = 0
case1_feats = 5
case1_default = 1

# Case 2: feats is a float
case2_li = 1
case2_feats = 3.14
case2_default = 1

# Case 3: feats is a string (evaluated as a function)
# The string is eval'd with empty globals, so it should be a builtin or simple expression
case3_li = 2
case3_feats = "lambda x: x * 2"  # Simple lambda that takes li as input
case3_default = 1

# Case 4: feats is a dict with li as a key
case4_li = "layer_0"
case4_feats = {"layer_0": 10, "layer_1": 20}
case4_default = 1

# Case 5: feats is a dict without li as a key (returns the dict itself)
case5_li = "layer_2"
case5_feats = {"layer_0": 10, "layer_1": 20}
case5_default = 1

# Case 6: feats is None (returns default)
case6_li = 5
case6_feats = None
case6_default = 42

# Pick one representative case for ARGS
ARGS = {
    "li": 0,
    "feats": 5,
    "default": 1
}
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 int, ndim 0, dtype family int, 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
load_openml_data_lambda Ran
ran; our contract draft was wrong, not the code
TrustAI/DeepConcolic/deepconcolic/datasets.py
code served (permissive licence) · get_code("cc6b90c9c074f7e2")
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 function. 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 os
import numpy as np
from tempfile import gettempdir
from sklearn.model_selection import train_test_split
from sklearn.datasets import fetch_openml
from sklearn.utils import shuffle

# Mock fetch_openml to avoid network calls
class MockDataset:
    def __init__(self):
        self.data = np.random.rand(10, 5)
        self.target = np.array([0, 1, 0, 1, 0, 1, 0, 1, 0, 1])

def mock_fetch_openml(data_home=None, name=None):
    return MockDataset()

# Monkey patch to avoid network calls
import sklearn.datasets
sklearn.datasets.fetch_openml = mock_fetch_openml

default_datadir = os.getenv('DC_DATADIR') or os.path.join(gettempdir(), 'sklearn_data')

openml_choices = {}

def load_openml_data_generic(name, datadir=default_datadir, input_kind='unknown', shuffle_last=False, test_size=None, **_):
    ds = fetch_openml(data_home=datadir, name=name)
    x_train, x_test, y_train, y_test = train_test_split(ds.data, ds.target, test_size=test_size, shuffle=not shuffle_last)
    if shuffle_last:
        x_train, y_train = shuffle(x_train, y_train)
        x_test, y_test = shuffle(x_test, y_test)
    labels = np.unique(ds.target)
    labl2y_dict = {y: i for i, y in enumerate(labels)}
    labl2y = np.vectorize(lambda y: labl2y_dict[y])
    y_train, y_test = (labl2y(y_train), labl2y(y_test))
    return ((x_train, y_train.astype(int)), (x_test, y_test.astype(int)), x_train.shape[1:], input_kind, [str(c) for c in labels])

def load_openml_data_lambda(name):
    return lambda **kwds: load_openml_data_generic(name=name, **dict(**openml_choices[name], **kwds))

ARGS = {
    'name': 'test_dataset'
}
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 function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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
eval_coverages Not yet run
unverified (harvested, no recorded run)
TrustAI/DeepConcolic/deepconcolic/dbnabstr.py
code served (permissive licence) · get_code("1fb840ffa00a9aa4")
How it ran

no invocation recorded.

imgen Not yet run
unverified (harvested, no recorded run)
TrustAI/DeepConcolic/deepconcolic/dbneval_transforms.py
code served (permissive licence) · get_code("1273096fcc0234e7")
How it ran

no invocation recorded.

load_by_name Not yet run
unverified (harvested, no recorded run)
TrustAI/DeepConcolic/deepconcolic/datasets.py
code served (permissive licence) · get_code("c92ec75fa1113574")
How it ran

no invocation recorded.

load_dataset Not yet run
unverified (harvested, no recorded run)
TrustAI/DeepConcolic/deepconcolic/dbnabstr.py
code served (permissive licence) · get_code("321db616c3617f72")
How it ran

no invocation recorded.

load_dataset Not yet run
unverified (harvested, no recorded run)
TrustAI/DeepConcolic/deepconcolic/dbncXplore.py
code served (permissive licence) · get_code("6ca15f637fb7a850")
How it ran

no invocation recorded.

load_model Not yet run
unverified (harvested, no recorded run)
TrustAI/DeepConcolic/deepconcolic/dbnabstr.py
code served (permissive licence) · get_code("667e814e392d291e")
How it ran

no invocation recorded.

load_model Not yet run
unverified (harvested, no recorded run)
TrustAI/DeepConcolic/deepconcolic/dbncXplore.py
code served (permissive licence) · get_code("7823fdeea15cde56")
How it ran

no invocation recorded.

load_openml_data_generic Not yet run
unverified (harvested, no recorded run)
TrustAI/DeepConcolic/deepconcolic/datasets.py
code served (permissive licence) · get_code("a5f1130d5d0b2ca5")
How it ran

no invocation recorded.

setup_run_common Not yet run
unverified (harvested, no recorded run)
TrustAI/DeepConcolic/deepconcolic/dbncXplore.py
code served (permissive licence) · get_code("a2ef4d4f4d69e85b")
How it ran

no invocation recorded.

Also present in other papers' code

Of 11 samples lifted from this paper's linked repositories, 11 carry a function identity and 0 do not. Of the 11 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 0 later) and 10 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
load_openml_data_lambda 1 other paper
1 dated earlier
1805.00089 (2018-05)
Concolic Testing for Deep Neural Networks

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

The previous study has shown that universal adversarial attacks can fool deep neural networks over a large set of input images with a single human-invisible perturbation. However, current methods for universal adversarial attacks are based on additive perturbation, which cause misclassification when the perturbation is directly added to the input images. In this paper, for the first time, we show that a universal adversarial attack can also be achieved via non-additive perturbation (e.g., spatial transformation). More importantly, to unify both additive and non-additive perturbations, we propose a novel unified yet flexible framework for universal adversarial attacks, called GUAP, which is able to initiate attacks by additive perturbation, non-additive perturbation, or the combination of both. Extensive experiments are conducted on CIFAR-10 and ImageNet datasets with six deep neural network models including GoogleLeNet, VGG16/19, ResNet101/152, and DenseNet121. The empirical experiments demonstrate that GUAP can obtain up to 90.9% and 99.24% successful attack rates on CIFAR-10 and ImageNet datasets, leading to over 15% and 19% improvements respectively than current state-of-the-art universal adversarial attacks. The code for reproducing the experiments in this paper is available at https://github.com/TrustAI/GUAP.

For agents

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

get_harvested_code_for_paper("2010.07788")
get_code_for_paper("2010.07788")
have("2010.07788")

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

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

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

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

Connect an agent — have() is free.