Initializing Perturbations in Multiple Directions for Fast Adversarial Training

Xunguang WangarXiv 2020

TL;DR

This paper introduces a novel adversarial training technique called Diversified Initialized Perturbations Adversarial Training (DIP-FAT). By diversifying the initial perturbations used in adversarial training, DIP-FAT effectively mitigates overfitting issues common in faster, single-step adversarial training methods, leading to improved robustness against adversarial attacks without sacrificing clean data accuracy.

What Problem Does This Paper Address?

Deep Neural Networks (DNNs), despite their impressive performance, are notoriously vulnerable to adversarial examples. These are inputs with imperceptible perturbations that can cause DNNs to misclassify them. Adversarial training is a primary defense mechanism, aiming to make models robust by training them on these perturbed examples. While methods like Fast Gradient Sign Method (FGSM) offer faster training, they often lead to overfitting, where the model becomes robust to the specific perturbations seen during training but fails against more powerful attacks like Projected Gradient Descent (PGD). Conversely, PGD-based adversarial training is more robust but computationally expensive. This paper addresses the challenge of achieving robust DNNs efficiently, specifically by improving upon fast adversarial training methods that suffer from overfitting.

Methods

The core contribution of this paper is the Diversified Initialized Perturbations Adversarial Training (DIP-FAT). This method builds upon the fast FGSM-based adversarial training but introduces a novel Random Diversified Initialization (RDI) technique.

Here's how it works:

  • FGSM-based Adversarial Training: The paper leverages the "Revisiting FGSM Adversarial Training" approach, which uses the single-step FGSM to generate adversarial examples, making training significantly faster than iterative methods like PGD.
  • Random Diversified Initialization (RDI): Instead of using a simple random initialization for perturbations, RDI aims to enlarge the output distances of the target model in random directions. This is achieved by:
  • Defining an optimization problem to maximize the model's output along a randomly sampled direction in the class dimension.
  • Using iterative gradient updates (similar to PGD but applied to the perturbation initialization) to generate these diversified perturbations.
  • The RDI step is performed before the FGSM attack within each training iteration.

The paper proposes two variants: "previous training" (where the perturbation from the previous iteration is used) and "random initialization training" (where perturbations are re-initialized for each batch).

Datasets

The proposed method was evaluated on the following standard benchmarks:

  • MNIST: A dataset for handwritten digit recognition.
  • CIFAR-10: A dataset for image classification.

Key Insights and Ideas

  • Overfitting in Fast Adversarial Training: The paper highlights that fast adversarial training methods like FGSM-based approaches are prone to overfitting. This means they become good at defending against the specific, limited perturbations they are trained on, but fail against stronger, more general attacks.
  • Diversified Initialization as a Solution: The key insight is that by diversifying the initial perturbations used in the adversarial training process, the model is exposed to a wider range of adversarial examples. This increased diversity helps prevent overfitting and improves generalization to unseen adversarial attacks.
  • Balancing Robustness and Efficiency: DIP-FAT aims to strike a balance between robust performance (on both clean and adversarial data) and computational efficiency, a common trade-off in adversarial training research.
  • RDI's Impact on Robustness: The RDI technique, by pushing the model's outputs in diverse directions, effectively increases the difficulty of the adversarial training process, leading to more robust models.

Key Results

  • Improved Robustness on MNIST: When tested on MNIST, DIP-FAT with RDI achieved adversarial accuracy closer to PGD-based training than standard FGSM-based training, demonstrating the effectiveness of RDI in enhancing robustness.
  • Strong Performance on CIFAR-10: On CIFAR-10, DIP-FAT showed competitive results. Notably, the method achieved the best clean data accuracy among the tested FGSM-based approaches and offered a good balance between clean and perturbed data accuracy.
  • Efficiency: The method retains the speed advantage of FGSM-based training, allowing for robust models to be trained in significantly less time compared to PGD-based methods. For instance, on CIFAR-10, DIP-FAT trained for 30 epochs, comparable to FGSM [14] and much less than PGD [9] or Free [11].
  • Effect of RDI Steps: The paper observed that increasing the number of RDI steps (Nrdi) generally led to better performance, suggesting that a more thorough diversification of initial perturbations is beneficial.

Limitations and Future Work

  • Computational Cost vs. RDI Steps: While DIP-FAT is faster than PGD-based training, the RDI step adds some computational overhead. The paper notes that the number of RDI steps (Nrdi) is generally kept small (e.g., 1 or 2) to manage this cost.
  • Parameter Tuning: The effectiveness of RDI might depend on careful tuning of its parameters (e.g., step size ardi).
  • Future Work: The paper suggests that further exploration of diversified initialization strategies could lead to even more robust and efficient adversarial training methods. The authors also imply that their method provides a strong baseline for future research in this area.

Summary updated

BibTeX
@misc{wang2020initializing,
  author = {Xunguang Wang},
  title = {{Initializing Perturbations in Multiple Directions for Fast Adversarial Training}},
  year = {2020},
  eprint = {2005.07606},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2005.07606},
}
Figure