Strength-Adaptive Adversarial Training

Chaojian Yu, Dawei Zhou, Li Shen, Jun Yu, Bo Han, Mingming Gong, Nannan Wang, Tongliang Liu

TL;DR

Standard Adversarial Training (AT) enforces a rigid perturbation budget that fails to keep pace as models grow more robust during training, leading to severe robust overfitting and unpredictable performance disparities across different model capacities. To fix this, the authors introduce Strength-Adaptive Adversarial Training (SAAT), which flips the adversary's objective: instead of maximizing loss under a fixed budget, it finds the minimal perturbation needed to reach a targeted adversarial loss threshold. This dynamic calibration tames robust overfitting, balances model capacity allocation, and consistently enhances adversarial robustness.

What Problem Does This Paper Address?

Deep neural networks are notoriously vulnerable to tiny, imperceptible input perturbations. The premier defense, Adversarial Training (AT), injects worst-case perturbations into training batches under a fixed budget $\epsilon$ (such as $\ell_\infty \le 8/255$). However, using a rigid budget introduces two major failure modes:

  1. Intractable Robustness Disparity: The gap between natural accuracy and robust accuracy varies wildly across model capacities. Increasing model capacity under a fixed $\epsilon$ often exacerbates this disparity rather than smoothing it out.
  2. Robust Overfitting: As training progresses, the model becomes more robust, making the fixed-budget attack effectively weaker over time. This stagnant adversary biases optimization toward defending against trivial attacks while neglecting stronger ones. Consequently, the model's test robustness peaks mid-training and degrades significantly toward the final epochs (robust overfitting).

Methods

Rather than constraining the perturbation budget and maximizing loss, SAAT explicitly constrains the attack strength via a minimum adversarial loss $\rho$ and minimizes the perturbation required:

$$\delta_i = \arg \min_{\delta_i} \ell(f_\theta(x_i + \delta_i), y_i) \quad \text{s.t.} \quad \ell(f_\theta(x_i + \delta_i), y_i) \ge \rho$$

Key aspects of this formulation include:

  • A Unified Framework: When $\rho \le 0$, SAAT reduces to standard natural training (zero adversarial perturbation needed). When $\rho \to \infty$, it reverts to standard AT. For intermediate values ($0 < \rho < \infty$), $\rho$ acts as a knob governing how much network capacity is allocated toward robustness versus natural accuracy.
  • Strength-Adaptive PGD (SA-PGD): To implement this objective, the algorithm uses a progressive search. Starting from $\epsilon = 0$, the budget is incremented stepwise by $\tau$. At each step, $K$ iterations of Projected Gradient Descent (PGD) are applied until the adversarial loss reaches $\rho$ or hits a predefined ceiling, $\epsilon_{\max}$.
  • Focusing on Hard Examples ($\text{SAAT}_{\text{up}}$): By raising $\epsilon_{\max}$ and $\rho$, the training process allocates more effort toward samples that are naturally difficult to perturb into the target loss territory, preventing the adversary from stagnating.

Datasets

The authors evaluate SAAT on two standard vision benchmarks:

  • CIFAR-10
  • CIFAR-100

Experiments are conducted across multiple architectures, including PreAct ResNet-18 (PR-18) and various widths of Wide ResNet (WRN-34-1, WRN-34-3, WRN-34-5, WRN-34-7, and WRN-34-10). Robustness is measured against PGD-20 and AutoAttack (AA).

Key Insights and Ideas

  • Adversarial Loss Predicts Generalization: Adversarial training loss strongly correlates with both the robust generalization gap and the disparity between clean and robust accuracy. Keeping the loss constrained directly curbs the test-time performance drop.
  • Robust Overfitting is an Adversary Stagnation Problem: Because the network continually adapts, a static attack budget behaves like a curriculum in reverse—the adversary grows relatively easier late in training. Adapting the perturbation budget preserves attack pressure throughout optimization.
  • Capacity Scheduling Across Architectures: When evaluated across different model widths (WRN-34-1 through WRN-34-7), SAAT achieves a nearly constant metric of robustness disparity ($\sim 1.37\text{--}1.47\%/\text{pixel}$), whereas standard AT exhibits unstable disparity shifts as capacity grows.

Key Results

  • Preventing Overfitting on CIFAR-10 (PreAct ResNet-18): Standard AT suffers from severe degradation between its best and final checkpoints ($48.23\% \to 42.88\%$ AutoAttack accuracy). In contrast, $\text{SAAT}_{\text{up}}$ ($\epsilon_{\max}=14, \rho=1.7$) achieves $48.86\%$ AA at its best checkpoint and retains $47.17\%$ AA at the final checkpoint.
  • Synergy with Adversarial Weight Perturbation (AWP): Combining SAAT with AWP pushes AutoAttack robustness to $50.67\%$ on PreAct ResNet-18 and $54.64\%$ on Wide ResNet-34-10 (improving over AWP-AT baselines of $49.96\%$ and $54.06\%$, respectively).
  • Consistency Across Frameworks: SAAT also delivers consistent improvements when integrated into TRADES (e.g., boosting TRADES AutoAttack on CIFAR-10 from $48.91\%$ to $50.04\%$, and up to $51.72\%$ with AWP).

Limitations and Future Work

  • Computational Overhead: The progressive search for the perturbation budget starts from $\epsilon = 0$ and increments stepwise, requiring additional PGD loops that increase per-epoch training time compared to fixed-step PGD.
  • Need for a Perturbation Ceiling ($\epsilon_{\max}$): Certain hard outlier samples cannot achieve loss $\rho$ even with maximal image distortions, necessitating an artificial upper bound $\epsilon_{\max}$ to avoid infinite loops.
  • Hyperparameter Sensitivity: Both $\rho$ and $\epsilon_{\max}$ interact closely and require fine-tuning to strike the desired tradeoff between clean accuracy and robust performance.

Summary updated

BibTeX
@inproceedings{yu2023strength,
  author = {Chaojian Yu and Dawei Zhou and Li Shen and Jun Yu and Bo Han and Mingming Gong and Nannan Wang and Tongliang Liu},
  title = {{Strength-Adaptive Adversarial Training}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=Bvaekygzl2m},
}
Figure