Bilateral Adversarial Training: Towards Fast Training of More Robust Models Against Adversarial Attacks

Jianyu Wang, Haichao ZhangICCV 2019 · DOI

Introduction

Deep neural networks are notoriously fragile; tiny, imperceptible perturbations to an image (adversarial attacks) can easily fool them. To defend against this, researchers use Adversarial Training, where the model is trained on these "broken" images. The current gold standard is multi-step Projected Gradient Descent (PGD) training. However, PGD is computationally expensive because it requires many iterations to generate a single adversarial example for every training step.

Bilateral Adversarial Training (BAT) addresses these issues by perturbing both input images and their labels during training. Using a clever one-step targeted attack and a closed-form heuristic for adversarial labels, BAT achieves higher robustness than traditional multi-step methods while being an order of magnitude faster.

The BAT Framework

The authors introduce Bilateral Adversarial Training (BAT), which attacks the problem from two sides:

  1. Adversarial Images (The Input): Instead of a slow multi-step attack, BAT uses a one-step targeted attack. It targets the Most Confusing (MC) class—the incorrect class the model is already most likely to pick. To prevent "label leaking" (where the model learns to recognize the perturbation rather than the object), a random noise start is added to the image before the one-step perturbation.
  2. Adversarial Labels (The Target): Standard training uses "one-hot" labels. BAT perturbs the label itself using a closed-form heuristic that shifts probability from the correct class to the most confusing classes based on model gradients. This acts as a sophisticated form of label smoothing that specifically targets the model's weaknesses.

By combining these, BAT aims to satisfy two conditions for robustness: low loss (correct predictions) and small gradient magnitude (a "flat" loss surface that is harder to perturb).

Analysis of Robustness

A key insight of this work is that robust models naturally have much smaller gradient magnitudes than undefended ones. If the "slope" of the loss function is nearly flat, an attacker cannot easily find a direction to push the model into making an error.

Classification accuracy of BAT versus the Madry baseline across different attack iterations.

As shown in the figure above, BAT maintains significantly higher accuracy than the standard Madry baseline as the number of PGD attack iterations increases, demonstrating superior robustness across varying attack strengths.

Performance Comparison

The researchers evaluated BAT on standard benchmarks including CIFAR10, SVHN, and ImageNet. BAT outperformed the previous state-of-the-art (SOTA) multi-step PGD training across the board.

Comparison of BAT (R-MC-LA variants) against the Madry baseline on CIFAR10.

On CIFAR10, against a strong PGD100 white-box attack (CE100 in the table), BAT (R-MC-LA+) achieved 63.7% accuracy, compared to 47.2% for the standard PGD-trained model (Madry). Furthermore, BAT is roughly 7-10x faster* per epoch than standard multi-step adversarial training. On ImageNet, BAT achieved comparable or better results using only 8 GPUs in about 2 days, whereas standard PGD training often requires massive clusters.

Conclusion

While BAT is highly effective, the authors note that the adversarial label generation relies on a heuristic. Future work could explore more theoretically grounded optimization for labels. Additionally, while small gradients correlate with robustness, they are not a perfect indicator, and finding a precise indicator remains an open challenge. Nevertheless, BAT provides a powerful and efficient path toward training robust deep learning models at scale.

Summary updated

BibTeX
@inproceedings{wang2019bilateral,
  author = {Jianyu Wang and Haichao Zhang},
  title = {{Bilateral Adversarial Training: Towards Fast Training of More Robust Models Against Adversarial Attacks}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2019},
  doi = {10.1109/iccv.2019.00673},
}
Figure