Vax-a-Net: Training-Time Defence Against Adversarial Patch Attacks

Thomas Gittings, Steve Schneider, John P. Collomosse

Introduction

Deep learning models, particularly convolutional neural networks (CNNs), are highly susceptible to adversarial examples. While much academic focus has been on "covert" pixel-level perturbations, Adversarial Patch Attacks (APAs) represent a more tangible real-world threat. These are visible, localized regions—such as a sticker placed on a stop sign—that can be physically printed and deployed to cause catastrophic misclassification.

Existing defenses typically rely on inference-time filtering or traditional adversarial training. Filtering methods often inadvertently remove critical features, degrading accuracy on clean images. Conversely, standard adversarial training is computationally prohibitive for patches; generating an effective patch through optimization can take minutes, making it impossible to integrate into a standard training loop.

Methodology: The Vax-a-Net Approach

Vax-a-Net addresses these challenges by "vaccinating" CNNs during training using a conditional Generative Adversarial Network (GAN). This framework enables the rapid synthesis of diverse attack patches, turning a slow optimization process into a millisecond-scale generation task.

The Generative Framework

The system employs a DC-GAN-based generator ($G$) that takes a noise vector and a target class label to produce an adversarial patch in less than a second. The target CNN ($f$) serves as the discriminator. The training process alternates between optimizing the generator to create more potent patches and fine-tuning the target CNN to maintain correct classification despite these perturbations.

Differentiable Application and Loss

To ensure spatial robustness, patches are applied to training images using differentiable affine transformations, including random scaling, rotation, and placement. The multi-part loss function ensures the model:

  1. Corrects classification of patched images.
  2. Preserves high performance on clean data.
  3. Learns the underlying features of the "attack class" to better distinguish them from the primary object.

Experimental Evaluation

The researchers evaluated Vax-a-Net on the ImageNet dataset (1.2M training images, 50k test images). They focused on a subset of 10 to 50 classes (e.g., "wallaby," "potpie") to generate the adversarial patches used for vaccination and testing across popular architectures like VGG-19, Inception-v3, and Inception-ResNet-v2.

Key Results and Insights

Vax-a-Net demonstrated significant improvements in robustness without the typical trade-offs associated with adversarial defense.

Robustness and Accuracy

For a 10% patch attack on VGG-19, Vax-a-Net achieved a 64.2% defense success rate, a stark contrast to the 4.1% of an undefended model. Crucially, the defense did not compromise clean accuracy; in some instances, top-1 accuracy on clean ImageNet data actually improved (e.g., from 69.2% to 72.5% on VGG-19).

Attention Shifting

A key insight from the study is how the model's attention shifts. Grad-CAM visualizations reveal that while undefended models focus heavily on the adversarial patch, Vax-a-Net-defended models learn to ignore the high-salience patch and refocus on the actual object.

Comparison of undefended vs. Vax-a-Net defended models showing Grad-CAM heatmaps and classification probabilities.

Real-World Efficacy

In physical-world tests using printed patches and smartphone cameras, the attack success rate plummeted from 90.3% to 6.6% when using the Vax-a-Net defended model, proving its practical utility.

Conclusion and Future Work

Vax-a-Net provides a scalable, training-time defense that incurs no inference overhead. While highly effective against small-to-medium patches, performance naturally declines as patches grow to cover 25% or more of the image due to occlusion. Future research will explore extending this methodology to object detection tasks, where adversarial patches are often used to make objects "disappear" from the model's view.

Summary updated

Abstract

We present Vax-a-Net; a technique for immunizing convolutional neural networks (CNNs) against adversarial patch attacks (APAs). APAs insert visually overt, local regions (patches) into an image to induce misclassification. We introduce a conditional Generative Adversarial Network (GAN) architecture that simultaneously learns to synthesise patches for use in APAs, whilst exploiting those attacks to adapt a pre-trained target CNN to reduce its susceptibility to them. This approach enables resilience against APAs to be conferred to pre-trained models, which would be impractical with conventional adversarial training due to the slow convergence of APA methods. We demonstrate transferability of this protection to defend against existing APAs, and show its efficacy across several contemporary CNN architectures.
BibTeX
@inproceedings{gittings2020vax,
  author = {Thomas Gittings and Steve Schneider and John P. Collomosse},
  title = {{Vax-a-Net: Training-Time Defence Against Adversarial Patch Attacks}},
  booktitle = {ACCV},
  year = {2020},
  url = {https://openreview.net/forum?id=sWJYqWLqxe},
}
Figure