SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2306.12685 · NeurIPS · 2023

Rethinking the Backward Propagation for Adversarial Transferability

Kun He, Xiaosen Wang, Kangheng Tong

arXiv · PDF · Open in the Atlas

Code that ran

6 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 1 has no contract verdict; 5 failures 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/2306.12685.json · badge: /api/ran/2306.12685.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
Trustworthy-AI-Group/RPA canonical (classifier label)
classifier basis: census
6 ran · 8 no recorded run
Trustworthy-AI-Group/BPA community
Papers with Code archive
0 ran · 1 no recorded run
FunctionStatusWhere it lives
conv1x1 Ran
ran; our contract draft was wrong, not the code
Trustworthy-AI-Group/RPA/models/ghost_resnet.py
code served (permissive licence) · get_code("d9def42110729a85")
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 Conv2d. 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)

# The function conv1x1 takes in_planes, out_planes, and stride as parameters
# It returns an nn.Conv2d layer configured for 1x1 convolution
# We need to provide valid integer arguments for these parameters

ARGS = {
    "in_planes": 3,
    "out_planes": 64,
    "stride": 1
}
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 Conv2d — a Conv2d output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Conv2d 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
conv3x3 Ran
ran; our contract draft was wrong, not the code
Trustworthy-AI-Group/RPA/models/ghost_resnet.py
code served (permissive licence) · get_code("160bb14bd76201b4")
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 Conv2d. 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_planes": 3,
    "out_planes": 64,
    "stride": 1,
    "groups": 1,
    "dilation": 1,
}
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 Conv2d — a Conv2d output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Conv2d 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
dct Ran
ran; our contract draft was wrong, not the code
Trustworthy-AI-Group/RPA/dct.py
code served (permissive licence) · get_code("29cfe60b8aa41fee")
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)

# Create a small input tensor for the DCT function
# Shape: (batch_size=2, sequence_length=4)
x = torch.randn(2, 4)

# Test both norm options
ARGS = {
    "x": x,
    "norm": None
}
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
load_weights Ran
ran on a synthesized input
Trustworthy-AI-Group/RPA/models/adv_inception_v3.py
code served (permissive licence) · get_code("3db00532c993361c")
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 dict. 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
import tempfile
import os

# Create a temporary numpy file with a sample weights dictionary
temp_dir = tempfile.mkdtemp()
weights_dict = {
    'layer1.weight': np.array([[1.0, 2.0], [3.0, 4.0]]),
    'layer1.bias': np.array([0.1, 0.2]),
    'layer2.weight': np.array([[5.0, 6.0, 7.0], [8.0, 9.0, 10.0]])
}

weight_file_path = os.path.join(temp_dir, 'weights.npy')
np.save(weight_file_path, weights_dict)

ARGS = {
    'weight_file': weight_file_path
}
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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
make_layers Ran
ran; our contract draft was wrong, not the code
Trustworthy-AI-Group/RPA/models/ghost_vgg.py
code served (permissive licence) · get_code("9c8a208b6e0b0e40")
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 Sequential. 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)

# The function takes a config list and a batch_norm boolean flag
# cfg should be a list of strings ('M' for MaxPool) and ints (number of filters)
# batch_norm should be a boolean

cfg = [64, 'M', 128, 'M', 256, 256, 'M', 512, 512, 'M', 512, 512, 'M']
batch_norm = True

ARGS = {
    'cfg': cfg,
    'batch_norm': batch_norm
}
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 Sequential — a Sequential output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Sequential output the recorded ndim 1 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
normalize Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Trustworthy-AI-Group/RPA/attack_eval_imagenet.py
code served (permissive licence) · get_code("a3268937736bc478")
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, 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

torch.manual_seed(0)

# The function normalizes a tensor x along dimension 1 (channels)
# using mean and standard deviation values from ms
# ms should be a list/tuple of two tuples: (means, stds)
# x should be a tensor with shape (batch_size, channels, ...)

x = torch.randn(2, 3)  # batch_size=2, channels=3

ms = [(0.485, 0.456, 0.406), (0.229, 0.224, 0.225)]

ARGS = {
    "x": x,
    "ms": ms
}
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 Tensor, 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
dct1 Not yet run
unverified (harvested, no recorded run)
Trustworthy-AI-Group/RPA/dct.py
code served (permissive licence) · get_code("aeed5d1d9b114dfb")
How it ran

no invocation recorded.

idct1 Not yet run
unverified (harvested, no recorded run)
Trustworthy-AI-Group/RPA/dct.py
code served (permissive licence) · get_code("b0140352504bce90")
How it ran

no invocation recorded.

linbp_backw_resnet50 Not yet run
unverified (harvested, no recorded run)
Trustworthy-AI-Group/BPA/utils.py
code served (permissive licence) · get_code("561e559369d81957")
How it ran

no invocation recorded.

pnasnet5large Not yet run
unverified (harvested, no recorded run)
Trustworthy-AI-Group/RPA/models/pnasnet.py
code served (permissive licence) · get_code("2bc94b2177d6547b")
How it ran

no invocation recorded.

resnet18 Not yet run
unverified (harvested, no recorded run)
Trustworthy-AI-Group/RPA/models/ghost_resnet.py
code served (permissive licence) · get_code("e6c0acd71f6122eb")
How it ran

no invocation recorded.

resnet18 Not yet run
unverified (harvested, no recorded run)
Trustworthy-AI-Group/RPA/models/resnet.py
code served (permissive licence) · get_code("426bc0e3032d5716")
How it ran

