Skip to main content
QUICK REVIEW

[Paper Review] Boosting Adversarial Transferability by Achieving Flat Local Maxima

Zhijin Ge, Hongying Liu|arXiv (Cornell University)|Jun 8, 2023
Adversarial Robustness in Machine LearningComputer Science13 citations
TL;DR

This paper proposes Penalizing Gradient Norm (PGN), an attack that locates adversarial examples in flat local regions using a gradient-norm penalty and finite-difference Hessian approximation to boost transferability across models.

ABSTRACT

Transfer-based attack adopts the adversarial examples generated on the surrogate model to attack various models, making it applicable in the physical world and attracting increasing interest. Recently, various adversarial attacks have emerged to boost adversarial transferability from different perspectives. In this work, inspired by the observation that flat local minima are correlated with good generalization, we assume and empirically validate that adversarial examples at a flat local region tend to have good transferability by introducing a penalized gradient norm to the original loss function. Since directly optimizing the gradient regularization norm is computationally expensive and intractable for generating adversarial examples, we propose an approximation optimization method to simplify the gradient update of the objective function. Specifically, we randomly sample an example and adopt a first-order procedure to approximate the curvature of Hessian/vector product, which makes computing more efficient by interpolating two neighboring gradients. Meanwhile, in order to obtain a more stable gradient direction, we randomly sample multiple examples and average the gradients of these examples to reduce the variance due to random sampling during the iterative process. Extensive experimental results on the ImageNet-compatible dataset show that the proposed method can generate adversarial examples at flat local regions, and significantly improve the adversarial transferability on either normally trained models or adversarially trained models than the state-of-the-art attacks. Our codes are available at: https://github.com/Trustworthy-AI-Group/PGN.

Motivation & Objective

  • Motivate the hypothesis that adversarial examples in flat local regions transfer better across models.
  • Propose a practical method (PGN) to locate flat local maxima during adversarial perturbation generation.
  • Show that gradient-norm penalization improves transferability for both normally trained and adversarially trained models.
  • Demonstrate that PGN can be integrated with existing gradient-based and input-transformation attacks for higher transferability.

Proposed method

  • Introduce a gradient-regularization term that penalizes the maximum gradient in a local neighborhood of the adversarial example.
  • Approximate the Hessian/vector product needed for the regularizer using a finite-difference approach and interpolating two neighboring gradients.
  • Use random sampling within a small neighborhood to estimate the local gradient and average over multiple samples to reduce variance.
  • Update adversarial perturbations with a first-order procedure informed by the penalized gradient, enabling efficient optimization.
  • Provide a concrete algorithm (PGN) that combines the penalty with standard iterative attacks (I-FGSM/MI-FGSM) and with input-transformations.

Experimental results

Research questions

  • RQ1Does imposing a maximum-gradient penalty in a local neighborhood lead to adversarial examples with better cross-model transferability?
  • RQ2Can a tractable approximation of the Hessian (via finite differences and gradient interpolation) enable practical flat-region optimization for adversarial attacks?
  • RQ3How does PGN perform relative to existing gradient-based and input-transformation attacks on both normally trained and adversarially trained models?
  • RQ4Is PGN compatible with ensemble attacks and with combinations of other transferability-enhancing techniques?

Key findings

  • Adversarial examples located in flat local regions exhibit improved transferability across models.
  • PGN significantly improves transferability for both vanilla and adversarially trained surrogate models compared with baselines like MI-/NI-/VMI-/EMI-/RAP FGSM variants.
  • In single-model and ensemble-model settings, PGN achieves higher attack success rates and can outperform the best baselines by noticeable margins (e.g., average gains around several percentage points in reported results).
  • PGN remains effective when combined with input-transformation attacks (DIM, TIM, SIM, Admix, SSA), delivering substantial gains in transferability.
  • The finite-difference-based Hessian approximation accelerates computation and maintains high attack performance compared with direct Hessian optimization.

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.