SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2307.07873 · 2023

Why Does Little Robustness Help? A Further Step Towards Understanding Adversarial Transferability

arXiv · PDF · Open in the Atlas

Code that ran

12 of 15 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 0 have no contract verdict; 12 failures of our instrument; 3 no recorded run); 1 of them was also run on the host, not in the jail, by the peer-agreement lane that set its level, 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/2307.07873.json · badge: /api/ran/2307.07873.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
cgcl-codes/transferattacksurrogates canonical (classifier label)
classifier basis: census
12 ran · 3 no recorded run
FunctionStatusWhere it lives
clip_by_tensor Ran
ran; our contract draft was wrong, not the code
cgcl-codes/transferattacksurrogates/TransferAttack/imagenet_attack.py
code served (permissive licence) · get_code("11d8e1b97b2f5801")
How it ran

Ran in Syntology's jail on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) 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. The comparison behind this sample's level is a different run: the peer-agreement lane ran it again on the host, not in the jail (report dated 2026-09-04T22:35:56Z). 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

torch.manual_seed(0)

# Create small tensors for clipping
t = torch.randn(2, 4)
t_min = torch.tensor(-1.0)
t_max = torch.tensor(1.0)

ARGS = {
    "t": t,
    "t_min": t_min,
    "t_max": t_max,
}
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 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
drop_connect Ran
ran; our contract draft was wrong, not the code
cgcl-codes/transferattacksurrogates/TransferAttack/models/efficientnet.py
pointer only (licence: MIT); the stored copy get_code serves, from EnumaCaliber/BRIDGE, is pointer only (licence: NONE) · get_code("4304a326c593f8db")
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 EnumaCaliber/BRIDGE, 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.

make_layers Ran
ran; our contract draft was wrong, not the code
cgcl-codes/transferattacksurrogates/TransferAttack/models/vgg.py
pointer only (licence: MIT); the stored copy get_code serves, from liuyixin-louis/stable-unlearnable-example, is pointer only (licence: NOASSERTION) · get_code("424b4090e4679330")
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 liuyixin-louis/stable-unlearnable-example, 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.

resnet18 Ran
ran; our contract draft was wrong, not the code
cgcl-codes/transferattacksurrogates/TransferAttack/models/resnet.py
code served (permissive licence) · get_code("33b1291f4ed17ae8")
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 ResNet. 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 torch.nn as nn

torch.manual_seed(0)

ARGS = {
    'in_dims': 3,
    'out_dims': 10,
}
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 ResNet — a ResNet output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ResNet 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
resnet20 Ran
ran; our contract draft was wrong, not the code
cgcl-codes/transferattacksurrogates/TransferAttack/models/resnet_cifar.py
code served (permissive licence) · get_code("ef2cb901ccb65deb")
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 ResNet. 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 torch.nn as nn

torch.manual_seed(0)

ARGS = {
    "num_classes": 10
}
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 ResNet — a ResNet output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ResNet 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
resnet32 Ran
ran; our contract draft was wrong, not the code
cgcl-codes/transferattacksurrogates/TransferAttack/models/resnet_cifar.py
code served (permissive licence) · get_code("580a194529286f83")
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 ResNet. 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 torch.nn as nn

torch.manual_seed(0)

ARGS = {
    'num_classes': 10
}
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 ResNet — a ResNet output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ResNet 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
resnet44 Ran
ran; our contract draft was wrong, not the code
cgcl-codes/transferattacksurrogates/TransferAttack/models/resnet_cifar.py
code served (permissive licence) · get_code("7a0631b66b62efa7")
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 ResNet. 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 torch.nn as nn

torch.manual_seed(0)

ARGS = {
    "num_classes": 10
}
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 ResNet — a ResNet output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ResNet 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
resnet50 Ran
ran; our contract draft was wrong, not the code
cgcl-codes/transferattacksurrogates/TransferAttack/models/resnet.py
code served (permissive licence) · get_code("8a672b592867c614")
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 ResNet. 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 torch.nn as nn

torch.manual_seed(0)

ARGS = {
    "in_dims": 3,
    "out_dims": 10,
}
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 ResNet — a ResNet output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ResNet 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
swish Ran
ran; our contract draft was wrong, not the code
cgcl-codes/transferattacksurrogates/TransferAttack/models/efficientnet.py
pointer only (licence: MIT); the stored copy get_code serves, from EnumaCaliber/BRIDGE, is pointer only (licence: NONE) · get_code("8737c82de631cffc")
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 EnumaCaliber/BRIDGE, 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.

vgg11_bn Ran
ran; our contract draft was wrong, not the code
cgcl-codes/transferattacksurrogates/TransferAttack/models/vgg.py
pointer only (licence: MIT); the stored copy get_code serves, from liuyixin-louis/stable-unlearnable-example, is pointer only (licence: NOASSERTION) · get_code("acc8c58f222a7df0")
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 liuyixin-louis/stable-unlearnable-example, 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.

vgg13 Ran
ran; our contract draft was wrong, not the code
cgcl-codes/transferattacksurrogates/TransferAttack/models/vgg.py
code served (permissive licence) · get_code("573861d5c02def4d")
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 VGG. 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 torch.nn as nn
import math

