TL;DR
This paper investigates whether knowledge distillation, a common technique for compressing neural networks, can effectively transfer certified adversarial robustness from a large "teacher" network to a smaller "student" network. The authors find that traditional distillation methods fall short, but propose a new approach, Certified Robust Distillation (CRD), which shows promise in bridging the robustness gap, though it faces limitations with highly robust teachers.
What Problem Does This Paper Address?
Neural networks are increasingly used in safety-critical applications, where adversarial attacks (imperceptible input perturbations that cause misclassifications) are a major concern. While methods exist to make networks robust against these attacks, these robust networks are often very large and computationally expensive. Knowledge Distillation (KD) is a popular technique to compress large networks into smaller ones, but its effectiveness for transferring certified robustness (a formal guarantee of robustness against any attack within a certain budget) has not been explored. This paper addresses the question: can we compress certifiably robust networks using KD, and if so, how can we do it effectively?
Methods
The core of the paper revolves around adapting knowledge distillation for certified robustness.
- Certified Robustness: The authors leverage Randomized Smoothing, a technique that makes a classifier certifiably robust by averaging its predictions over noisy versions of the input. This provides a formal guarantee of robustness within a specific radius.
- Knowledge Distillation (KD): Traditionally, KD trains a smaller "student" network to mimic the output probabilities of a larger "teacher" network. This is typically done by minimizing a combination of the standard cross-entropy loss and a "mimic loss" (e.g., KL-divergence or L2 distance between output distributions).
- Certified Robust Distillation (CRD): The authors propose a novel KD objective, CRD. Instead of just mimicking the teacher's output on clean inputs, CRD trains the student to mimic the teacher's output on inputs perturbed by Gaussian noise. This is motivated by the observation that for randomized smoothing, robustness to Gaussian noise is key to achieving certified robustness. The mimic loss in CRD is applied to the noisy inputs, aiming to transfer the teacher's robust behavior.
Datasets
The experiments are conducted using the CIFAR-10 dataset. No new benchmarks are introduced; the focus is on evaluating existing and proposed distillation methods on this standard dataset.
Key Insights and Ideas
- Naive KD Fails for Certified Robustness: Traditional knowledge distillation, even when adapted with adversarial noise, is largely ineffective at transferring certified robustness. The student networks exhibit very low certified accuracy and robust radius.
- Mimicking Robust Behavior is Crucial: The key insight is that to distill certified robustness, the student needs to learn to mimic the teacher's behavior not just on clean inputs, but specifically on noisy inputs that are relevant to the certified robustness mechanism (randomized smoothing).
- CRD Bridges the Gap (Partially): The proposed CRD method shows significant improvement over existing distillation techniques for certified robustness. It successfully bridges some of the robustness gap between the teacher and student networks.
- Network Capacity Matters: Distilling highly robust teachers is more challenging. CRD's effectiveness is limited by the student network's capacity; larger student networks are required to effectively mimic teachers trained with advanced robust training methods.
Key Results
- Table 2: Demonstrates that standard KD completely fails to distill certified robustness. ARD (Adversarially Robust Distillation) shows some success, but RSLAD (Robust Soft Label Adversarial Distillation) performs worse than independently trained students.
- Table 3: Shows that CRD significantly improves certified robustness compared to ARD and RSLAD. The CRD-trained student exhibits comparable robustness to its teacher. For example, a ResNet-20 student distilled from a ResNet-110 teacher using CRD achieves an Average Certified Radius (ACR) of 0.483 at radius 0.00, compared to 0.486 for the teacher.
- Table 4: Highlights the limitation of CRD when the teacher is trained with more advanced robust training methods (MACER, SmoothMix). The gap between teacher and student robustness increases, indicating that CRD struggles to distill very high levels of certified robustness.
- Table 5: Shows that increasing the student network's size improves distillation effectiveness. A ResNet-56 student can achieve comparable robustness to a ResNet-110 teacher, but smaller students struggle.
Limitations and Future Work
- Network Capacity Limitation: The authors acknowledge that CRD has a network capacity limitation. It is difficult to distill highly robust teachers (trained with advanced methods like MACER or SmoothMix) into smaller student networks. The gap between teacher and student robustness widens significantly in these cases.
- Future Work: The authors suggest that further research is needed to address this capacity limitation. This could involve developing new distillation strategies or exploring different network architectures that are better suited for mimicking complex robust functions. They also mention that their work serves as a starting point for future research in compressing certifiably robust models.
Summary updated