CIARD: Cyclic Iterative Adversarial Robustness Distillation

Liming Lu, Shuchao Pang, Xu Zheng, Xiang Gu, Anan Du, Yunhuai Liu, Yongbin Zhou

TL;DR

This paper introduces CIARD, a novel adversarial robustness distillation (ARD) method that tackles the trade-off between model accuracy on clean data and robustness against adversarial attacks. CIARD achieves this by employing a cyclic, iterative approach with a contrastive push-loss to decouple clean and robust knowledge, and an iterative teacher training strategy to maintain teacher robustness, leading to state-of-the-art performance.

What Problem Does This Paper Address?

In today's world of edge computing and real-time applications, deploying efficient and robust models on resource-constrained devices is paramount. Knowledge distillation (KD) is a popular technique for compressing large models into smaller, more efficient ones. However, adversarial attacks pose a significant threat to these models, especially in edge environments. While adversarial training (AT) can enhance robustness, it often leads to a decline in accuracy on clean data (the robustness-accuracy trade-off). Existing adversarial robustness distillation (ARD) methods, particularly those using dual-teacher frameworks, struggle with two key challenges:

  1. Conflicting Optimization Objectives: Dual-teacher models, one focused on clean accuracy and the other on robustness, create divergent optimization goals that hinder effective knowledge transfer to the student.
  2. Degradation of Robust Teacher Performance: As the student model learns, the adversarial examples generated during training can degrade the performance of the robust teacher model, compromising the quality of knowledge transfer.

Methods

CIARD (Cyclic Iterative Adversarial Robustness Distillation) is proposed to address these challenges through two main innovations:

  • Contrastive Push-Loss Alignment: This novel component aims to resolve the conflicting optimization objectives of dual-teacher models. It works by creating a deliberate divergence between the student's adversarial predictions and the clean teacher's predictions. This "push" mechanism forces the student to focus on learning robust features from the robust teacher, minimizing interference from the clean teacher's potentially misleading knowledge.
  • Iterative Teacher Training (ITT): To combat the degradation of the robust teacher's performance, CIARD employs an iterative training strategy. Initially, both teachers are frozen to allow the student to learn basic knowledge. After a certain period, the robust teacher is continuously updated through adversarial retraining. This dynamic adaptation ensures the teacher's robustness is maintained against evolving adversarial examples, providing a consistent and high-quality source of knowledge for the student.

The overall framework involves a dual-teacher setup where a clean teacher and a robust teacher guide a student model. Adversarial examples are generated using a Projected Gradient Descent (PGD) attack that considers both the student and clean teacher. The loss function for the student model is a weighted combination of clean knowledge transfer, robust knowledge acquisition, and robust specialization (via the push loss).

Datasets

The paper evaluates CIARD on the following standard datasets:

  • CIFAR-10
  • CIFAR-100
  • Tiny-ImageNet

Key Insights and Ideas

  • Decoupling is Key: The core insight is that effectively separating "clean" knowledge from "robust" knowledge is crucial for ARD. Simply averaging or combining them leads to suboptimal results.
  • Teacher Evolution Matters: Unlike traditional distillation where teachers are static, CIARD demonstrates the benefit of allowing the robust teacher to adapt and improve alongside the student. This dynamic approach prevents performance bottlenecks.
  • Pushing Away for Better Learning: The "contrastive push-loss" is an elegant way to enforce specialization. By actively pushing the student's adversarial predictions away from the clean teacher's incorrect ones, the student is forced to rely more on the robust teacher's correct, specialized knowledge.
  • Balancing Act: CIARD successfully balances the often-conflicting goals of high clean accuracy and strong adversarial robustness, setting a new benchmark.

Key Results

CIARD achieves significant improvements across various metrics:

  • Adversarial Defense: An average of 3.53% improvement in adversarial defense rates across various attack scenarios.
  • Clean Accuracy: A 5.87% increase in clean sample accuracy.
  • State-of-the-Art Performance: CIARD outperforms existing ARD methods on CIFAR-10, CIFAR-100, and Tiny-ImageNet datasets in both white-box and black-box attack scenarios. For instance, on CIFAR-10, CIARD achieves 88.87% clean accuracy and 61.88% robust accuracy (under FGSM attack with ResNet-18), outperforming previous methods.
  • Ablation Studies: Both the Iterative Teacher Training (ITT) and the Contrastive Push Loss contribute significantly to the overall performance, with the full CIARD model achieving the best results. ITT alone improved clean accuracy by 0.87% and robustness by 0.19%, while the push loss further added 0.51% to robustness and 0.23% to clean accuracy.

Limitations and Future Work

  • Computational Cost: While CIARD improves performance, the iterative nature and adversarial example generation likely increase computational demands compared to simpler KD methods.
  • Generalization to Diverse Attacks: The paper focuses on specific attack types. Future work could explore CIARD's effectiveness against a wider range of adversarial attacks.
  • Resource-Constrained Deployment: The authors mention extending CIARD to various attack scenarios and resource-constrained deployments as future work. This suggests that further optimization for efficiency might be needed for practical edge deployment.
  • Understanding Teacher Dynamics: Further research could delve deeper into the dynamics of the iterative teacher training and how it precisely influences the student's learning trajectory.

Summary updated

BibTeX
@inproceedings{lu2025ciard,
  author = {Liming Lu and Shuchao Pang and Xu Zheng and Xiang Gu and Anan Du and Yunhuai Liu and Yongbin Zhou},
  title = {{CIARD: Cyclic Iterative Adversarial Robustness Distillation}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2025},
}
Figure