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.
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.
- Distilled Differentiators: We construct a library of specialized binary classifiers (differentiators) designed to distinguish between only two specific classes.
- 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.
- Two-Phase Inference:
- Phase 1: The standard Student model provides a preliminary prediction (e.g., "Adam").
- 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.
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