Towards Deep Learning Models Resistant to Adversarial Attacks
Paper · 2017 · Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt et al.
Summary
Deep networks can be fooled by adversarial examples: inputs changed so slightly that people see no difference, yet the model misclassifies them. Earlier defenses usually targeted specific known attacks and gave no clear guarantee. Madry et al. recast robustness as robust optimization. The model minimizes the expected loss after an adversary has picked the worst perturbation inside an allowed set, here an ℓ∞-ball around each input. In this min-max (saddle point) framing, an attack is the inner maximization and adversarial training is the outer minimization, which ties much prior work into one framework. Experiments on the loss landscape show that projected gradient descent (PGD) with random restarts finds local maxima of very similar value. The authors therefore argue that PGD is a universal first-order adversary and train against it. Networks trained this way on MNIST and CIFAR10 resist a broad suite of white-box and black-box attacks. Larger model capacity proves important for robustness. The work set a principled baseline for robust training and for honest robustness evaluation.
Key points
- The central object is a saddle point problem: minimize over parameters the expected maximum loss over perturbations δ in an allowed set S. FGSM is a one-step approximation of the inner maximization, and PGD is the multi-step version.
- The MNIST model, trained against ε = 0.3 PGD, keeps above 89% accuracy against the strongest attacks in the test suite and above 95% under black-box/transfer attacks.
- The CIFAR10 model, trained against ε = 8 PGD, reaches 46% under white-box attack and 64% under transfer attack, with 87.3% accuracy on natural inputs.
- Robustness needs more capacity than plain classification. A robust decision boundary is more complex than one that only separates clean points.
- PGD badly overestimates the robustness of the ℓ2-evaluated MNIST models because learned threshold filters mask gradients. A gradient-free decision-based attack (DBA, 2000 steps) exposes the weakness. Code and models were released as the public mnist_challenge and cifar10_challenge.
Interesting ideas
- I1. Fix the threat model first, as an explicit set of allowed changes, and then measure worst-case behavior inside that set. This gives a guarantee instead of a list of patched attacks.
- I2. Train on the hardest example found by a multi-step search with random restarts. Use the observation that restarts reach maxima of similar value as evidence that the search is strong enough.
- I3. A single gradient-based attacker can overstate robustness when gradients are masked, so evaluation should include an attacker that works differently. Sanity bounds also help, such as the paper's note that perturbing each pixel by more than 0.5 allows a uniform gray image.
- I4. Robust behavior can require more model capacity than clean accuracy does. Scaling decisions should therefore be made with the robust metric, not the clean one.
- I5. Releasing frozen models as an open challenge lets outsiders try to break them, which gives a more trustworthy estimate of robustness than self-evaluation.
For Mova
How these ideas could serve Mova, our small open language model — its files, stages and tests:
- I1 (learn): define a set of meaning-preserving edits (synonym swap, clause reordering, passive/active) and report each stage's worst-case accuracy over that set, not just its average.
- I2 (tree): during perceptron/gparse training, search each sentence's paraphrase neighborhood for the variant that breaks the parse worst and add it to training. Check with several restarts that the found failures plateau.
- I3 (learn): pair every robustness claim with a differently built adversary and an impossibility-style negative control, so inflated scores are caught early.
- I4 (tree): when sizing gparse, compare model sizes on perturbed treebank sentences as well as clean LAS, since the gap may only show up there.
- I5 (answer): publish frozen readers for fables and maths word problems with a leaderboard of community-made trick questions, and feed the successful ones back into tests.
Institutions
Fields, topics and concepts
Shelves 2The field of science this work belongs to (OpenAlex fields).Computer Science · 19,503 worksArtificial Intelligence · 18,805 works
Cite
Cite as Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras and Adrian Vladu. 2017. Towards Deep Learning Models Resistant to Adversarial Attacks. arXiv:1706.06083.
@misc{madry2017deep,
title = {{Towards Deep Learning Models Resistant to Adversarial Attacks}},
author = {Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras and Adrian Vladu},
year = {2017},
doi = {10.48550/arxiv.1706.06083},
eprint = {1706.06083},
archivePrefix = {arXiv},
url = {https://doi.org/10.48550/arxiv.1706.06083}
}References
- Aharon Ben-Tal, Laurent El Ghaoui, and Arkadi Nemirovski. Robust optimization. Princeton University Press, 2009. OpenAlex ↗ · Scholar ↗
- Battista Biggio, Igino Corona, Davide Maiorca, Blaine Nelson, Nedim Šrndić, Pavel Laskov, Giorgio Giacinto, and Fabio Roli. Evasion attacks against machine learning at test time. In Joint European conference on machine learning and knowledge discovery in databases (ECML-KDD), 2013. OpenAlex ↗ · Scholar ↗
- Battista Biggio and Fabio Roli. Wild patterns: Ten years after the rise of adversarial machine learning. 2018. OpenAlex ↗ · Scholar ↗
- Wieland Brendel, Jonas Rauber, and Matthias Bethge. Decision-based adversarial attacks: Reliable attacks against black-box machine learning models. In International Conference on Learning Representations (ICLR), 2017. OpenAlex ↗ · Scholar ↗
- Nicholas Carlini and David Wagner. Adversarial examples are not easily detected: Bypassing ten detection methods. In Workshop on Artificial Intelligence and Security (AISec), 2017. OpenAlex ↗ · Scholar ↗
- Nicholas Carlini and David Wagner. Towards evaluating the robustness of neural networks. In Symposium on Security and Privacy (SP), 2017. our card
- Ronan Collobert and Jason Weston. A unified architecture for natural language processing: Deep neural networks with multitask learning. In Proceedings of the 25th international conference on Machine learning, pages 160–167, 2008. OpenAlex ↗ · Scholar ↗
- Nilesh Dalvi, Pedro Domingos, Sumit Sanghai, and Deepak Verma. Adversarial classification. In international conference on Knowledge discovery and data mining, 2004. OpenAlex ↗ · Scholar ↗
- Alhussein Fawzi, Omar Fawzi, and Pascal Frossard. Analysis of classifiers’ robustness to adversarial perturbations. Machine Learning, 107(3):481–508, 2018. OpenAlex ↗ · Scholar ↗
- Amir Globerson and Sam Roweis. Nightmare at test time: robust learning by feature deletion. In Proceedings of the 23rd international conference on Machine learning, 2006. OpenAlex ↗ · Scholar ↗
- Ian J Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. In International Conference on Learning Representations (ICLR), 2015. our card
- Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Delving deep into rectifiers: Surpassing human-level performance on imagenet classification. In international conference on computer vision (ICCV), 2015. OpenAlex ↗ · Scholar ↗
- Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Conference on Computer Vision and Pattern Recognition (CVPR), 2016. our card
- Warren He, James Wei, Xinyun Chen, Nicholas Carlini, and Dawn Song. Adversarial example defense: Ensembles of weak defenses are not strong. In USENIX Workshop on Offensive Technologies (WOOT), 2017. OpenAlex ↗ · Scholar ↗
- Ruitong Huang, Bing Xu, Dale Schuurmans, and Csaba Szepesvari. Learning with a strong adversary. arXiv preprint arXiv:1511.03034, 2015. OpenAlex ↗ · Scholar ↗
- Alex Krizhevsky. Learning multiple layers of features from tiny images. In Technical report, 2009. OpenAlex ↗ · Scholar ↗
- Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. In Advances in Neural Information Processing Systems (NeurIPS), 2012. our card
- Alexey Kurakin, Ian J. Goodfellow, and Samy Bengio. Adversarial machine learning at scale. In International Conference on Learning Representations (ICLR), 2017. OpenAlex ↗ · Scholar ↗
- Yann LeCun. The mnist database of handwritten digits. In Technical report, 1998. OpenAlex ↗ · Scholar ↗
- Bai Li, Changyou Chen, Wenlin Wang, and Lawrence Carin. Second-order adversarial attack and certifiable robustness. arXiv preprint arXiv:1809.03113, 2018. OpenAlex ↗ · Scholar ↗
- Seyed-Mohsen Moosavi-Dezfooli, Alhussein Fawzi, and Pascal Frossard. Deepfool: a simple and accurate method to fool deep neural networks. In Computer Vision and Pattern Recognition (CVPR), 2016. our card
- Anh Nguyen, Jason Yosinski, and Jeff Clune. Deep neural networks are easily fooled: High confidence predictions for unrecognizable images. In Conference on computer vision and pattern recognition (CVPR), 2015. OpenAlex ↗ · Scholar ↗
- Nicolas Papernot, Patrick McDaniel, and Ian Goodfellow. Transferability in machine learning: from phenomena to black-box attacks using adversarial samples. In ArXiv preprint arXiv:1605.07277, 2016. OpenAlex ↗ · Scholar ↗
- Nicolas Papernot, Patrick D. McDaniel, Xi Wu, Somesh Jha, and Ananthram Swami. Distillation as a defense to adversarial perturbations against deep neural networks. In Symposium on Security and Privacy (SP), 2016. OpenAlex ↗ · Scholar ↗
- Lukas Schott, Jonas Rauber, Matthias Bethge, and Wieland Brendel. Towards the first adversarially robust neural network model on MNIST. In International Conference on Learning Representations (ICLR), 2019. OpenAlex ↗ · Scholar ↗
- Uri Shaham, Yutaro Yamada, and Sahand Negahban. Understanding adversarial training: Increasing local stability of supervised models through robust optimization. Neurocomputing, 307:195–204, 2018. OpenAlex ↗ · Scholar ↗
- Jure Sokolić, Raja Giryes, Guillermo Sapiro, and Miguel RD Rodrigues. Robust large margin deep neural networks. In Transactions on Signal Processing, 2017. OpenAlex ↗ · Scholar ↗
- Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian Goodfellow, and Rob Fergus. Intriguing properties of neural networks. In International Conference on Learning Representations (ICLR), 2014. our card
- Florian Tramer, Nicolas Papernot, Ian Goodfellow, and Patrick McDaniel Dan Boneh. The space of transferable adversarial examples. In ArXiv preprint arXiv:1704.03453, 2017. OpenAlex ↗ · Scholar ↗
- Abraham Wald. Statistical decision functions which minimize the maximum risk. In Annals of Mathematics, 1945. OpenAlex ↗ · Scholar ↗
- Weilin Xu, David Evans, and Yanjun Qi. Feature squeezing: Detecting adversarial examples in deep neural networks. In Network and Distributed Systems Security Symposium (NDSS), 2018. OpenAlex ↗ · Scholar ↗
This page in Markdown https://md.research.elamur.ai/free/en/papers/madry-2017-towards-deep-learning-models-resistant/