Decoupling Direction and Norm for Efficient Gradient-Based L2 Adversarial Attacks and Defenses

Jérôme Rony, Luiz G. Hafemann, Luiz S. Oliveira, Ismail Ben Ayed, Robert Sabourin +1 more
11/23/2018
cs.CVcs.CRcs.LG

Official code: jeromerony/adversarial-library (167 stars, BSD-3-Clause, PyTorch, last commit 2025-11-20). 1 more implementation below.

Abstract

Research on adversarial examples in computer vision tasks has shown that small, often imperceptible changes to an image can induce misclassification, which has security implications for a wide range of image processing systems. Considering $L_2$ norm distortions, the Carlini and Wagner attack is presently the most effective white-box attack in the literature. However, this method is slow since it performs a line-search for one of the optimization terms, and often requires thousands of iterations. In this paper, an efficient approach is proposed to generate gradient-based attacks that induce misclassifications with low $L_2$ norm, by decoupling the direction and the norm of the adversarial perturbation that is added to the image. Experiments conducted on the MNIST, CIFAR-10 and ImageNet datasets indicate that our attack achieves comparable results to the state-of-the-art (in terms of $L_2$ norm) with considerably fewer iterations (as few as 100 iterations), which opens the possibility of using these attacks for adversarial training. Models trained with our attack achieve state-of-the-art robustness against white-box gradient-based $L_2$ attacks on the MNIST and CIFAR-10 datasets, outperforming the Madry defense when the attacks are limited to a maximum norm.

View on arXivView PDF

Code Implementations(2)

PyTorchBSD-3-Clause

Library containing PyTorch implementations of various adversarial attacks and resources

16721PythonNov 24, 202011 months agoBSD-3-Clause
adversarial-attacksadversarial-examplesmachine-learningpytorch
BSD-3-Clause

Code for the CVPR 2019 article "Decoupling Direction and Norm for Efficient Gradient-Based L2 Adversarial Attacks and Defenses"

13714PythonNov 21, 20185 years agoBSD-3-Clause
adversarial-attacksadversarial-examplemachine-learning

Cite this paper

@article{rony2018decoupling,
  title  = {Decoupling Direction and Norm for Efficient Gradient-Based L2 Adversarial Attacks and Defenses},
  author = {Jérôme Rony and Luiz G. Hafemann and Luiz S. Oliveira and Ismail Ben Ayed and Robert Sabourin and Eric Granger},
  year   = {2018},
  eprint = {1811.09600},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1811.09600}
}

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

Discussion