Defending Against Misclassification Attacks in Transfer Learning

Bang Wu, Xiangwen Yang, Shuo Wang, Xingliang Yuan, Cong Wang, Carsten Rudolph

Abstract

Transfer learning (TL) is a cornerstone of modern deep learning, enabling the development of specialized models from large-scale pre-trained "Teacher" models. However, the public nature of these Teacher models introduces a significant security vulnerability: misclassification attacks. This paper proposes a novel defense mechanism using an ensemble of "distilled differentiators"—highly pruned, specialized binary classifiers. By breaking the structural symmetry between the Teacher and Student models, this approach successfully rejects over 90% of adversarial inputs while maintaining high accuracy on clean data.

Introduction: The Vulnerability of Transfer Learning

Transfer learning allows developers to create high-quality "Student" models by fine-tuning a pre-trained "Teacher" model (e.g., VGG-Face or VGG16) on a smaller, task-specific dataset. While efficient, this workflow creates a massive security hole. Because Teacher models are often publicly available, an attacker can study their internal feature boundaries to craft adversarial examples.

These "misclassification attacks" are particularly dangerous due to their transferability. An attacker can manipulate a source image so that its internal features in the Teacher model mimic those of a target class. Since the Student model inherits these feature layers, it is similarly deceived, even without the attacker having direct access to the Student model itself.

Mechanism of a misclassification attack where a source image is perturbed to mimic a target's internal representation.

Methodology: Distilled Differentiators

To counter these attacks, we introduce a two-phase defense strategy based on Distilled Differentiators. The core idea is to break the "internal geometry" shared between the Teacher and Student models.

  1. Distilled Differentiators: We construct a library of specialized binary classifiers (differentiators) designed to distinguish between only two specific classes.
  2. Activation-based Pruning: To differentiate these models from the Teacher, we apply aggressive network pruning. By removing neurons inactive for the two specific classes, we "distill" the model into a sparse geometry that does not respond to noise patterns optimized for the dense Teacher model.
  3. Two-Phase Inference:
  4. Phase 1: The standard Student model provides a preliminary prediction (e.g., "Adam").
  5. Phase 2: The system randomly selects a small ensemble of differentiators related to the predicted class (e.g., Adam vs. Ben, Adam vs. Charlie). If these specialized models disagree with the Phase 1 prediction, the input is flagged and rejected.
The defense mechanism using an ensemble of differentiators to validate or reject model predictions.

Evaluation and Results

The defense was evaluated on two primary tasks: Face Recognition (using VGG-Face and the PubFig dataset) and Traffic Sign Recognition (using VGG16 and the GTSRB dataset).

The results demonstrate the effectiveness of the proposed approach:

  • High Defense Rate: An ensemble of just five differentiators rejected over 91% of adversarial examples across both tasks.
  • Accuracy Preservation: Clean-input accuracy remained above 90%, with an accuracy loss of less than 10% compared to undefended models.
  • Efficiency: Total inference time was approximately 2.11 seconds on a single CPU core, making it practical for various applications.
  • Robustness: The defense proved effective against TL-specific attacks and general adversarial methods like FGSM, DeepFool, and C&W.

Conclusion

By breaking the structural symmetry between Teacher and Student models through pruning and ensemble-based validation, we can significantly mitigate the risks of misclassification attacks in transfer learning. Future work will focus on optimizing storage for large-scale tasks with thousands of classes and exploring adaptive attacker strategies.

Summary updated

BibTeX
@article{wu2023defending,
  author = {Bang Wu and Xiangwen Yang and Shuo Wang and Xingliang Yuan and Cong Wang and Carsten Rudolph},
  title = {{Defending Against Misclassification Attacks in Transfer Learning}},
  journal = {IEEE Trans. Dependable Secur. Comput.},
  year = {2023},
  doi = {10.1109/tdsc.2022.3144988},
}
Figure