Abstract
Adversarial training is the most promising method for learning robust models against adversarial examples. A recent study has shown that knowledge distillation between the same architectures is effective in improving the performance of adversarial training. Exploiting knowledge distillation is a new approach to improve adversarial training and has attracted much attention. However, its performance is still insufficient. Therefore, we propose Adversarial Robust Distillation with Internal Representation (ARDIR) to utilize knowledge distillation even more effectively. In addition to the output of the teacher model, ARDIR uses the internal representation of the teacher model as a label for adversarial training. This enables the student model to be trained with richer, more informative labels. As a result, ARDIR can learn more robust student models. We show that ARDIR outperforms previous methods in our experiments.
Introduction
Deep Neural Networks (DNNs) are notoriously fragile. Human-imperceptible changes to an image, known as adversarial perturbations, can cause state-of-the-art models to misclassify inputs with high confidence. The standard defense is Adversarial Training (AT), where models are trained on these perturbed images. However, AT often suffers from "robust overfitting," where the model defends well against specific training attacks but fails to generalize to unseen ones.
Previous research attempted to mitigate this using Knowledge Distillation (KD), where a "student" model mimics the final output (logits) of a "teacher" model. However, final outputs are highly compressed, discarding rich, high-dimensional information in intermediate layers that could help the student learn a more robust representation of the data.
The ARDIR Framework
To address these limitations, the authors propose ARDIR (Adversarial Robust Distillation with Internal Representation). The framework introduces two primary innovations:
- Internal Representation Distillation: Instead of matching only the final prediction, the student model is forced to match the feature maps of the teacher model at various intermediate layers. This provides the student with more informative "labels" regarding the internal logic of a robust model.
- LPIPS Loss: To compare these internal layers, the authors utilize Learned Perceptual Image Patch Similarity (LPIPS). Originally designed to measure human-perceived similarity, LPIPS acts as a distance metric that normalizes features across different layer sizes, stabilizing the distillation process and encouraging the model to focus on robust, human-aligned features rather than pixel-level noise.
The "RC" Strategy: Robust Teacher + Clean Data
A critical finding of the study is the effectiveness of the "RC" strategy. The authors discovered that the best results occur when a Robust Teacher is fed Clean Data to generate labels for the student.
Analysis of the generalization gap reveals that robust models maintain much more stable internal features for clean images than for adversarial ones. As shown in the experimental data, the gap between training and test accuracy is significantly smaller for clean data across datasets like CIFAR-10 and SVHN. By distilling from clean data, the student learns core, intrinsic properties of objects rather than overfitting to the specific noise patterns found in adversarial training sets.
Experimental Results
ARDIR was evaluated on CIFAR-10 and SVHN using the PreActResNet-18 architecture. Robustness was measured against AutoAttack (AA), the gold standard for defense evaluation.
- CIFAR-10: ARDIR achieved a robust accuracy of 50.14% against AutoAttack, outperforming previous state-of-the-art methods like IAD (48.58%) and standard Adversarial Robust Distillation (48.24%).
- SVHN: ARDIR reached 49.44% robust accuracy, a significant improvement over standard Adversarial Training (44.94%).
The method also passed gradient obfuscation checks, showing consistent performance across FGSM, PGD, and AA attacks, which confirms that the achieved robustness is genuine and not a result of masking gradients.
Conclusion and Future Work
ARDIR demonstrates that internal representations are a powerful source of supervision for building robust models. By leveraging LPIPS and clean data from a robust teacher, students can learn features that generalize better to adversarial threats.
Future work may address the computational overhead of calculating LPIPS across multiple layers and explore how ARDIR performs when the student architecture differs significantly from the teacher, a common requirement for deploying robust models on resource-constrained mobile devices.
Summary updated