Abstract
Deploying deep learning models on resource-constrained edge devices requires a delicate balance between model size, accuracy, and security. Adversarial Robustness Distillation (ARD) has emerged as a promising technique to transfer robustness from large, complex models to lightweight students. However, traditional ARD methods often struggle with knowledge conflicts between accuracy-focused and robustness-focused teachers, as well as the degradation of teacher performance as the student evolves. This paper introduces CIARD (Cyclic Iterative Adversarial Robustness Distillation), a novel framework that employs a Contrastive Push Loss to decouple conflicting knowledge and an Iterative Teacher Training strategy to ensure continuous, high-quality guidance. CIARD significantly improves both clean accuracy and adversarial robustness, setting new benchmarks for efficient and resilient AI.
Introduction
The proliferation of AI on mobile and IoT devices necessitates lightweight architectures like MobileNet and ResNet-18. While efficient, these models are often vulnerable to adversarial attacks—small, intentional perturbations that can lead to incorrect predictions. Adversarial training is the standard defense but is computationally expensive for small models. ARD offers a solution by distilling "toughness" from a pre-trained robust teacher. Yet, existing ARD frameworks face a "tug-of-war" between clean performance and adversarial defense.
The Dual-Teacher Dilemma
Current dual-teacher frameworks utilize both a clean teacher (for accuracy) and an adversarial teacher (for robustness). This approach encounters two primary hurdles:
- Knowledge Conflict: The student receives conflicting signals. The clean teacher prioritizes natural features, while the robust teacher focuses on defensive features. Simple averaging of these signals often leads to suboptimal performance in both domains.
- Teacher Degradation: As the student model improves, it generates increasingly sophisticated adversarial examples. Static, "frozen" teachers eventually fail to correctly classify these examples, providing "stale" or incorrect guidance to the student.
The CIARD Framework
CIARD addresses these challenges through two innovative mechanisms:
1. Contrastive Push Loss
To resolve knowledge conflicts, CIARD introduces a "Pull-Push" optimization strategy. While the student is "pulled" toward the correct predictions of both teachers, it is also "pushed" away from the clean teacher's incorrect predictions on adversarial samples. This contrastive approach effectively decouples clean and robust knowledge, allowing the student to learn defensive features without sacrificing natural accuracy.
2. Iterative Teacher Training (ITT)
To combat teacher degradation, CIARD employs a cyclic training process. Unlike static frameworks, the robust teacher in CIARD is periodically retrained on the adversarial examples generated by the student. This ensures the teacher remains a "strong authority," providing accurate and challenging guidance throughout the distillation process.
Experimental Evaluation
The effectiveness of CIARD was validated on CIFAR-10, CIFAR-100, and Tiny-ImageNet benchmarks using lightweight architectures such as MobileNet-V2 and ResNet-18.
Key Results
CIARD demonstrated superior performance compared to state-of-the-art methods like MTARD and B-MTARD:
- Enhanced Robustness: Achieved an average 3.53% improvement in defense rates against standard attacks (e.g., PGD, FGSM).
- Improved Clean Accuracy: Unlike many defense methods that degrade natural performance, CIARD saw a 5.87% increase in clean sample accuracy.
- Benchmark Performance: On CIFAR-10 with ResNet-18, CIARD reached 88.87% clean accuracy and 51.70% robust accuracy under PGD attacks, outperforming existing benchmarks.
Conclusion
CIARD successfully mitigates the inherent trade-offs in adversarial distillation. By decoupling conflicting knowledge and maintaining teacher strength through iterative training, it enables the creation of lightweight models that are both "smart" and "tough." Future work will explore scaling CIARD to larger datasets like ImageNet and extending the framework to other domains such as Natural Language Processing.
Summary updated