SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2508.00649 · ICCV · 2025

Revisiting Adversarial Patch Defenses on Object Detectors: Unified Evaluation, Large-Scale Dataset, and New Insights

Chong Zhang, Zhengyu Zhao, Qian Wang, Cong Wang, Chao Shen, Chen Ma, Jiahao Sun, Junhao Zheng, Chenhao Lin

arXiv · PDF · Open in the Atlas

Code that ran

8 of 8 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; 2 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 6 failures of our instrument; 0 no recorded run), measured 2026-11-24; 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/2508.00649.json · badge: /api/ran/2508.00649.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
Gandolfczjh/APDE canonical (classifier label)
classifier basis: census
8 ran · 0 no recorded run
FunctionStatusWhere it lives
autopad Ran
ran, honoured the contract we drafted
Gandolfczjh/APDE/defense/NAPGuard/models/common.py
pointer only (licence: NONE); the stored copy get_code serves, from LiuZhu-CV/DEAL, is pointer only (licence: NONE) · get_code("86db6b7ab1646a7c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Gandolfczjh/APDE 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.

dice_coeff Ran
ran; our contract draft was wrong, not the code
Gandolfczjh/APDE/defense/SegmentAndComplete/dice_loss.py
pointer only (licence: NONE) · get_code("532ec84883eb90ab")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Gandolfczjh/APDE 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.

feature_shield Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Gandolfczjh/APDE/defense/NAPGuard/val_NAPGuard.py
pointer only (licence: NONE) · get_code("2c7d8c046cfd2097")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Gandolfczjh/APDE 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.

parse_labels Ran
ran; our contract draft was wrong, not the code
Gandolfczjh/APDE/apde_data/dataset.py
pointer only (licence: NONE) · get_code("b661522c920e49fb")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Gandolfczjh/APDE 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.

precision Ran
ran; our contract draft was wrong, not the code
Gandolfczjh/APDE/defense/SegmentAndComplete/dice_loss.py
pointer only (licence: NONE) · get_code("0a217b21ea93d8c9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Gandolfczjh/APDE 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.

recall Ran
ran; our contract draft was wrong, not the code
Gandolfczjh/APDE/defense/SegmentAndComplete/dice_loss.py
pointer only (licence: NONE) · get_code("ea148596b9de2135")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Gandolfczjh/APDE 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.

resolve_file Ran
ran; our contract draft was wrong, not the code
Gandolfczjh/APDE/apde_data/dataset.py
pointer only (licence: NONE) · get_code("84a52cb49a40917d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Gandolfczjh/APDE 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.

smooth_BCE Ran
ran, honoured the contract we drafted
Gandolfczjh/APDE/defense/NAPGuard/utils/loss.py
pointer only (licence: NONE) · get_code("386a04c4b6c96c88")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Gandolfczjh/APDE 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.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 3 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 0 the same month, 0 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
smooth_BCE 16 other papers
16 dated earlier
1611.02644 (2016-11)
Multispectral Deep Neural Networks for Pedestrian Detection
2108.11250 (2021-08)
YOLOP: You Only Look Once for Panoptic Driving Perception
2202.01811 (2022-02)
ObjectSeeker: Certifiably Robust Object Detection against Patch Hiding Attacks via Patch-agnostic Masking
and 13 more not named here
autopad 12 other papers
12 dated earlier · 2 only as an assembly brick
1512.03385 (2015-12)
Deep Residual Learning for Image Recognition
1611.02644 (2016-11)
Multispectral Deep Neural Networks for Pedestrian Detection
2004.10934 (2020-04)
YOLOv4: Optimal Speed and Accuracy of Object Detection
and 9 more not named here
dice_coeff 1 other paper
1 dated earlier
2104.09701 (2021-04)
Free-form tumor synthesis in computed tomography images via richer generative adversarial network

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-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Developing reliable defenses against patch attacks on object detectors has attracted increasing interest. However, we identify that existing defense evaluations lack a unified and comprehensive framework, resulting in inconsistent and incomplete assessments of current methods. To address this issue, we revisit 11 representative defenses and present the first patch defense benchmark, involving 2 attack goals, 13 patch attacks, 11 object detectors, and 4 diverse metrics. This leads to the large-scale adversarial patch dataset with 94 types of patches and 94,000 images. Our comprehensive analyses reveal new insights: (1) The difficulty in defending against naturalistic patches lies in the data distribution, rather than the commonly believed high frequencies. Our new dataset with diverse patch distributions can be used to improve existing defenses by 15.09% AP@0.5. (2) The average precision of the attacked object, rather than the commonly pursued patch detection accuracy, shows high consistency with defense performance. (3) Adaptive attacks can substantially bypass existing defenses, and defenses with complex/stochastic models or universal patch properties are relatively robust. We hope that our analyses will serve as guidance on properly evaluating patch attacks/defenses and advancing their design. Code and dataset are available at https://github.com/Gandolfczjh/APDE, where we will keep integrating new attacks/defenses.

For agents

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

get_harvested_code_for_paper("2508.00649")
get_code_for_paper("2508.00649")
have("2508.00649")

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

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

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

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

Connect an agent — have() is free.