On the Loss Landscape of Adversarial Training: Identifying Challenges and How to Overcome Them

Chen Liu, Mathieu Salzmann, Tao Lin, Ryota Tomioka, Sabine Süsstrunk

Adversarial training (AT) is widely recognized as the most effective defense against adversarial attacks, yet it remains significantly more challenging to implement than standard training. This research, presented at NeurIPS 2020, investigates the underlying geometric and optimization hurdles that make AT difficult. By analyzing the "loss landscape," the authors identify structural impediments like gradient scattering and sharper minima, and propose Periodic Adversarial Scheduling (PAS) as a robust solution.

The Challenge of Adversarial Training

Deep learning models are notoriously fragile; infinitesimal perturbations to input data can lead to high-confidence misclassifications. While training on these "worst-case" examples improves robustness, it introduces three primary difficulties:

  1. Slow Convergence: Training times are substantially longer than standard models.
  2. Generalization Gap: Models often fail to generalize their robustness to unseen adversarial examples.
  3. Hyperparameter Sensitivity: AT is highly sensitive to the adversarial budget ($\epsilon$) and learning rates; improper settings can lead to complete training failure.

Analyzing the Adversarial Landscape

To understand these challenges, the authors examine the geometry of the loss function under adversarial perturbations. Theoretical analysis of both linear and nonlinear models reveals that a large adversarial budget forces the classifier toward a "constant" state, where the loss landscape becomes significantly less smooth.

Figure 1: Comparison of Vanilla and Adversarial loss landscapes. The adversarial landscape (blue) is notably sharper and steeper than the standard vanilla landscape (red).

As shown in Figure 1, the adversarial loss landscape is characterized by sharper minima. In deep learning, sharper valleys typically correlate with poorer generalization. Furthermore, the second-order derivative (smoothness) is often lost, making the optimization terrain jagged and difficult for standard gradient-based optimizers to navigate.

Key Insights: Gradient Scattering and the Initial Plateau

Empirical "stress tests" on MNIST and CIFAR-10 datasets reveal specific phenomena that hinder optimization:

  • Gradient Scattering: Because the optimal adversarial perturbation can shift abruptly as model parameters change, the resulting gradients become "scattered." This provides conflicting signals to the optimizer, slowing down the descent.
  • The Initial Plateau: High adversarial budgets at the start of training can trap the model near its random initialization. The model struggles to find a path out of the jagged local terrain.
  • Non-vanishing Gradients: Unlike standard training where gradients approach zero at a minimum, AT models continue to "bounce" around the bottom due to the landscape's jaggedness.
Figure 6: Training dynamics across different adversarial budgets (\epsilon). Panels show (a, d) gradient norm noise, (b) error rates, and (c) distance from initialization, illustrating the "initial plateau" and non-vanishing gradients.

Figure 6 illustrates these dynamics. As $\epsilon$ increases, the gradient norm becomes noisier (a, d), and the model moves more slowly away from its initial state (c), confirming the presence of an initial plateau that hinders early training progress.

Overcoming Hurdles: Periodic Adversarial Scheduling (PAS)

To mitigate these issues, the authors propose Periodic Adversarial Scheduling (PAS). Instead of a fixed adversarial budget, PAS utilizes a budget-warmup strategy. By starting $\epsilon$ at zero and gradually increasing it in a cyclic fashion, the model can navigate the smoother initial landscape before tackling the more complex adversarial terrain.

Key Results

  • Robustness to Learning Rates: PAS remains stable across a wide range of learning rates where vanilla AT often fails.
  • Improved Accuracy: On CIFAR-10 benchmarks, PAS consistently outperformed standard PGD-based training in robust accuracy against various attacks (e.g., AutoPGD).
  • Zero Overhead: Since PAS only modifies the scheduling of the budget parameter, it provides these benefits without any additional computational cost compared to standard AT.

Conclusion

By characterizing the adversarial loss landscape as sharper and prone to gradient scattering, this work provides a geometric explanation for the difficulties of adversarial training. Periodic Adversarial Scheduling offers a simple yet effective recipe to smooth the optimization process, leading to more stable and robust deep learning models.

Summary updated

BibTeX
@inproceedings{liu2020loss,
  author = {Chen Liu and Mathieu Salzmann and Tao Lin and Ryota Tomioka and Sabine Süsstrunk},
  title = {{On the Loss Landscape of Adversarial Training: Identifying Challenges and How to Overcome Them}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
}
Figure