SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2106.06027 · 2021

Sparse and Imperceptible Adversarial Attack via a Homotopy Algorithm

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 5 functions out of this paper's own repositories and ran 1 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.

RepositoryRoleRan
VITA-Group/SparseADV_Homotopy canonical 1 of 5
FunctionStatusWhere it lives
prox_pixel Ran VITA-Group/SparseADV_Homotopy/demo_attack.py
code served (permissive licence) · get_code("9d39a04fb10e4cc3")
F Not yet run VITA-Group/SparseADV_Homotopy/demo_attack.py
code served (permissive licence) · get_code("e2c5ff4fa9ef0826")
after_attack Not yet run VITA-Group/SparseADV_Homotopy/demo_attack.py
code served (permissive licence) · get_code("db3499b998ec5515")
inception_v3 Not yet run VITA-Group/SparseADV_Homotopy/inception_v3.py
code served (permissive licence) · get_code("46b63986b5f8e00b")
load_img Not yet run VITA-Group/SparseADV_Homotopy/datasets.py
code served (permissive licence) · get_code("fd25cb543e1e2c37")

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 adversarial attacks can fool deep neural networks (DNNs) by only perturbing a few pixels (regularized by l_0 norm). Recent efforts combine it with another l_infty imperceptible on the perturbation magnitudes. The resultant sparse and imperceptible attacks are practically relevant, and indicate an even higher vulnerability of DNNs that we usually imagined. However, such attacks are more challenging to generate due to the optimization difficulty by coupling the l_0 regularizer and box constraints with a non-convex objective. In this paper, we address this challenge by proposing a homotopy algorithm, to jointly tackle the sparsity and the perturbation bound in one unified framework. Each iteration, the main step of our algorithm is to optimize an l_0-regularized adversarial loss, by leveraging the nonmonotone Accelerated Proximal Gradient Method (nmAPG) for nonconvex programming; it is followed by an l_0 change control step, and an optional post-attack step designed to escape bad local minima. We also extend the algorithm to handling the structural sparsity regularizer. We extensively examine the effectiveness of our proposed homotopy attack for both targeted and non-targeted attack scenarios, on CIFAR-10 and ImageNet datasets. Compared to state-of-the-art methods, our homotopy attack leads to significantly fewer perturbations, e.g., reducing 42.91% on CIFAR-10 and 75.03% on ImageNet (average case, targeted attack), at similar maximal perturbation magnitudes, when still achieving 100% attack success rates. Our codes are available at: https://github.com/VITA-Group/SparseADV_Homotopy.

For agents

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

get_harvested_code_for_paper("2106.06027")
get_code_for_paper("2106.06027")
have("2106.06027")

Connect an agent — have() is free.