Alternating Objectives Generates Stronger PGD-Based Adversarial Attacks

Nikolaos Antoniou, Efthymios Georgiou, Alexandros PotamianosarXiv 2022

Abstract

Designing powerful adversarial attacks is of paramount importance for the evaluation of $\ell_p$-bounded adversarial defenses. Projected Gradient Descent (PGD) is one of the most effective and conceptually simple algorithms to generate such adversaries. The search space of PGD is dictated by the steepest ascent directions of an objective. Despite the plethora of objective function choices, there is no universally superior option and robustness overestimation may arise from ill-suited objective selection. Driven by this observation, we postulate that the combination of different objectives through a simple loss alternating scheme renders PGD more robust towards design choices. We experimentally verify this assertion on a synthetic-data example and by evaluating our proposed method across 25 different $\ell_{\infty}$-robust models and 3 datasets. The performance improvement is consistent, when compared to the single loss counterparts. In the CIFAR-10 dataset, our strongest adversarial attack outperforms all of the white-box components of AutoAttack (AA) ensemble, as well as the most powerful attacks existing on the literature, achieving state-of-the-art results in the computational budget of our study ($T=100$, no restarts).

Introduction

To accurately evaluate the robustness of deep learning models, researchers rely on adversarial attacks to find the smallest perturbations that cause misclassification. If an attack is weak, it may fail to find existing vulnerabilities, leading to robustness overestimation—a false sense of security. Projected Gradient Descent (PGD) is the standard tool for this task, but its success is heavily dependent on the choice of "surrogate loss" function (e.g., Cross-Entropy, Carlini-Wagner, or DLR). Since no single loss is universally superior, an ill-suited choice can lead to suboptimal attack performance.

Multi-Stage PGD

We propose a Multi-Stage PGD strategy that alternates between different objectives in successive stages. Instead of using one loss for all $T$ iterations, we divide the attack into $K$ stages. For example, Stage 1 might run Cross-Entropy (CE) for $T/K$ iterations, and Stage 2 would then resume from that point using Carlini-Wagner (CW) loss. This approach requires no extra computational budget and prevents the optimizer from getting stuck in the local geometry of a single loss landscape.

Figure 1: Comparison of loss landscapes and optimization trajectories. The top row shows the contours for CE and CW losses. The bottom row demonstrates how alternating objectives (right) allows the attack to explore the decision boundary more effectively than single-loss variants (left).

Experimental Results

We evaluated our method on 25 different $\ell_\infty$-robust models from the RobustBench leaderboard across CIFAR-10, CIFAR-100, and ImageNet.

Figure 4: Detailed results showing the robust accuracy of various models under single-loss and multi-stage PGD attacks. The multi-stage variants (K=2, K=3) consistently achieve lower robust accuracy (higher attack success) than their single-loss counterparts.

Key Findings:

  • Universal Improvement: The multi-stage approach outperformed single-loss PGD in all 25 tested models.
  • Superior Efficiency: Within a fixed budget of 100 iterations, our CE & CW & DLR variant outperformed the individual white-box components of the industry-standard AutoAttack ensemble (APGD-CE, APGD-DLR, and FAB).
  • Loss Order Matters: Starting with CE provides a strong initial direction, while finishing with CW or DLR is more effective for refining the attack near decision boundaries.
  • Synergy through Diversity: The benefit of switching is maximized when using mathematically diverse loss functions (e.g., CE vs. CW) rather than similar ones (e.g., CW vs. DLR).

Conclusion

By simply alternating objectives, PGD becomes significantly more robust to design choices and more effective at uncovering model vulnerabilities. This method provides a more rigorous benchmark for adversarial robustness without increasing the computational cost of the evaluation.

Summary updated

BibTeX
@misc{antoniou2022alternating,
  author = {Nikolaos Antoniou and Efthymios Georgiou and Alexandros Potamianos},
  title = {{Alternating Objectives Generates Stronger PGD-Based Adversarial Attacks}},
  year = {2022},
  eprint = {2212.07992},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2212.07992},
}
Figure