SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2307.07859 · ICCV · 2023

Unified Adversarial Patch for Cross-modal Attacks in the Physical World

Jie Yu, Xingxing Wei, Yao Huang, Yitong Sun

arXiv · PDF · Open in the Atlas

Code that ran

7 of 10 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; 1 honoured the contract we drafted, 0 violated it and 6 have no contract verdict; 0 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/2307.07859.json · badge: /api/ran/2307.07859.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
aries-iai/cross-modal_patch_attack community (classifier label)
classifier basis not recorded on the link
7 ran · 3 no recorded run
FunctionStatusWhere it lives
autopad Ran
ran, honoured the contract we drafted
aries-iai/cross-modal_patch_attack/yolov3/models/common.py
pointer only (licence: MIT); the stored copy get_code serves, from yang-0201/YOLOv6_pro, is pointer only (licence: GPL-3.0) · get_code("988a3c854b1b13d0")
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 yang-0201/YOLOv6_pro, and GPL-3.0, as GitHub detects it on that repository, is not in the permissive set Syntology serves inline. 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.

compute_dis Ran
ran on a synthesized input
aries-iai/cross-modal_patch_attack/attack_utils/spline.py
code served (permissive licence) · get_code("6e2c4123ff49ea80")
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 float, 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
import numpy as np

torch.manual_seed(0)

# The function compute_dis takes three parameters: p, px, py
# It accesses p[0] and p[1], so p needs to be indexable with numeric indices
# px and py are used in arithmetic operations (subtraction, power, addition)

# p should be indexable with [0] and [1]
p = [3.0, 4.0]

# px and py are numeric values used in distance calculation
px = 0.0
py = 0.0

ARGS = {
    "p": p,
    "px": px,
    "py": py
}
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 float, 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
cross Ran
ran on a synthesized input
aries-iai/cross-modal_patch_attack/attack_utils/spline.py
code served (permissive licence) · get_code("30a8ee34752d3fb4")
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 float, 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
import numpy as np

torch.manual_seed(0)

# The cross function takes 4 parameters: p1, p2, p3, p4
# Each parameter is accessed with [0] and [1] indexing, suggesting they are sequences/arrays/tensors
# with at least 2 elements (x and y coordinates)

# Create simple 2D points as lists or numpy arrays
p1 = [3.0, 4.0]
p2 = [1.0, 2.0]
p3 = [5.0, 6.0]
p4 = [2.0, 1.0]

ARGS = {
    "p1": p1,
    "p2": p2,
    "p3": p3,
    "p4": p4
}
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 float, 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
get_state Ran
ran on a synthesized input
aries-iai/cross-modal_patch_attack/spline_DE_attack.py
code served (permissive licence) · get_code("aab637864c086647")
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. 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

# The function takes img_path and bbox as parameters
# img_path is used as a string path but the function doesn't actually load/read it
# bbox is used for bounding box coordinates [x_left, y_up, x_right, y_below]

# Create a minimal img_path (string, not actually used for file I/O)
img_path = "/fake/path/to/image.jpg"

# Create a bbox as a list/array with coordinates
# bbox format: [x_left, y_up, x_right, y_below]
# Using reasonable values that create non-zero width and height
bbox = [100, 150, 200, 300]

ARGS = {
    "img_path": img_path,
    "bbox": bbox
}
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 tuple — a tuple 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
ifcross Ran
ran on a synthesized input
aries-iai/cross-modal_patch_attack/attack_utils/spline.py
code served (permissive licence) · get_code("89d475d77e7aa9a2")
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 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

torch.manual_seed(0)

# The function ifcross checks if two points p1 and p2 are on opposite sides
# of a line passing through point p with direction vector (px, py).
# It takes 5 parameters: p1, p2, p, px, py
# Each of p1, p2, p should be indexable with [0] and [1] (x, y coordinates)
# px and py are scalar coordinates

p1 = [1.0, 2.0]
p2 = [3.0, 4.0]
p = [0.0, 0.0]
px = 1.0
py = 1.0

