Square Attack: a query-efficient black-box adversarial attack via random search

Maksym Andriushchenko, Francesco Croce, Nicolas Flammarion, Matthias Hein
11/29/2019
cs.LGcs.CRcs.CV

Official code: max-andr/square-attack (170 stars, BSD-3-Clause, last commit 2020-07-02).

Abstract

We propose the Square Attack, a score-based black-box $l_2$- and $l_\infty$-adversarial attack that does not rely on local gradient information and thus is not affected by gradient masking. Square Attack is based on a randomized search scheme which selects localized square-shaped updates at random positions so that at each iteration the perturbation is situated approximately at the boundary of the feasible set. Our method is significantly more query efficient and achieves a higher success rate compared to the state-of-the-art methods, especially in the untargeted setting. In particular, on ImageNet we improve the average query efficiency in the untargeted setting for various deep networks by a factor of at least $1.8$ and up to $3$ compared to the recent state-of-the-art $l_\infty$-attack of Al-Dujaili & O'Reilly. Moreover, although our attack is black-box, it can also outperform gradient-based white-box attacks on the standard benchmarks achieving a new state-of-the-art in terms of the success rate. The code of our attack is available at https://github.com/max-andr/square-attack.

View on arXivView PDF

Code Implementations(1)

BSD-3-Clause

Square Attack: a query-efficient black-box adversarial attack via random search [ECCV 2020]

17028PythonNov 26, 20196 years agoBSD-3-Clause
adversarial-attacksadversarial-robustnessblack-box-attacksrandom-searchrobustness+1 more

Similar Papers

Cite this paper

@article{andriushchenko2019square,
  title  = {Square Attack: a query-efficient black-box adversarial attack via random search},
  author = {Maksym Andriushchenko and Francesco Croce and Nicolas Flammarion and Matthias Hein},
  year   = {2019},
  eprint = {1912.00049},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1912.00049}
}

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/1912.00049.svg)](https://codeofpaper.com/paper/1912.00049)

Discussion