Papers › Sparse patches adversarial attacks via extrapolating point-wise information

Sparse patches adversarial attacks via extrapolating point-wise information

25 Nov 2024arXiv:2411.16162archive 2025-07-28

Yaniv Nemcovsky, Avi Mendelson, Chaim Baskin

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 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 \url{https://github.com/yanemcovsky/SparsePatches.git}

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2411.16162")

Code

Syntology Ran 3 of 26 code samples harvested from 1 repository linked to this paper; 23 have no recorded run. Of those that ran: 2 ran · our draft was wrong; 1 ran · fixture could not drive it.

By repository: official repository: 26 samples from 1 repository, 3 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

yanemcovsky/sparsepatches officialmentioned in paperpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

26 samples harvested; 3 ran; 0 honoured the contract we drafted; 23 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

2ran · our draft was wrong
1ran · fixture could not drive it
23unverified

Licence: 26 of the 26 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from yanemcovsky/sparsepatches. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

ResNet34 yanemcovsky/sparsepatches/models/cifar10/resnet.py official repository ran · our draft was wrong no licence file found · pointer only · 92df69bfd3a2a190 · report
clip_image_values yanemcovsky/SparsePatches/attacks/SF/utils.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · 58e05164be3f07cb · report
prox_pixel yanemcovsky/sparsepatches/attacks/SAHomotopy/attack.py official repository ran · fixture could not drive it no licence file found · pointer only · 9d39a04fb10e4cc3 · report
CWLoss yanemcovsky/sparsepatches/attacks/SAHomotopy/attack.py official repository unverified no licence file found · pointer only · a2b9ee409e65e7a2 · report
CWLoss yanemcovsky/sparsepatches/attacks/SAHomotopy/attack.py official repository unverified no licence file found · pointer only · 2379910c53e2ed47 · report
F yanemcovsky/sparsepatches/attacks/SAHomotopy/attack.py official repository unverified no licence file found · pointer only · 85a21969756306fa · report
F yanemcovsky/sparsepatches/attacks/SAHomotopy/attack.py official repository unverified no licence file found · pointer only · e2c5ff4fa9ef0826 · report
Homotopy yanemcovsky/sparsepatches/attacks/SAHomotopy/attack.py official repository unverified no licence file found · pointer only · 0235b3a7db71daaa · report
ResNet18 yanemcovsky/sparsepatches/models/cifar10/resnet.py official repository unverified no licence file found · pointer only · 4842fd34ecb61152 · report
ResNet18 yanemcovsky/SparsePatches/models/cifar10/resnet.py official repository unverified no licence file found · pointer only · 861cf376d1226ed5 · report
ResNet34 yanemcovsky/SparsePatches/models/cifar10/resnet.py official repository unverified no licence file found · pointer only · a44db322b52fd5bb · report
ResNet50 yanemcovsky/sparsepatches/models/cifar10/resnet.py official repository unverified no licence file found · pointer only · 8e83bc6d19a7d996 · report
ResNet50 yanemcovsky/SparsePatches/models/cifar10/resnet.py official repository unverified no licence file found · pointer only · 5b7d80579a854622 · report
after_attack yanemcovsky/sparsepatches/attacks/SAHomotopy/attack.py official repository unverified no licence file found · pointer only · f4a098b394100f28 · report
after_attack yanemcovsky/sparsepatches/attacks/SAHomotopy/attack.py official repository unverified no licence file found · pointer only · db3499b998ec5515 · report
compute_run_args yanemcovsky/SparsePatches/parser.py official repository unverified no licence file found · pointer only · 9bacc39d0c970f9b · report
deepfool yanemcovsky/SparsePatches/attacks/SF/deepfool.py official repository unverified no licence file found · pointer only · f289915c7cc84fc5 · report
flat2square yanemcovsky/SparsePatches/attacks/SIA/cornersearch_attacks.py official repository unverified no licence file found · pointer only · 2701b68cba70825d · report
homotopy yanemcovsky/sparsepatches/attacks/SAHomotopy/attack.py official repository unverified no licence file found · pointer only · 1f152334e797e0eb · report
inception_v3 yanemcovsky/SparsePatches/models/imagenet/inception_v3.py official repository unverified no licence file found · pointer only · 89ff72f9a51a6b5a · report
inv_tf yanemcovsky/SparsePatches/attacks/SF/utils.py official repository unverified no licence file found · pointer only · 4cc853931342a664 · report
nmAPG yanemcovsky/sparsepatches/attacks/SAHomotopy/attack.py official repository unverified no licence file found · pointer only · c3f72bcd75fa91ad · report
onepixel_perturbation yanemcovsky/SparsePatches/attacks/SIA/cornersearch_attacks.py official repository unverified no licence file found · pointer only · 1874404dae88b799 · report
onepixel_perturbation_image yanemcovsky/SparsePatches/attacks/SIA/cornersearch_attacks.py official repository unverified no licence file found · pointer only · c9ca34596232d79b · report
search_lambda yanemcovsky/sparsepatches/attacks/SAHomotopy/attack.py official repository unverified no licence file found · pointer only · 1c11a323cdb59f22 · report
valid_bounds yanemcovsky/SparsePatches/attacks/SF/utils.py official repository unverified no licence file found · pointer only · 657e8dd167ee4c4b · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections