Adversarial Distributional Training for Robust Deep Learning

Yinpeng Dong, Zhijie Deng, Tianyu Pang, Jun Zhu, Hang Su

TL;DR

Adversarial Distributional Training (ADT) shifts the focus of robust deep learning from defending against a single "worst-case" adversarial point to defending against a distribution of adversarial examples. By maximizing the expected loss over a diverse set of perturbations—enforced by an entropic regularizer—ADT produces models that generalize better across different attack types and exhibit smoother loss landscapes.

The Problem with Standard Adversarial Training

Standard Adversarial Training (AT) is the gold standard for defending deep neural networks. It works by solving a minimax problem: the "inner" step finds a specific perturbation (like Projected Gradient Descent, or PGD) that maximizes loss, and the "outer" step updates the model to minimize that loss.

However, this approach has a major flaw: overfitting to the attack pattern. Because standard AT only looks for a single adversarial point, the model often learns to defend against that specific attack algorithm rather than becoming truly robust. This can lead to "gradient masking," where the model looks robust against one attack but remains vulnerable to others (e.g., multi-step attacks or gradient-free attacks). Furthermore, a single attack point is often insufficient to explore the high-dimensional space of possible perturbations around an image.

Adversarial Distributional Training (ADT)

To address these limitations, the authors propose Adversarial Distributional Training (ADT). Instead of finding a single point $\delta$, ADT seeks an adversarial distribution $p(\delta)$ for each input.

The Minimax Formulation

The core objective is: $$\min_{\theta} \sum \max_{p(\delta) \in \mathcal{P}} \mathbb{E}_{p(\delta)} [L(f_\theta(x + \delta), y)] + \lambda H(p(\delta))$$ * Inner Maximization: Finds a distribution that maximizes the expected loss. * Entropic Regularizer ($H$): This is the "secret sauce." Without it, the distribution would simply collapse into a single point (a Dirac delta). The entropy term forces the distribution to be diverse, covering a wider region of the perturbation space. * Outer Minimization: Trains the model parameters $\theta$ to be robust against this entire distribution of threats.

Three Implementation Flavors

The authors provide three ways to parameterize these adversarial distributions:

Architectures for parameterizing adversarial distributions
  1. ADT-EXP (Explicit): Models the perturbation as a transformed Gaussian distribution. It learns specific parameters (mean and variance) for every single image in the dataset.
  2. ADT-EXP-AM (Amortized Explicit): To save computation, a "generator" network predicts the Gaussian parameters for any given input image.
  3. ADT-IMP-AM (Amortized Implicit): Uses a generator network to produce perturbations directly from a noise vector (similar to a GAN). This allows for more flexible, non-Gaussian distributions.

Key Insights and Ideas

  • Diversity is Defense: By sampling from a distribution rather than a single point, the training process "sees" a much more heterogeneous set of adversarial examples. This prevents the model from "cheating" by overfitting to a specific gradient direction.
  • Flattening the Loss Landscape: A key finding is that ADT leads to a significantly smoother loss surface. The authors quantified this by calculating the dominant eigenvalue of the Hessian matrix; ADT models showed much lower values than standard AT, indicating a flatter, more stable landscape around natural inputs.
Loss landscapes and dominant eigenvalues for different training methods
  • Theoretical Extension of Danskin’s Theorem: The paper provides a theoretical bridge, showing that the gradients used to solve the distributional minimax problem are well-behaved and can be solved sequentially, much like standard AT.

Key Results

The framework was evaluated on three standard image classification benchmarks (CIFAR-10, CIFAR-100, SVHN) using a Wide ResNet (WRN-28-10) architecture.

  • Superior Robustness: On CIFAR-10, ADT-EXP achieved a robust accuracy of 50.56% against a suite of white-box attacks, outperforming standard PGD-based AT (48.26%) and other baselines like ALP and FeaScatter.
  • Generalization Across Attacks: ADT showed consistent performance across different attack types (FGSM, PGD, MIM, C&W). While some baselines performed well on one attack but failed on others, ADT remained stable.
  • Black-box Resilience: ADT models performed better against transfer-based and query-based (SPSA) black-box attacks, suggesting that the robustness is genuine and not a result of gradient masking.
  • Integration with TRADES: The authors showed that ADT is a general framework; when combined with the TRADES loss (another popular defense), it further improved state-of-the-art results.

Limitations and Future Work

  • Computational Overhead: ADT-EXP is significantly slower than standard AT because it requires multiple Monte Carlo samples per gradient step. While the amortized versions (AM) are faster, they still require training an additional generator network.
  • Generator Capacity: The performance of the amortized versions is limited by the capacity of the generator. If the generator cannot accurately model the "adversarial regions" for all inputs, the defense may be sub-optimal.
  • Threat Model Scope: This paper focuses primarily on $L_\infty$ perturbations. Extending this to $L_2$ or other threat models is a direction for future work.
  • Hyperparameter Sensitivity: The balancing term $\lambda$ for entropy requires careful tuning; too much entropy reduces robustness, while too little leads back to standard AT.

Summary updated

BibTeX
@inproceedings{dong2020adversarial,
  author = {Yinpeng Dong and Zhijie Deng and Tianyu Pang and Jun Zhu and Hang Su},
  title = {{Adversarial Distributional Training for Robust Deep Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
  url = {https://openreview.net/forum?id=eYOl8yftP6h},
}
Figure