ARGS = {
    "p1": p1,
    "p2": p2,
    "p": p,
    "px": px,
    "py": py
}
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 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
img_process Ran
ran on a synthesized input
aries-iai/cross-modal_patch_attack/attack_utils/multi_angles_transform_inf.py
code served (permissive licence) · get_code("9f92d6e6f7a4cf15")
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 4, dtype family float, shape (1, 3, 3, 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
from PIL import Image
import tempfile
import os

torch.manual_seed(0)

# Create a temporary directory for the test image
temp_dir = tempfile.mkdtemp()

# Create a small test image (4x3 pixels, RGB)
test_image = Image.new('RGB', (4, 3), color=(255, 0, 0))
img_path = os.path.join(temp_dir, 'test_image.png')
test_image.save(img_path)

ARGS = {
    'img_path': img_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, torch, torchvision — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 4, dtype family float, shape (1, 3, 3, 4) — shape (1, 3, 3, 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
limit_region Ran
ran on a synthesized input
aries-iai/cross-modal_patch_attack/spline_DE_attack.py
code served (permissive licence) · get_code("ca197255ebcd19f7")
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 1, 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

torch.manual_seed(0)

# bbox is a bounding box represented as a sequence with 4 elements: [x_left, y_top, x_right, y_bottom]
# The function performs arithmetic operations on these elements
bbox = [10.0, 20.0, 50.0, 100.0]

ARGS = {
    "bbox": bbox
}
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 1, 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
custom Not yet run
unverified (harvested, no recorded run)
aries-iai/cross-modal_patch_attack/yolov3/hubconf.py
code served (permissive licence) · get_code("e29634d93c5178f8")
How it ran

no invocation recorded.

yolov3 Not yet run
unverified (harvested, no recorded run)
aries-iai/cross-modal_patch_attack/yolov3/hubconf.py
code served (permissive licence) · get_code("933e3e3518a0fbcc")
How it ran

no invocation recorded.

yolov3_spp Not yet run
unverified (harvested, no recorded run)
aries-iai/cross-modal_patch_attack/yolov3/hubconf.py
code served (permissive licence) · get_code("bc00ccb584e433ec")
How it ran

no invocation recorded.

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 4 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 4 later) and 6 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
autopad 23 other papers
13 dated earlier, 9 later, 1 same year, order not determinable · 1 only as an assembly brick
1311.2524 (2013-11)
Rich feature hierarchies for accurate object detection and semantic segmentation
1703.07402 (2017-03)
Simple Online and Realtime Tracking with a Deep Association Metric
1804.02767 (2018-04)
YOLOv3: An Incremental Improvement
and 20 more not named here
custom 1 other paper
1 later
2402.15853 (2024-02)
RAUCA: A Novel Physical Adversarial Attack on Vehicle Detectors via Robust and Accurate Camouflage Generation
yolov3 1 other paper
1 later
2402.15853 (2024-02)
RAUCA: A Novel Physical Adversarial Attack on Vehicle Detectors via Robust and Accurate Camouflage Generation
yolov3_spp 1 other paper
1 later
2402.15853 (2024-02)
RAUCA: A Novel Physical Adversarial Attack on Vehicle Detectors via Robust and Accurate Camouflage Generation

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

Recently, physical adversarial attacks have been presented to evade DNNs-based object detectors. To ensure the security, many scenarios are simultaneously deployed with visible sensors and infrared sensors, leading to the failures of these single-modal physical attacks. To show the potential risks under such scenes, we propose a unified adversarial patch to perform cross-modal physical attacks, i.e., fooling visible and infrared object detectors at the same time via a single patch. Considering different imaging mechanisms of visible and infrared sensors, our work focuses on modeling the shapes of adversarial patches, which can be captured in different modalities when they change. To this end, we design a novel boundary-limited shape optimization to achieve the compact and smooth shapes, and thus they can be easily implemented in the physical world. In addition, to balance the fooling degree between visible detector and infrared detector during the optimization process, we propose a score-aware iterative evaluation, which can guide the adversarial patch to iteratively reduce the predicted scores of the multi-modal sensors. We finally test our method against the one-stage detector: YOLOv3 and the two-stage detector: Faster RCNN. Results show that our unified patch achieves an Attack Success Rate (ASR) of 73.33% and 69.17%, respectively. More importantly, we verify the effective attacks in the physical world when visible and infrared sensors shoot the objects under various settings like different angles, distances, postures, and scenes.

For agents

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

get_harvested_code_for_paper("2307.07859")
get_code_for_paper("2307.07859")
have("2307.07859")

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

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

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

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

Connect an agent — have() is free.