Imbalanced Gradients: A Subtle Cause of Overestimated Adversarial Robustness

Xingjun Ma, Linxi Jiang, Hanxun Huang, Zejia Weng, James Bailey +1 more
6/24/2020
cs.CVcs.CRcs.LG

Official code: HanxunH/MDAttack (18 stars, Python, MIT, PyTorch, last commit 2024-07-05).

Abstract

Evaluating the robustness of a defense model is a challenging task in adversarial robustness research. Obfuscated gradients have previously been found to exist in many defense methods and cause a false signal of robustness.

Show full abstract

In this paper, we identify a more subtle situation called Imbalanced Gradients that can also cause overestimated adversarial robustness. The phenomenon of imbalanced gradients occurs when the gradient of one term of the margin loss dominates and pushes the attack towards to a suboptimal direction. To exploit imbalanced gradients, we formulate a Margin Decomposition (MD) attack that decomposes a margin loss into individual terms and then explores the attackability of these terms separately via a two-stage process. We also propose a multi-targeted and ensemble version of our MD attack. By investigating 24 defense models proposed since 2018, we find that 11 models are susceptible to a certain degree of imbalanced gradients and our MD attack can decrease their robustness evaluated by the best standalone baseline attack by more than 1%. We also provide an in-depth investigation on the likely causes of imbalanced gradients and effective countermeasures. Our code is available at https://github.com/HanxunH/MDAttack.

View on arXivView PDF

Code Implementations(1)

HanxunH/MDAttackOfficial100%
PyTorchMIT

[Machine Learning 2023] Imbalanced Gradients: A Subtle Cause of Overestimated Adversarial Robustness

180Python, ShellNov 13, 20212 years agoMIT
adversarial-attacksdeep-learningpytorch

Similar Papers

Cite this paper

@article{ma2020imbalanced,
  title  = {Imbalanced Gradients: A Subtle Cause of Overestimated Adversarial Robustness},
  author = {Xingjun Ma and Linxi Jiang and Hanxun Huang and Zejia Weng and James Bailey and Yu-Gang Jiang},
  year   = {2020},
  eprint = {2006.13726},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2006.13726}
}

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

Discussion