torch.manual_seed(0)

# Define the configuration and helper functions
cfg = {'A': [64, 'M', 128, 'M', 256, 256, 'M', 512, 512, 'M', 512, 512, 'M'], 'B': [64, 64, 'M', 128, 128, 'M', 256, 256, 'M', 512, 512, 'M', 512, 512, 'M'], 'D': [64, 64, 'M', 128, 128, 'M', 256, 256, 256, 'M', 512, 512, 512, 'M', 512, 512, 512, 'M'], 'E': [64, 64, 'M', 128, 128, 'M', 256, 256, 256, 256, 'M', 512, 512, 512, 512, 'M', 512, 512, 512, 512, 'M']}

def make_layers(cfg, in_dims=3, batch_norm=False):
    layers = []
    in_channels = in_dims
    for v in cfg:
        if v == 'M':
            layers += [nn.MaxPool2d(kernel_size=2, stride=2)]
        else:
            conv2d = nn.Conv2d(in_channels, v, kernel_size=3, padding=1)
            if batch_norm:
                layers += [conv2d, nn.BatchNorm2d(v), nn.ReLU(inplace=True)]
            else:
                layers += [conv2d, nn.ReLU(inplace=True)]
            in_channels = v
    return nn.Sequential(*layers)

class VGG(nn.Module):
    """ VGG model """

    def __init__(self, features, out_channels):
        super(VGG, self).__init__()
        self.features = features
        self.avgpool = nn.AdaptiveAvgPool2d((1, 1))
        self.classifier = nn.Sequential(nn.Dropout(), nn.Linear(512, 512), nn.ReLU(True), nn.Dropout(), nn.Linear(512, 512), nn.ReLU(True), nn.Linear(512, out_channels))
        ' Initialize weights '
        for m in self.modules():
            if isinstance(m, nn.Conv2d):
                n = m.kernel_size[0] * m.kernel_size[1] * m.out_channels
                m.weight.data.normal_(0, math.sqrt(2.0 / n))
                m.bias.data.zero_()

    def forward(self, x):
        x = self.features(x)
        x = self.avgpool(x)
        x = torch.flatten(x, 1)
        x = self.classifier(x)
        return x

def vgg13(out_channels=10):
    """VGG 13-layer model (configuration "B")"""
    return VGG(make_layers(cfg['B']), out_channels)

# Create valid arguments for vgg13
ARGS = {
    'out_channels': 10
}
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 VGG — a VGG output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a VGG 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
wrn34_10 Ran
ran; our contract draft was wrong, not the code
cgcl-codes/transferattacksurrogates/TransferAttack/models/resnet.py
code served (permissive licence) · get_code("91926dac2d2c5373")
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 WRN. 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 torch.nn as nn

torch.manual_seed(0)

ARGS = {
    "in_dims": 3,
    "out_dims": 10,
}
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 WRN — a WRN output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a WRN 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
densenet121 Not yet run
unverified (harvested, no recorded run)
cgcl-codes/transferattacksurrogates/TransferAttack/models/densenet.py
pointer only (licence: MIT); the stored copy get_code serves, from liuyixin-louis/stable-unlearnable-example, is pointer only (licence: NOASSERTION) · get_code("7510d0bcd890c346")
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 liuyixin-louis/stable-unlearnable-example, 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.

densenet161 Not yet run
unverified (harvested, no recorded run)
cgcl-codes/transferattacksurrogates/TransferAttack/models/densenet.py
pointer only (licence: MIT); the stored copy get_code serves, from liuyixin-louis/stable-unlearnable-example, is pointer only (licence: NOASSERTION) · get_code("8fc5580681158f30")
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 liuyixin-louis/stable-unlearnable-example, 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.

