SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2411.16162 · NeurIPS · 2024

Sparse patches adversarial attacks via extrapolating point-wise information

Chaim Baskin, Avi Mendelson, Yaniv Nemcovsky

arXiv · PDF · Open in the Atlas

Code that ran

10 of 26 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; 10 failures of our instrument; 16 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/2411.16162.json · badge: /api/ran/2411.16162.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
yanemcovsky/SparsePatches canonical (classifier label)
classifier basis: census
8 ran · 4 no recorded run
yanemcovsky/sparsepatches canonical (classifier label)
classifier basis: classifier_2025
2 ran · 12 no recorded run
FunctionStatusWhere it lives
ResNet18 Ran
ran; our contract draft was wrong, not the code
yanemcovsky/SparsePatches/models/cifar10/resnet.py
pointer only (licence: NONE) · get_code("861cf376d1226ed5")
How it ran

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

ResNet34 Ran
ran; our contract draft was wrong, not the code
yanemcovsky/sparsepatches/models/cifar10/resnet.py
pointer only (licence: NONE) · get_code("92df69bfd3a2a190")
How it ran

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

ResNet34 Ran
ran; our contract draft was wrong, not the code
yanemcovsky/SparsePatches/models/cifar10/resnet.py
pointer only (licence: NONE) · get_code("a44db322b52fd5bb")
How it ran

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

ResNet50 Ran
ran; our contract draft was wrong, not the code
yanemcovsky/SparsePatches/models/cifar10/resnet.py
pointer only (licence: NONE) · get_code("5b7d80579a854622")
How it ran

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

clip_image_values Ran
ran; our contract draft was wrong, not the code
yanemcovsky/SparsePatches/attacks/SF/utils.py
pointer only (licence: NONE) · get_code("58e05164be3f07cb")
How it ran

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

deepfool Ran
ran; our contract draft was wrong, not the code
yanemcovsky/SparsePatches/attacks/SF/deepfool.py
pointer only (licence: NONE) · get_code("f289915c7cc84fc5")
How it ran

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

flat2square Ran
ran; our contract draft was wrong, not the code
yanemcovsky/SparsePatches/attacks/SIA/cornersearch_attacks.py
pointer only (licence: NONE) · get_code("2701b68cba70825d")
How it ran

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

inv_tf Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
yanemcovsky/SparsePatches/attacks/SF/utils.py
pointer only (licence: NONE) · get_code("4cc853931342a664")
How it ran

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

onepixel_perturbation Ran
ran; our contract draft was wrong, not the code
yanemcovsky/SparsePatches/attacks/SIA/cornersearch_attacks.py
pointer only (licence: NONE) · get_code("1874404dae88b799")
How it ran

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

prox_pixel Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
yanemcovsky/sparsepatches/attacks/SAHomotopy/attack.py
pointer only (licence: NONE) · get_code("9d39a04fb10e4cc3")
How it ran

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

CWLoss Not yet run
unverified (harvested, no recorded run)
yanemcovsky/sparsepatches/attacks/SAHomotopy/attack.py
pointer only (licence: NONE) · get_code("a2b9ee409e65e7a2")
How it ran

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

CWLoss Not yet run
unverified (harvested, no recorded run)
yanemcovsky/sparsepatches/attacks/SAHomotopy/attack.py
pointer only (licence: NONE) · get_code("2379910c53e2ed47")
How it ran

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

F Not yet run
unverified (harvested, no recorded run)
yanemcovsky/sparsepatches/attacks/SAHomotopy/attack.py
pointer only (licence: NONE) · get_code("85a21969756306fa")
How it ran

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

F Not yet run
unverified (harvested, no recorded run)
yanemcovsky/sparsepatches/attacks/SAHomotopy/attack.py
pointer only (licence: NONE) · get_code("e2c5ff4fa9ef0826")
How it ran

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

Homotopy Not yet run
unverified (harvested, no recorded run)
yanemcovsky/sparsepatches/attacks/SAHomotopy/attack.py
pointer only (licence: NONE) · get_code("0235b3a7db71daaa")
How it ran

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

ResNet18 Not yet run
unverified (harvested, no recorded run)
yanemcovsky/sparsepatches/models/cifar10/resnet.py
pointer only (licence: NONE) · get_code("4842fd34ecb61152")
How it ran

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

ResNet50 Not yet run
unverified (harvested, no recorded run)
yanemcovsky/sparsepatches/models/cifar10/resnet.py
pointer only (licence: NONE) · get_code("8e83bc6d19a7d996")
How it ran

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

after_attack Not yet run
unverified (harvested, no recorded run)
yanemcovsky/sparsepatches/attacks/SAHomotopy/attack.py
pointer only (licence: NONE) · get_code("f4a098b394100f28")
How it ran

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

after_attack Not yet run
unverified (harvested, no recorded run)
yanemcovsky/sparsepatches/attacks/SAHomotopy/attack.py
pointer only (licence: NONE) · get_code("db3499b998ec5515")
How it ran

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

