Indicators of Attack Failure: Debugging and Improving Optimization of Adversarial Examples

Maura Pintor, Luca Demetrio, Angelo Sotgiu, Ambra Demontis, Nicholas Carlini +2 more
6/18/2021
40 citations
cs.LGcs.CRcs.CV

Official code: pralab/IndicatorsOfAttackFailure (19 stars, Python, GPL-3.0, last commit 2022-05-23). Most starred: Trusted-AI/adversarial-robustness-toolbox, a community implementation (6,301 stars, Python, MIT, last commit 2025-12-12, 332× the official stars). 1 more implementation below.

Abstract

Evaluating robustness of machine-learning models to adversarial examples is a challenging problem. Many defenses have been shown to provide a false sense of robustness by causing gradient-based attacks to fail, and they have been broken under more rigorous evaluations.

Show full abstract

Although guidelines and best practices have been suggested to improve current adversarial robustness evaluations, the lack of automatic testing and debugging tools makes it difficult to apply these recommendations in a systematic manner. In this work, we overcome these limitations by: (i) categorizing attack failures based on how they affect the optimization of gradient-based attacks, while also unveiling two novel failures affecting many popular attack implementations and past evaluations; (ii) proposing six novel indicators of failure, to automatically detect the presence of such failures in the attack optimization process; and (iii) suggesting a systematic protocol to apply the corresponding fixes. Our extensive experimental analysis, involving more than 15 models in 3 distinct application domains, shows that our indicators of failure can be used to debug and improve current adversarial robustness evaluations, thereby providing a first concrete step towards automatizing and systematizing them. Our open-source code is available at: https://github.com/pralab/IndicatorsOfAttackFailure.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
pralab/IndicatorsOfAttackFailureOfficial19PythonGPL-3.02022-05-23
Trusted-AI/adversarial-robustness-toolboxCommunity6,301PythonMIT2025-12-12
GPL-3.0

Indicators of Attack Failure: Debugging and Improving Optimization of Adversarial Examples

194Python, ShellJun 1, 20214 years agoGPL-3.0
MIT

Adversarial Robustness Toolbox (ART) - Python Library for Machine Learning Security - Evasion, Poisoning, Extraction, Inference - Red and Blue Teams

6,3011,354Python, ShellMar 15, 201811 months agoMIT
adversarial-attacksadversarial-examplesadversarial-machine-learningaiartificial-intelligence+12 more

Similar Papers

Cite this paper

@article{pintor2021indicators,
  title  = {Indicators of Attack Failure: Debugging and Improving Optimization of Adversarial Examples},
  author = {Maura Pintor and Luca Demetrio and Angelo Sotgiu and Ambra Demontis and Nicholas Carlini and Battista Biggio and Fabio Roli},
  year   = {2021},
  eprint = {2106.09947},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2106.09947}
}

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

Discussion