Skip to main content
QUICK REVIEW

[Paper Review] A2: Efficient Automated Attacker for Boosting Adversarial Training

Zhuoer Xu, Guanghui Zhu|arXiv (Cornell University)|Oct 7, 2022
Adversarial Robustness in Machine LearningComputer Science8 citations
TL;DR

This paper proposes A2, a differentiable, parameterized automated attacker that dynamically generates optimal adversarial perturbations during adversarial training by searching over a learned attacker space using attention mechanisms. A2 achieves stronger robustness than PGD with significantly lower computational cost, outperforming 100-step PGD with only 20 steps while remaining robust to hyperparameter choices.

ABSTRACT

Based on the significant improvement of model robustness by AT (Adversarial Training), various variants have been proposed to further boost the performance. Well-recognized methods have focused on different components of AT (e.g., designing loss functions and leveraging additional unlabeled data). It is generally accepted that stronger perturbations yield more robust models. However, how to generate stronger perturbations efficiently is still missed. In this paper, we propose an efficient automated attacker called A2 to boost AT by generating the optimal perturbations on-the-fly during training. A2 is a parameterized automated attacker to search in the attacker space for the best attacker against the defense model and examples. Extensive experiments across different datasets demonstrate that A2 generates stronger perturbations with low extra cost and reliably improves the robustness of various AT methods against different attacks.

Motivation & Objective

  • To address the inefficiency and sub-optimality of fixed, manually-tuned attackers in adversarial training.
  • To develop an automated, differentiable attacker that adapts to each example and model during training.
  • To improve model robustness by generating stronger, worst-case perturbations without incurring high training costs.
  • To design a flexible attacker space that generalizes across diverse datasets and architectures.
  • To demonstrate that automated attacker search can reliably outperform standard PGD-based adversarial training.

Proposed method

  • A2 constructs a parameterized attacker space composed of one-step attacker cells, each containing a perturbation block and a step size block.
  • The attacker uses an attention mechanism to score and combine discrete attack methods and continuous step sizes for each example.
  • For continuous step sizes, A2 uses weighted summation with normalized attention scores; for discrete methods, it applies the reparameterization trick for gradient-based optimization.
  • The attacker is trained end-to-end via gradient descent to maximize the model's loss, simulating the inner maximization in adversarial training.
  • A2 operates in real-time during training, generating adversarial examples on-the-fly without pre-computation or fixed hyperparameters.
  • The method is differentiable and compatible with various AT variants, including TRADES, MART, and RST.

Experimental results

Research questions

  • RQ1Can an automated, differentiable attacker generate stronger perturbations than standard PGD with lower computational cost?
  • RQ2How does A2's performance vary across different datasets and neural network architectures?
  • RQ3Is A2 robust to hyperparameter choices such as learning rate and step size?
  • RQ4Can A2 be effectively combined with other adversarial training methods to further improve robustness?
  • RQ5Does A2 outperform manual tuning of attackers in terms of adversarial robustness?

Key findings

  • A2 with 20 steps generates stronger perturbations than PGD with 100 steps, achieving better robustness on CIFAR-10 and ImageNet.
  • A2 improves the robust accuracy of TRADES-AWP, MART-AWP, and RST-AWP models under strong attacks like AutoAttack and C&W.
  • A2 is insensitive to hyperparameters: different learning rates and step sizes yield consistent performance gains across experiments.
  • The training time of A2 is only 920 seconds per epoch, comparable to baseline methods, indicating low additional computational overhead.
  • A2 consistently outperforms PGD 10 and performs nearly as well as PGD 20, demonstrating strong efficiency-robustness trade-off.
  • A2's performance is stable across multiple random seeds, with low standard deviation in results.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.