compute_run_args Not yet run
unverified (harvested, no recorded run)
yanemcovsky/SparsePatches/parser.py
pointer only (licence: NONE) · get_code("9bacc39d0c970f9b")
How it ran

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

homotopy Not yet run
unverified (harvested, no recorded run)
yanemcovsky/sparsepatches/attacks/SAHomotopy/attack.py
pointer only (licence: NONE) · get_code("1f152334e797e0eb")
How it ran

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

inception_v3 Not yet run
unverified (harvested, no recorded run)
yanemcovsky/SparsePatches/models/imagenet/inception_v3.py
pointer only (licence: NONE) · get_code("89ff72f9a51a6b5a")
How it ran

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

nmAPG Not yet run
unverified (harvested, no recorded run)
yanemcovsky/sparsepatches/attacks/SAHomotopy/attack.py
pointer only (licence: NONE) · get_code("c3f72bcd75fa91ad")
How it ran

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

onepixel_perturbation_image Not yet run
unverified (harvested, no recorded run)
yanemcovsky/SparsePatches/attacks/SIA/cornersearch_attacks.py
pointer only (licence: NONE) · get_code("c9ca34596232d79b")
How it ran

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

search_lambda Not yet run
unverified (harvested, no recorded run)
yanemcovsky/sparsepatches/attacks/SAHomotopy/attack.py
pointer only (licence: NONE) · get_code("1c11a323cdb59f22")
How it ran

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

valid_bounds Not yet run
unverified (harvested, no recorded run)
yanemcovsky/SparsePatches/attacks/SF/utils.py
pointer only (licence: NONE) · get_code("657e8dd167ee4c4b")
How it ran

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

Also present in other papers' code

Of 26 samples lifted from this paper's linked repositories, 26 carry a function identity and 0 do not. Of the 20 distinct functions with an identity, 7 are also present in other papers whose code we hold (7 with at least one paper dated earlier, 0 the same month, 1 later) and 13 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
inception_v3 6 other papers
6 dated earlier
1812.00332 (2018-12)
ProxylessNAS: Direct Neural Architecture Search on Target Task and Hardware
1904.01160 (2019-04)
Curls & Whey: Boosting Black-Box Adversarial Attacks
1904.03441 (2019-04)
Iterative Normalization: Beyond Standardization towards Efficient Whitening
and 3 more not named here
clip_image_values 3 other papers
2 dated earlier, 1 later
1811.02248 (2018-11)
SparseFool: a few pixels make a big difference
2308.03163 (2023-08)
CGBA: Curvature-aware Geometric Black-box Attack
2503.12827 (2025-03)
GSBA K : top-K GEOMETRIC SCORE-BASED BLACK-BOX ATTACK
inv_tf 3 other papers
3 dated earlier
1811.02248 (2018-11)
SparseFool: a few pixels make a big difference
2003.06468 (2020-03)
GeoDA: a geometric framework for black-box adversarial attacks
2308.03163 (2023-08)
CGBA: Curvature-aware Geometric Black-box Attack
F
brick of this paper's assembly: loss
1 other paper
1 dated earlier
2106.06027 (2021-06)
Sparse and Imperceptible Adversarial Attack via a Homotopy Algorithm
after_attack
brick of this paper's assembly: update_rule
1 other paper
1 dated earlier
2106.06027 (2021-06)
Sparse and Imperceptible Adversarial Attack via a Homotopy Algorithm
prox_pixel
brick of this paper's assembly: update_rule
1 other paper
1 dated earlier
2106.06027 (2021-06)
Sparse and Imperceptible Adversarial Attack via a Homotopy Algorithm
valid_bounds 1 other paper
1 dated earlier
1811.02248 (2018-11)
SparseFool: a few pixels make a big difference

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

Sparse and patch adversarial attacks were previously shown to be applicable in realistic settings and are considered a security risk to autonomous systems. Sparse adversarial perturbations constitute a setting in which the adversarial perturbations are limited to affecting a relatively small number of points in the input. Patch adversarial attacks denote the setting where the sparse attacks are limited to a given structure, i.e., sparse patches with a given shape and number. However, previous patch adversarial attacks do not simultaneously optimize multiple patches' locations and perturbations. This work suggests a novel approach for sparse patches adversarial attacks via point-wise trimming of dense adversarial perturbations. Our approach enables simultaneous optimization of multiple sparse patches' locations and perturbations for any given number and shape. Moreover, our approach is also applicable for standard sparse adversarial attacks, where we show that it significantly improves the state-of-the-art over multiple extensive settings. A reference implementation of the proposed method and the reported experiments is provided at https://github.com/yanemcovsky/SparsePatches.git.

For agents

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

get_harvested_code_for_paper("2411.16162")
get_code_for_paper("2411.16162")
have("2411.16162")

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

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

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

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

Connect an agent — have() is free.