Abstract
Adversarial transferability is a critical metric for evaluating the security of deep learning models in black-box settings. Current transfer-based attacks often suffer from overfitting to the specific geometry of the surrogate model, resulting in poor performance against unseen target architectures. This paper introduces the Penalizing Gradient Norm (PGN) attack, a novel method that enhances transferability by seeking adversarial examples located in flat local maxima of the loss landscape. By utilizing a finite difference approximation to penalize the gradient norm efficiently, PGN generates adversarial perturbations that are less sensitive to model-specific decision boundaries. Empirical results demonstrate that PGN significantly outperforms state-of-the-art attacks across various architectures and robustly defended models.
1. Introduction
In the field of adversarial machine learning, transfer-based attacks represent a realistic threat model where an attacker generates adversarial examples on a known surrogate model to fool an unknown target model. The primary challenge in this domain is the "transferability gap": adversarial examples often overfit to the surrogate model's specific loss landscape, falling into sharp local maxima that do not exist in the target model's geometry.
Inspired by the correlation between flat minima and generalization in model training, this research explores the hypothesis that flat local maxima are the key to adversarial generalization. By forcing adversarial examples into flatter regions of the loss landscape, the resulting perturbations become more robust to the architectural variations between surrogate and target models.
2. Methodology
2.1 The Penalizing Gradient Norm (PGN) Attack
The authors propose the Penalizing Gradient Norm (PGN) method to locate these desirable flat regions. The core objective is to maximize the classification loss while simultaneously minimizing the gradient norm in the local neighborhood of the adversarial example. A low gradient norm indicates a region where the loss landscape is relatively stable (flat), rather than a sharp, isolated peak.
2.2 Efficient Hessian Approximation
Directly optimizing for flatness typically involves second-order derivatives (Hessian matrices), which are computationally expensive ($O(n^2)$). To maintain efficiency, PGN employs a Finite Difference Method. This technique approximates the Hessian-vector product by interpolating two neighboring first-order gradients, reducing the computational complexity to $O(n)$. This allows the attack to scale to high-dimensional datasets like ImageNet.
2.3 Gradient Stabilization
To ensure the attack moves toward a consistently flat region rather than a noisy local artifact, PGN incorporates a stabilization step. The algorithm samples $N$ points within a local neighborhood and averages their gradients. This sampling-based approach provides a more reliable estimate of the local curvature, ensuring the optimization process converges on a truly flat maximum.
3. Experimental Evaluation
3.1 Setup
The researchers evaluated the PGN attack using standard benchmarks, including the ImageNet-compatible dataset and CIFAR-10. The surrogate models included popular architectures such as Inception-v3 and ResNet-101. Target models spanned a wide variety of architectures, including Vision Transformers (ViT) and models hardened with adversarial training (robust models).
3.2 Performance against Standard Models
PGN demonstrated superior transferability compared to existing state-of-the-art (SOTA) methods like RAP and VMI-FGSM. When attacking from an Inception-v3 surrogate to other black-box models, PGN improved the average success rate by 6.1% to 11.8% over the strongest baselines.
3.3 Performance against Robust Models
The most significant gains were observed when targeting models specifically designed to resist adversarial attacks. In ensemble-based attack settings, PGN outperformed the previous best method (RAP) by a margin of over 18.4%. Furthermore, PGN is highly compatible with other transfer-enhancement techniques such as Input Diversity (DIM) and Translation Invariance (TIM), often achieving success rates near 90% on black-box targets when combined.
4. Discussion and Insights
- Flatness as Generalization: The central insight of this work is that the "generalization" of an adversarial attack is analogous to the generalization of a trained model. Just as flat minima prevent a model from overfitting to training data, flat maxima prevent an attack from overfitting to a surrogate model.
- Algorithmic Efficiency: By leveraging first-order approximations for second-order problems, the authors provide a practical tool that balances the theoretical benefits of landscape analysis with the practical constraints of adversarial generation.
- Plug-and-Play Nature: The PGN framework does not require specialized knowledge of the target model and can be easily integrated into existing attack pipelines to boost performance.
5. Conclusion and Future Work
This paper establishes a strong empirical link between loss landscape flatness and adversarial transferability. While the PGN attack sets a new benchmark for transfer-based attacks, the authors acknowledge that a formal mathematical proof of the relationship between flatness and transferability remains an open area for research. Additionally, while the finite difference method is efficient, the requirement for multiple gradient samples per iteration increases the computational cost relative to simpler attacks. Future research may focus on further optimizing the search for flat regions to reduce this overhead.
Summary updated