Efficient and Effective Augmentation Strategy for Adversarial Training

Sravanti Addepalli, Samyak Jain, Venkatesh Babu R.

This NeurIPS 2022 paper tackles one of the most persistent headaches in robust machine learning: the massive data requirement of Adversarial Training (AT).

TL;DR

The authors introduce DAJAT (Diverse Augmentation based Joint Adversarial Training), a framework that finally makes complex data augmentations work for adversarial robustness. By using split batch normalization and a consistency loss, DAJAT achieves state-of-the-art results on benchmarks like CIFAR-100 while remaining more computationally efficient than standard 10-step adversarial training.

The Problem: The Augmentation Paradox in Adversarial Training

Deep Neural Networks are notoriously fragile; small, imperceptible "adversarial" perturbations can easily trick them. Adversarial Training (AT)—training the model on these perturbations—is the most effective defense, but it is incredibly "data-hungry."

In standard image classification, we solve data scarcity using complex augmentations like AutoAugment. However, researchers have found a frustrating paradox: these same augmentations often hurt performance when applied to Adversarial Training.

The authors identify this as a domain generalization problem. Complex augmentations shift the data distribution so significantly that the model struggles to learn the "true" distribution and the "augmented" distribution simultaneously. This conflict leads to a drop in both clean accuracy and adversarial robustness.

Methods: Bridging the Gap

The authors propose two main components to resolve this distribution shift and improve training efficiency:

1. DAJAT (The Framework)

DAJAT Architecture
  • Joint Training: The model is trained on both "Simple" (basic crops/flips) and "Complex" (AutoAugment) versions of the same image.
  • Split Batch Normalization (BN): This is the "secret sauce." Because complex augmentations change low-level image statistics (brightness, contrast, etc.), using a single set of BN layers confuses the model. DAJAT maintains separate BN statistics and parameters for simple vs. complex augmentations, allowing the model to specialize in different "domains" of the same dataset.
  • Jensen-Shannon (JS) Divergence: The authors add a loss term that encourages the model to produce similar probability distributions for different augmented versions of the same image. This allows the "easier" simple augmentations to guide the learning of the complex ones.

2. ACAT (The Efficiency Booster)

  • Standard AT often uses 10 steps of an attack (like PGD) to generate adversarial examples, which is notoriously slow. DAJAT uses Ascending Constraint Adversarial Training (ACAT), a much faster 2-step defense.
  • To prevent "gradient masking" (where the model learns to "cheat" the attack during training), ACAT uses a curriculum of linearly increasing perturbation budgets ($\epsilon$) and weight-space smoothing (Adversarial Weight Perturbation). This provides the "free lunch" of 2-step attacks without sacrificing stability.

Key Results

The researchers evaluated their method on standard computer vision benchmarks, including CIFAR-10, CIFAR-100, and ImageNette (a 10-class subset of ImageNet).

CIFAR-10 Results and Efficiency
  • Accuracy-Robustness Trade-off: DAJAT achieved a much better balance than previous methods. For example, on CIFAR-10 (shown above), it reached ~86.67% clean accuracy and ~51.56% robust accuracy against the grueling AutoAttack.
  • Leaderboard Dominance: On CIFAR-100, DAJAT outperformed all existing methods on the RobustBench leaderboard using the same model architecture (WideResNet-34-10).
  • Efficiency: Despite processing multiple augmentations, the 2-step ACAT approach makes DAJAT faster than the standard 10-step TRADES-AWP defense (e.g., 160-280 seconds/epoch vs. 228 seconds/epoch for standard TRADES-AWP, while achieving better performance).
  • Low-Data Success: The method showed its greatest strengths in low-data regimes (like ImageNette), where complex augmentations provided a massive boost that standard AT simply couldn't access.

Limitations and Future Work

  • Augmentation Selection: The paper focuses on how to use augmentations effectively, but it doesn't deeply explore which specific augmentations are optimal for different types of adversarial threats (e.g., $\ell_2$ vs. $\ell_\infty$ attacks).
  • Inference Complexity: While training is efficient, the model still requires the correct BN statistics to be used at inference time, which assumes the test data matches the "simple" augmentation distribution.
  • Scaling: While tested on ImageNette, the computational overhead of joint training on the full ImageNet-1k dataset remains a challenge for future exploration.

Summary updated

BibTeX
@inproceedings{addepalli2022efficient,
  author = {Sravanti Addepalli and Samyak Jain and Venkatesh Babu R.},
  title = {{Efficient and Effective Augmentation Strategy for Adversarial Training}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=CbqTiSVijr},
}
Figure