Use of small auxiliary networks and scarce data to improve the adversarial robustness of deep learning models

Davide Coppola, Hwee Kuan Lee, Cuntai GuanOpenReview 2021

TL;DR

This paper introduces a novel method to enhance the adversarial robustness of pre-trained deep learning models using only a small amount of data. By freezing the original model's weights and adding small "fixer" networks, the approach effectively defends against adversarial attacks without sacrificing performance on clean data, offering a practical solution for patching existing large models.

What Problem Does This Paper Address?

Deep learning models, particularly those for image classification, are notoriously vulnerable to adversarial attacks. Adversarial training is a common defense, but it's computationally expensive and requires vast amounts of data. This poses a significant challenge when dealing with limited datasets or when trying to improve the robustness of already trained, large models. In such scenarios, traditional adversarial training can lead to overfitting on the small dataset, degrading performance on clean, non-adversarial images. The paper aims to bridge this gap by providing a defense mechanism that is data-efficient and preserves clean accuracy, acting as a "patch" for existing models.

Methods

The core of the proposed method involves freezing the parameters of a pre-trained "base model" and introducing small, trainable "fixer modules" at various points within its architecture. These fixer modules take feature maps from intermediate layers, process them to mitigate adversarial perturbations, and then add them back to the original features via a skip connection. A key innovation is the training objective: it combines a standard classification loss with a "distillation" term. This distillation term encourages the features from adversarial examples to be similar to those from clean examples, effectively "fixing" the adversarial noise at the feature level. The training process uses both clean images and their corresponding adversarial counterparts, generated by a chosen attack, but only the fixer module parameters are updated.

Datasets

The experiments were conducted on two datasets:

  • CIFAR10: A standard benchmark dataset for image classification with 10 categories. The researchers used the full training set and also created smaller subsets (10% and 1% of the full training set) to evaluate data efficiency.
  • HIST (Histopathology Images): A dataset of medical images (TCGA-LUAD slides) with 4 classes. This dataset was chosen to represent a domain where data and computational resources are often scarce, and model robustness is critical. Similar to CIFAR10, the training set was sub-sampled to 10% and 1%.

Key Insights and Ideas

  • Data Efficiency is Key: The paper demonstrates that significant adversarial robustness can be achieved with surprisingly little data (as low as 1% of the original training set), a stark contrast to traditional adversarial training.
  • Fixing, Not Retraining: By freezing the base model and only training small auxiliary networks, the method avoids the catastrophic forgetting or degradation of clean accuracy often seen with full adversarial fine-tuning on small datasets.
  • Feature-Level Defense: The "fixer" modules operate on intermediate features, suggesting that adversarial perturbations can be effectively neutralized by targeted modifications at these layers, rather than requiring a complete overhaul of the model.
  • Practical Patching: The approach is presented as a flexible "add-on" that can be applied to existing, large, pre-trained models without needing access to their original training data or architecture details, making it highly practical for industry.
  • Attack Specificity: While effective, the learned defense mechanism appears to be somewhat specific to the attack used during training, highlighting a trade-off between generalization and targeted defense.

Key Results

  • On CIFAR10, using only 10% of the training data, the proposed method achieved a 7% higher accuracy on clean images compared to standard adversarial training, while still providing adequate defense against AutoPGD.
  • Even with 1% of the training data, the proposed method maintained performance comparable to standard adversarial training on clean images, with a significant improvement in adversarial defense.
  • For the HIST dataset, the proposed method showed competitive performance with standard adversarial training, maintaining good accuracy on clean data and learning a defense strategy that transferred reasonably well to different attacks (FGSM), though less so than on CIFAR10.
  • The "fx-a" configuration (linear activation, $\delta=1$, $\lambda=1$) was found to be the most effective combination of hyperparameters.

Limitations and Future Work

  • Attack Generalization: The paper acknowledges that the defense mechanism learned by the proposed method appears to be more specific to the type of attack used during training and generalizes less to other types of attacks. This suggests that further research could focus on improving the transferability of the learned defense.
  • Hyperparameter Sensitivity: While an ablation study was performed, the optimal choice of hyperparameters for the fixer modules might still be dataset and attack-dependent.
  • Future Work: The authors suggest exploring methods to improve the generalization of the defense mechanism to unseen attacks. Additionally, investigating the application of this technique to other domains beyond image classification could be a promising direction.

Summary updated

BibTeX
@misc{coppola2021use,
  author = {Davide Coppola and Hwee Kuan Lee and Cuntai Guan},
  title = {{Use of small auxiliary networks and scarce data to improve the adversarial robustness of deep learning models}},
  year = {2021},
  url = {https://openreview.net/forum?id=E3gF8L-mmS3},
  howpublished = {OpenReview},
}
Figure