Towards Evaluating and Understanding Robust Optimisation under Transfer

Todor Davchev, Timos Kores, Stathi Fotiadis, Nick Antonopoulos, Subramanian Ramamoorthy

Abstract

In this work, we evaluate adversarial robustness in the context of transfer learning from a source trained on CIFAR 100 to a target network trained on CIFAR 10. Specifically, we study the effects of using robust optimisation in the source and target networks. This allows us to identify transfer learning strategies under which adversarial defences are successfully retained, in addition to revealing potential vulnerabilities. We study the extent to which features learnt by a fast gradient sign method (FGSM) and its iterative alternative (PGD) can preserve their defence properties against black and white-box attacks under three different transfer learning strategies. We find that using PGD examples during training on the source task leads to more general robust features that are easier to transfer. Furthermore, under successful transfer, it achieves 5.2% more accuracy against white-box PGD attacks than suitable baselines. Overall, our empirical evaluations give insights on how well adversarial robustness under transfer learning can generalise.

Introduction

Deep learning models are notoriously fragile; small, imperceptible perturbations to an input—known as adversarial examples—can easily trick a model into making a wrong prediction. While robust optimization techniques like adversarial training have been developed to defend models, they are computationally expensive.

In standard deep learning workflows, Transfer Learning (TL) is commonly used to save time and data by fine-tuning a pre-trained source model for a specific target task. This study addresses a critical question: Does adversarial robustness transfer? If resources are spent to make a source model robust, can that protection carry over to the target model, or must defense be rebuilt from scratch?

Methodology

The researchers evaluated robustness transfer using a ResNet56 architecture, moving from a source task (CIFAR-100) to a target task (CIFAR-10). They tested two primary adversarial training methods: the Fast Gradient Sign Method (FGSM), a fast "one-step" attack, and Projected Gradient Descent (PGD), a more powerful iterative attack widely considered the gold standard for defense.

Experimental setup for transfer learning from CIFAR-100 to CIFAR-10, illustrating the naming convention for source and target models.

To identify where robustness resides within the network, three transfer strategies were explored:

  • Strategy A (1 layer): Freezing the entire network and retraining only the final classification layer.
  • Strategy B (18 layers): Unfreezing and retraining the last block of the ResNet.
  • Strategy C (56 layers): Using source weights as an initialization and retraining the entire network on the target task.

Models were evaluated against both White-Box (WB) attacks (attacker knows model parameters) and Black-Box (BB) attacks (attacker uses a separate DenseNet121 model to generate examples).

Key Insights and Results

Iterative Training and Robustness Retention

A primary finding is that features learned through PGD training are more "intricate and general" than those from FGSM. Consequently, PGD-based defenses transfer much more effectively. While robustness against Black-Box attacks transfers consistently—likely due to a reliance on low-level features common across image tasks—White-Box defense is harder to maintain.

Comprehensive evaluation of accuracy across different transfer strategies (1, 18, and 56 layers) and attack types.

The "Robust Initialization" Advantage

One of the most significant findings is that even when performing adversarial training on the target task, starting with a robustly trained source model (Strategy C) provides a superior starting point for optimization. Specifically, the $R_{pgd \to pgd}$ strategy achieved a 5.2% improvement in accuracy against White-Box PGD attacks compared to standard baselines.

Furthermore, Strategy B (unfreezing 18 layers) provides a strong trade-off, achieving robustness levels close to full retraining while requiring significantly fewer computational resources.

Conclusion

This work demonstrates that adversarial robustness can indeed be transferred, provided the source model is trained with sufficiently generalizable methods like PGD. Future work should examine if these findings hold for more complex datasets (e.g., medical imagery) and different architectures like Transformers, as well as extending evaluations to real-world control tasks.

Summary updated

Abstract

In this work, we evaluate adversarial robustness in the context of transfer learning from a source trained on CIFAR 100 to a target network trained on CIFAR 10. Specifically, we study the effects of using robust optimisation in the source and target networks. This allows us to identify transfer learning strategies under which adversarial defences are successfully retained, in addition to revealing potential vulnerabilities. We study the extent to which features learnt by a fast gradient sign method (FGSM) and its iterative alternative (PGD) can preserve their defence properties against black and white-box attacks under three different transfer learning strategies. We find that using PGD examples during training on the source task leads to more general robust features that are easier to transfer. Furthermore, under successful transfer, it achieves 5.2% more accuracy against white-box PGD attacks than suitable baselines. Overall, our empirical evaluations give insights on how well adversarial robustness under transfer learning can generalise.
BibTeX
@misc{davchev2019towards,
  author = {Todor Davchev and Timos Kores and Stathi Fotiadis and Nick Antonopoulos and Subramanian Ramamoorthy},
  title = {{Towards Evaluating and Understanding Robust Optimisation under Transfer}},
  year = {2019},
  eprint = {1905.02675},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1905.02675},
}
Figure