no invocation recorded.

senet154 Not yet run
unverified (harvested, no recorded run)
Trustworthy-AI-Group/RPA/models/senet.py
code served (permissive licence) · get_code("cc8e994f8f117773")
How it ran

no invocation recorded.

trans_incep Not yet run
unverified (harvested, no recorded run)
Trustworthy-AI-Group/RPA/attack_eval_imagenet.py
code served (permissive licence) · get_code("c530d5f24594c37a")
How it ran

no invocation recorded.

trans_pnas Not yet run
unverified (harvested, no recorded run)
Trustworthy-AI-Group/RPA/attack_eval_imagenet.py
code served (permissive licence) · get_code("ef20835b8d4b66b1")
How it ran

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 14 distinct functions with an identity, 9 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 4 the same month, 8 later) and 5 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
conv1x1 431 other papers
257 dated earlier, 5 the same month, 160 later, 8 same year, order not determinable, 1 undated · 38 only as an assembly brick
1409.1556 (2014-09)
Very Deep Convolutional Networks for Large-Scale Image Recognition
1506.01186 (2015-06)
Cyclical Learning Rates for Training Neural Networks
1507.05717 (2015-07)
An End-to-End Trainable Neural Network for Image-based Sequence Recognition and Its Application to Scene Text Recognition
and 428 more not named here
conv3x3 312 other papers
164 dated earlier, 3 the same month, 137 later, 7 same year, order not determinable, 1 undated · 31 only as an assembly brick
1409.1556 (2014-09)
Very Deep Convolutional Networks for Large-Scale Image Recognition
1507.05717 (2015-07)
An End-to-End Trainable Neural Network for Image-based Sequence Recognition and Its Application to Scene Text Recognition
1512.03385 (2015-12)
Deep Residual Learning for Image Recognition
and 309 more not named here
resnet18 95 other papers
48 dated earlier, 1 the same month, 44 later, 1 same year, order not determinable, 1 undated
1805.00907 (2018-05)
Glow: Graph Lowering Compiler Techniques for Neural Networks
1902.08153 (2019-02)
Learned Step Size Quantization
1904.01355 (2019-04)
FCOS: Fully Convolutional One-Stage Object Detection
and 92 more not named here
idct1 10 other papers
3 dated earlier, 7 later
2011.04823 (2020-11)
Language Through a Prism: A Spectral Approach for Multiscale Language Representations
2105.08997 (2021-05)
When Deep Classifiers Agree: Analyzing Correlations between Learning Order and Image Statistics
2209.11888 (2022-09)
JPEG Artifact Correction using Denoising Diffusion Restoration Models
and 7 more not named here
make_layers 9 other papers
1 dated earlier, 1 the same month, 7 later
2002.09564 (2020-02)
Towards Robust and Reproducible Active Learning Using Neural Networks
2306.13856 (2023-06)
Learning-to-Rank Meets Language: Boosting Language-Driven Ordering Alignment for Ordinal Classification
2308.06248 (2023-08)
FunnyBirds: A Synthetic Vision Dataset for a Part-Based Analysis of Explainable AI Methods
and 6 more not named here
dct1 4 other papers
4 later
2404.08255 (2024-04)
Practical Region-level Attack against Segment Anything Models
2404.10335 (2024-04)
Efficient Generation of Targeted and Transferable Adversarial Examples for Vision-Language Models Via Diffusion Models
2406.05531 (2024-06)
Enhancing Adversarial Transferability via Information Bottleneck Constraints
and 1 more not named here
dct 3 other papers
3 later
2404.08255 (2024-04)
Practical Region-level Attack against Segment Anything Models
2406.05531 (2024-06)
Enhancing Adversarial Transferability via Information Bottleneck Constraints
2406.12814 (2024-06)
Dissecting Adversarial Robustness of Multimodal LM Agents
load_weights 2 other papers
2 dated earlier
1812.08008 (2018-12)
OpenPose: Realtime Multi-Person 2D Pose Estimation using Part Affinity Fields
2305.08192 (2023-05)
Diffusion Models for Imperceptible and Transferable Adversarial Attack
normalize 1 other paper
1 later
2608.11815 (2026-08)
Learning with Bilevel-Minimax Optimization for Efficient and Reliable Transfer Attacks

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

Transfer-based attacks generate adversarial examples on the surrogate model, which can mislead other black-box models without access, making it promising to attack real-world applications. Recently, several works have been proposed to boost adversarial transferability, in which the surrogate model is usually overlooked. In this work, we identify that non-linear layers (e.g. ReLU, max-pooling, etc.) truncate the gradient during backward propagation, making the gradient w.r.t. input image imprecise to the loss function. We hypothesize and empirically validate that such truncation undermines the transferability of adversarial examples. Based on these findings, we propose a novel method called Backward Propagation Attack (BPA) to increase the relevance between the gradient w.r.t. input image and loss function so as to generate adversarial examples with higher transferability. Specifically, BPA adopts a non-monotonic function as the derivative of ReLU and incorporates softmax with temperature to smooth the derivative of max-pooling, thereby mitigating the information loss during the backward propagation of gradients. Empirical results on the ImageNet dataset demonstrate that not only does our method substantially boost the adversarial transferability, but it is also general to existing transfer-based attacks. Code is available at https://github.com/Trustworthy-AI-Group/RPA.

For agents

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

get_harvested_code_for_paper("2306.12685")
get_code_for_paper("2306.12685")
have("2306.12685")

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

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

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

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

Connect an agent — have() is free.