densenet169 Not yet run
unverified (harvested, no recorded run)
cgcl-codes/transferattacksurrogates/TransferAttack/models/densenet.py
pointer only (licence: MIT); the stored copy get_code serves, from liuyixin-louis/stable-unlearnable-example, is pointer only (licence: NOASSERTION) · get_code("54ca014637609170")
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 liuyixin-louis/stable-unlearnable-example, 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 15 samples lifted from this paper's linked repositories, 15 carry a function identity and 0 do not. Of the 15 distinct functions with an identity, 12 are also present in other papers whose code we hold (9 with at least one paper dated earlier, 1 the same month, 11 later) and 3 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
swish 32 other papers
13 dated earlier, 17 later, 2 same year, order not determinable
1512.03385 (2015-12)
Deep Residual Learning for Image Recognition
2002.11318 (2020-02)
Can we have it all? On the Trade-off between Spatial and Adversarial Robustness of Neural Networks
2106.01440 (2021-06)
Memory Wrap: a Data-Efficient and Interpretable Extension to Image Classification Models
and 29 more not named here
drop_connect 29 other papers
14 dated earlier, 14 later, 1 same year, order not determinable
1512.03385 (2015-12)
Deep Residual Learning for Image Recognition
1905.11946 (2019-05)
EfficientNet: Rethinking Model Scaling for Convolutional Neural Networks
2002.09564 (2020-02)
Towards Robust and Reproducible Active Learning Using Neural Networks
and 26 more not named here
clip_by_tensor 5 other papers
2 dated earlier, 1 the same month, 2 later · 1 only as an assembly brick
2207.05382 (2022-07)
Frequency Domain Model Augmentation for Adversarial Attack
2306.05225 (2023-06)
Boosting Adversarial Transferability by Achieving Flat Local Maxima
2307.06948 (2023-07)
Self-regulating Prompts: Foundational Model Adaptation without Forgetting
and 2 more not named here
densenet121 5 other papers
2 dated earlier, 3 later
2111.13998 (2021-11)
Targeted Supervised Contrastive Learning for Long-Tailed Recognition
2306.02913 (2023-06)
Decentralized SGD and Average-direction SAM are Asymptotically Equivalent
2311.06423 (2023-11)
Transferability Bound Theory: Exploring Relationship between Adversarial Transferability and Flatness
and 2 more not named here
densenet161 5 other papers
2 dated earlier, 3 later
2111.13998 (2021-11)
Targeted Supervised Contrastive Learning for Long-Tailed Recognition
2306.02913 (2023-06)
Decentralized SGD and Average-direction SAM are Asymptotically Equivalent
2311.06423 (2023-11)
Transferability Bound Theory: Exploring Relationship between Adversarial Transferability and Flatness
and 2 more not named here
densenet169 5 other papers
2 dated earlier, 3 later
2111.13998 (2021-11)
Targeted Supervised Contrastive Learning for Long-Tailed Recognition
2306.02913 (2023-06)
Decentralized SGD and Average-direction SAM are Asymptotically Equivalent
2311.06423 (2023-11)
Transferability Bound Theory: Exploring Relationship between Adversarial Transferability and Flatness
and 2 more not named here
make_layers 2 other papers
1 dated earlier, 1 later
2206.12680 (2022-06)
Topology-aware Generalization of Decentralized SGD
2311.13091 (2023-11)
Stable Unlearnable Example: Enhancing the Robustness of Unlearnable Examples via Stable Error-Minimizing Noise
resnet18 2 other papers
2 later
2311.13091 (2023-11)
Stable Unlearnable Example: Enhancing the Robustness of Unlearnable Examples via Stable Error-Minimizing Noise
2406.15093 (2024-06)
ECLIPSE: Expunging Clean-label Indiscriminate Poisons via Sparse Diffusion Purification
resnet50 2 other papers
2 later
2311.13091 (2023-11)
Stable Unlearnable Example: Enhancing the Robustness of Unlearnable Examples via Stable Error-Minimizing Noise
2406.15093 (2024-06)
ECLIPSE: Expunging Clean-label Indiscriminate Poisons via Sparse Diffusion Purification
vgg11_bn 2 other papers
1 dated earlier, 1 later
2206.12680 (2022-06)
Topology-aware Generalization of Decentralized SGD
2311.13091 (2023-11)
Stable Unlearnable Example: Enhancing the Robustness of Unlearnable Examples via Stable Error-Minimizing Noise
wrn34_10 2 other papers
2 later
2311.13091 (2023-11)
Stable Unlearnable Example: Enhancing the Robustness of Unlearnable Examples via Stable Error-Minimizing Noise
2406.15093 (2024-06)
ECLIPSE: Expunging Clean-label Indiscriminate Poisons via Sparse Diffusion Purification
resnet20 1 other paper
1 dated earlier
2304.03094 (2023-04)
PopulAtion Parameter Averaging (PAPA)

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

Adversarial examples (AEs) for DNNs have been shown to be transferable: AEs that successfully fool white-box surrogate models can also deceive other black-box models with different architectures. Although a bunch of empirical studies have provided guidance on generating highly transferable AEs, many of these findings lack explanations and even lead to inconsistent advice. In this paper, we take a further step towards understanding adversarial transferability, with a particular focus on surrogate aspects. Starting from the intriguing little robustness phenomenon, where models adversarially trained with mildly perturbed adversarial samples can serve as better surrogates, we attribute it to a trade-off between two predominant factors: model smoothness and gradient similarity. Our investigations focus on their joint effects, rather than their separate correlations with transferability. Through a series of theoretical and empirical analyses, we conjecture that the data distribution shift in adversarial training explains the degradation of gradient similarity. Building on these insights, we explore the impacts of data augmentation and gradient regularization on transferability and identify that the trade-off generally exists in the various training mechanisms, thus building a comprehensive blueprint for the regulation mechanism behind transferability. Finally, we provide a general route for constructing better surrogates to boost transferability which optimizes both model smoothness and gradient similarity simultaneously, e.g., the combination of input gradient regularization and sharpness-aware minimization (SAM), validated by extensive experiments. In summary, we call for attention to the united impacts of these two factors for launching effective transfer attacks, rather than optimizing one while ignoring the other, and emphasize the crucial role of manipulating surrogate models.

For agents

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

get_harvested_code_for_paper("2307.07873")
get_code_for_paper("2307.07873")
have("2307.07873")

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

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

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

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

Connect an agent — have() is free.