Mind the box: l₁-APGD for sparse adversarial attacks on image classifiers

Francesco Croce, Matthias Hein
3/1/2021
81 citations
cs.LGcs.CV

Official code: fra31/auto-attack (754 stars, Python, MIT, last commit 2024-05-16). 1 more implementation below.

Abstract

We show that when taking into account also the image domain $[0,1]^d$, established $l_1$-projected gradient descent (PGD) attacks are suboptimal as they do not consider that the effective threat model is the intersection of the $l_1$-ball and $[0,1]^d$. We study the expected sparsity of the steepest descent step for this effective threat model and show that the exact projection onto this set is computationally feasible and yields better performance.

Show full abstract

Moreover, we propose an adaptive form of PGD which is highly effective even with a small budget of iterations. Our resulting $l_1$-APGD is a strong white-box attack showing that prior works overestimated their $l_1$-robustness. Using $l_1$-APGD for adversarial training we get a robust classifier with SOTA $l_1$-robustness. Finally, we combine $l_1$-APGD and an adaptation of the Square Attack to $l_1$ into $l_1$-AutoAttack, an ensemble of attacks which reliably assesses adversarial robustness for the threat model of $l_1$-ball intersected with $[0,1]^d$.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
fra31/auto-attackOfficial754PythonMIT2024-05-16
jeromerony/adversarial-libraryOfficial168PythonBSD-3-Clause2025-11-20
fra31/auto-attackOfficial100%
MIT

Code relative to "Reliable evaluation of adversarial robustness with an ensemble of diverse parameter-free attacks"

754115PythonFeb 17, 20202 years agoMIT
adversarial-attacksadversarial-defensesadversarial-robustness
PyTorchBSD-3-Clause

Library containing PyTorch implementations of various adversarial attacks and resources

16821PythonNov 24, 20201 years agoBSD-3-Clause
adversarial-attacksadversarial-examplesmachine-learningpytorch

Similar Papers

Cite this paper

@article{croce2021mind,
  title  = {Mind the box: l₁-APGD for sparse adversarial attacks on image classifiers},
  author = {Francesco Croce and Matthias Hein},
  year   = {2021},
  eprint = {2103.01208},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2103.01208}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2103.01208.svg)](https://codeofpaper.com/paper/2103.01208)

Discussion