Boosting Adversarial Training Using Robust Selective Data Augmentation

Bader Rasheed, Asad Masood Khattak, Adil Khan, Stanislav Protasov, Muhammad AhmadInternational Journal of Computational Intelligence Systems 2023

Abstract

Artificial neural networks are currently applied in a wide variety of fields, and they are near to achieving performance similar to humans in many tasks. Nevertheless, they are vulnerable to adversarial attacks in the form of a small intentionally designed perturbation, which could lead to misclassifications, making these models unusable, especially in applications where security is critical. The best defense against these attacks, so far, is adversarial training (AT), which improves the model’s robustness by augmenting the training data with adversarial examples. In this work, we show that the performance of AT can be further improved by employing the neighborhood of each adversarial example in the latent space to make additional targeted augmentations to the training data. More specifically, we propose a robust selective data augmentation (RSDA) approach to enhance the performance of AT. RSDA complements AT by inspecting the quality of the data from a robustness perspective and performing data transformation operations on specific neighboring samples of each adversarial sample in the latent space. We evaluate RSDA on MNIST and CIFAR-10 datasets with multiple adversarial attacks. Our experiments show that RSDA gives significantly better results than just AT on both adversarial and clean samples.

Introduction

Deep learning models are notoriously fragile; a tiny, invisible perturbation to an image (an adversarial attack) can flip a model's prediction from "dog" to "toaster." While Adversarial Training (AT)—feeding the model these "broken" images during training—is the current gold standard for defense, it often creates a robustness-accuracy trade-off. Models frequently become better at resisting attacks but worse at classifying normal, clean images.

This paper introduces Robust Selective Data Augmentation (RSDA), a method that surgically improves AT. The authors argue that standard AT is a "blunt instrument" because it treats all adversarial examples the same without investigating why the model is failing. RSDA seeks to bridge this gap by identifying the specific "influential" training samples leading the model astray and strategically augmenting them in the latent space to fix the decision boundary.

The RSDA Framework

RSDA is built on a three-component architecture consisting of a feature generator, a classifier, and a discriminator. The process follows three main steps:

  1. Adversarial Generation: During training, the model creates adversarial versions ($x^{adv}$) of the current batch using standard attacks like PGD or FGSM.
  2. Selective Identification: The method uses techniques like TracIn (Tracing Gradient Descent) or Representer Point Selection to find which specific training images are most responsible for the model misclassifying the adversarial sample.
  3. Latent Space Transformation: Instead of raw pixel noise, RSDA performs label-preserving transformations in the latent (hidden) space. It moves influential samples toward their class centers or interpolates between them to strengthen the representation.
The RSDA architecture showing the flow from input space through a feature extractor to a transformed latent space, regulated by classification, triplet, and adversarial losses.

To ensure the latent space remains realistic, the authors employ a Discriminator to force the latent distribution toward a Gaussian prior and a Triplet Loss to push samples of the same class together while separating different classes.

Experimental Results

The researchers evaluated RSDA on the MNIST and CIFAR-10 benchmarks against major attack types: FGSM (Fast Gradient Sign Method), BIM (Basic Iterative Method), and PGD (Projected Gradient Descent). RSDA consistently outperformed standard AT across the board:

  • Robustness Boost: On CIFAR-10 under PGD attack, RSDA achieved 55.72% accuracy, a significant improvement over the 49.35% achieved by standard AT.
  • Preserving Clean Accuracy: On MNIST, RSDA maintained a clean accuracy of 98.52%, nearly matching a normally trained model (98.63%) and far exceeding standard AT (97.44%).
  • Ablation Success: The combination of Adversarial, Triplet, and Classification losses proved essential; removing any single component led to a performance drop.

Mechanisms of Robustness

A key insight of the paper is the categorization of influential samples into "excitatory" (those that trigger wrong predictions) and "inhibitory" (those that prevent right ones). By shifting these "borderline" samples toward the center of their class cluster in the latent space, the decision boundary becomes much harder for an attacker to cross.

Visualization of shifting influential samples in the latent space to adjust the decision boundary for improved robustness.

Conclusion and Future Work

RSDA demonstrates that surgical, latent-space augmentations can mitigate the accuracy-robustness trade-off inherent in standard adversarial training. While the method introduces some computational overhead due to the identification of influential samples, it offers a more nuanced and effective defense strategy. Future work will explore how this modality-agnostic approach scales to larger datasets like ImageNet and more complex architectures like Transformers.

Summary updated

BibTeX
@article{rasheed2023boosting,
  author = {Bader Rasheed and Asad Masood Khattak and Adil Khan and Stanislav Protasov and Muhammad Ahmad},
  title = {{Boosting Adversarial Training Using Robust Selective Data Augmentation}},
  journal = {International Journal of Computational Intelligence Systems},
  year = {2023},
  doi = {10.1007/s44196-023-00266-x},
}
Figure