Adaptive Smoothness-weighted Adversarial Training for Multiple Perturbations with Its Stability Analysis

Jiancong Xiao, Zeyu Qin, Yanbo Fan, Baoyuan Wu, Jue Wang, Zhi-Quan LuoarXiv 2022

Abstract

Adversarial Training (AT) has been demonstrated as one of the most effective methods against adversarial examples. While most existing works focus on AT with a single type of perturbation (e.g., the $\ell_\infty$ attacks), DNNs are facing threats from different types of adversarial examples. Therefore, adversarial training for multiple perturbations (ATMP) is proposed to generalize the adversarial robustness over different perturbation types (in $\ell_1$, $\ell_2$, and $\ell_\infty$ norm-bounded perturbations). However, the resulting model exhibits trade-off between different attacks. Meanwhile, there is no theoretical analysis of ATMP, limiting its further development. In this paper, we first provide the smoothness analysis of ATMP and show that $\ell_1$, $\ell_2$, and $\ell_\infty$ adversaries give different contributions to the smoothness of the loss function of ATMP. Based on this, we develop the stability-based excess risk bounds and propose adaptive smoothness-weighted adversarial training for multiple perturbations. Theoretically, our algorithm yields better bounds. Empirically, our experiments on CIFAR10 and CIFAR100 achieve the state-of-the-art performance against the mixture of multiple perturbations attacks.

Introduction

Deep Neural Networks (DNNs) are notoriously fragile; tiny, invisible adversarial perturbations can trick a model into misclassifying an image. While Adversarial Training (AT) against a single type of attack (usually $\ell_\infty$) is effective, such models are often defenseless against other norms like $\ell_1$ or $\ell_2$. Adversarial Training for Multiple Perturbations (ATMP) aims to solve this, but existing methods suffer from significant trade-offs and training instability.

Robustness trade-offs in models trained on single perturbation types.

As shown in Figure (a), a model trained specifically for $\ell_1$ robustness ($\ell_1$-AT) performs poorly against $\ell_2$ and $\ell_\infty$ attacks. Furthermore, existing ATMP strategies like Multi-Steepest Descent (MSD) exhibit high volatility during training, as seen in the fluctuating accuracy curves of Figure (d).

Training instability in existing ATMP methods (MSD).

Methods

This research approaches the problem through the lens of optimization smoothness and uniform stability.

Smoothness Analysis

The authors prove that different $\ell_p$ adversaries contribute differently to the Lipschitz constant (smoothness) of the loss function. Specifically, $\ell_1$ and $\ell_\infty$ attacks typically result in less smooth loss landscapes compared to $\ell_2$ attacks.

Stability-based Excess Risk Bounds

Using uniform stability, the authors derive theoretical bounds on excess risk—the gap between training performance and generalization to unseen test data. These bounds provide a rigorous mathematical justification for the proposed weighting scheme.

The ADT Algorithm

Based on these theoretical findings, the paper introduces Adaptive Smoothness-weighted Adversarial Training (ADT). Instead of treating all attack types equally, ADT adaptively assigns different learning rates (stepsizes) to each perturbation type in every iteration. It prioritizes smoother tasks, which theoretically leads to better generalization and a more stable training process.

Key Results

The ADT algorithm consistently outperforms existing methods such as MAX, AVG, MSD, and SAT on standard benchmarks.

  • CIFAR-10: ADT achieved a 59.16% robust accuracy against a mixture of attacks, outperforming standard AVG (56.91%) and SAT (56.68%).
  • CIFAR-100: ADT reached 35.39% robust accuracy against mixed attacks, compared to 33.73% for the AVG approach.
  • Stability: ADT, especially when combined with Stochastic Weight Averaging, results in significantly smoother and more stable test accuracy curves over training epochs compared to the baseline methods shown in Figure (d).

Discussion and Conclusion

While ADT significantly improves robustness and stability, it does not fundamentally reduce the high computational cost inherent in generating multiple types of adversarial examples per step. Additionally, like most AT methods, it is susceptible to "robust overfitting," where test performance may degrade if training continues for too many epochs. Future work may focus on reducing computational overhead and further mitigating overfitting through early stopping or advanced weight averaging techniques.

Summary updated

BibTeX
@misc{xiao2022adaptive,
  author = {Jiancong Xiao and Zeyu Qin and Yanbo Fan and Baoyuan Wu and Jue Wang and Zhi-Quan Luo},
  title = {{Adaptive Smoothness-weighted Adversarial Training for Multiple Perturbations with Its Stability Analysis}},
  year = {2022},
  eprint = {2210.00557},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2210.00557},
}
Figure