Skip to main content
QUICK REVIEW

[Paper Review] Revisiting and Advancing Fast Adversarial Training Through The Lens of Bi-Level Optimization

Yihua Zhang, Guanhua Zhang|arXiv (Cornell University)|Dec 23, 2021
Adversarial Robustness in Machine LearningComputer Science19 citations
TL;DR

This paper proposes Fast-BAT, a novel fast adversarial training method grounded in bi-level optimization (BLO) that improves robustness and stability over Fast-AT without relying on gradient sign methods or explicit regularization. By modeling adversarial training as a BLO problem and leveraging implicit gradient computation, Fast-BAT achieves state-of-the-art robust accuracy on CIFAR-10, CIFAR-100, and Tiny-ImageNet with faster convergence and reduced catastrophic overfitting.

ABSTRACT

Adversarial training (AT) is a widely recognized defense mechanism to gain the robustness of deep neural networks against adversarial attacks. It is built on min-max optimization (MMO), where the minimizer (i.e., defender) seeks a robust model to minimize the worst-case training loss in the presence of adversarial examples crafted by the maximizer (i.e., attacker). However, the conventional MMO method makes AT hard to scale. Thus, Fast-AT (Wong et al., 2020) and other recent algorithms attempt to simplify MMO by replacing its maximization step with the single gradient sign-based attack generation step. Although easy to implement, Fast-AT lacks theoretical guarantees, and its empirical performance is unsatisfactory due to the issue of robust catastrophic overfitting when training with strong adversaries. In this paper, we advance Fast-AT from the fresh perspective of bi-level optimization (BLO). We first show that the commonly-used Fast-AT is equivalent to using a stochastic gradient algorithm to solve a linearized BLO problem involving a sign operation. However, the discrete nature of the sign operation makes it difficult to understand the algorithm performance. Inspired by BLO, we design and analyze a new set of robust training algorithms termed Fast Bi-level AT (Fast-BAT), which effectively defends sign-based projected gradient descent (PGD) attacks without using any gradient sign method or explicit robust regularization. In practice, we show our method yields substantial robustness improvements over baselines across multiple models and datasets. Codes are available at https://github.com/OPTML-Group/Fast-BAT.

Motivation & Objective

  • Address the instability and catastrophic overfitting issues in Fast-AT, a popular fast adversarial training method.
  • Reframe fast adversarial training through the lens of bi-level optimization (BLO) to provide theoretical grounding and algorithmic improvements.
  • Develop a method that enhances robustness against PGD and AutoAttack without explicit gradient alignment regularization.
  • Demonstrate that implicit gradient computation in BLO can naturally enforce gradient alignment and flatten the loss landscape, mitigating overfitting.
  • Achieve state-of-the-art robust accuracy across multiple datasets while maintaining computational efficiency.

Proposed method

  • Reformulate Fast-AT as a linearized bi-level optimization (BLO) problem with a sign operation in the lower-level objective.
  • Propose Fast-BAT as a new robust training framework that solves the BLO problem using implicit gradient descent, avoiding explicit gradient sign computation.
  • Use Hessian-free implicit gradient computation to reduce computational overhead while maintaining performance.
  • Leverage the structure of the BLO problem to implicitly promote gradient alignment and flatter loss landscapes, reducing overfitting.
  • Design a training algorithm that dynamically adapts to adversarial perturbations through BLO-based optimization, without relying on heuristics like cyclic learning rates.
  • Implement a stable, efficient training loop that achieves high robustness with minimal hyperparameter tuning.

Experimental results

Research questions

  • RQ1Can bi-level optimization provide a theoretically grounded framework to improve the stability and robustness of fast adversarial training?
  • RQ2Does implicit gradient computation in a BLO formulation naturally lead to gradient alignment and reduced catastrophic overfitting?
  • RQ3How does Fast-BAT compare to Fast-AT and Fast-AT-GA in terms of robust accuracy, training stability, and computational efficiency?
  • RQ4Is the Hessian-free assumption in implicit gradient computation valid and efficient for practical adversarial training?
  • RQ5Can Fast-BAT generalize well against adaptive and transfer attacks without obfuscated gradients?

Key findings

  • Fast-BAT achieves 48.83% robust accuracy against PGD-50-10 attacks at ε=8/255 on CIFAR-10 with PreActResNet-18, outperforming Fast-AT (45.49%) and Fast-AT-GA (47.27%).
  • On Tiny-ImageNet, Fast-BAT achieves 33.78% robust accuracy at ε=16/255, significantly outperforming Fast-AT (31.38%) and Fast-AT-GA (29.17%).
  • Fast-BAT maintains a high gradient alignment (GA) score throughout training, comparable to Fast-AT-GA, which uses explicit regularization.
  • The method reduces catastrophic overfitting, as evidenced by flatter adversarial loss landscapes and consistent performance across multiple random seeds.
  • Hessian-aware Fast-BAT shows only a 0.3% improvement in robust accuracy over Hessian-free Fast-BAT but incurs a 30% increase in training time, validating the Hessian-free assumption.
  • Fast-BAT consistently outperforms baselines on both adaptive (PGD) and transfer attacks, with no signs of obfuscated gradients, confirming genuine robustness.

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.