Sample-wise Adaptive Weighting for Transfer Consistency in Adversarial Distillation

Hongsin Lee, Hye Won Chung · DOI

Abstract

Adversarial Distillation (AD) is a promising technique for transferring robustness from large, computationally expensive teacher models to compact student models. However, recent studies have uncovered a "robust saturation" effect: stronger teachers often produce weaker students. This paper investigates this paradox and identifies adversarial transferability—the degree to which student-generated adversarial attacks affect the teacher—as the primary bottleneck. We propose Sample-wise Adaptive Adversarial Distillation (SAAD), a method that adaptively reweights training samples based on the entropy of teacher outputs. SAAD prioritizes samples with high transferability, ensuring stable knowledge transfer. Experimental results on CIFAR and Tiny-ImageNet demonstrate that SAAD significantly outperforms existing state-of-the-art methods, particularly when distilling from highly robust but "ineffective" teachers.

Introduction: The Robust Saturation Paradox

Deep neural networks are notoriously fragile against adversarial attacks, necessitating defenses like Adversarial Training (AT). While effective, AT typically requires large model capacities. Adversarial Distillation (AD) aims to bridge this gap by distilling a robust teacher's knowledge into a smaller student.

Conventionally, one would expect a more robust teacher to yield a more robust student. Yet, empirical evidence shows that state-of-the-art teachers from benchmarks like RobustBench often lead to a decline in student performance. This phenomenon, termed robust saturation, has previously been attributed to the "capacity gap" between student and teacher. However, this research demonstrates that even teachers of similar sizes can produce vastly different results, suggesting that the quality of the teacher's guidance during the attack process is the true culprit.

Key Insights: The Transferability Correlation

The authors find that the strongest predictor of student robustness is not the teacher's absolute accuracy, but the Transferable Adversarial Sample (TAS) ratio. This ratio measures how often adversarial examples crafted to fool the student also successfully "nudge" the teacher's logic.

Analysis of student robustness across teacher accuracy, architecture size, and TAS ratio. Subplot (c) highlights the strong correlation between TAS ratio and student AA accuracy.

When the TAS ratio is low, the teacher remains overconfident and provides "sharp," low-entropy signals even when the student is being attacked. These Ineffective Robust Teachers (IRTs) fail to provide a meaningful gradient, causing the student to overfit to training noise and leading to unstable distillation.

Proposed Method: Sample-wise Adaptive Adversarial Distillation (SAAD)

To address the transferability gap, SAAD focuses on aligning the student's learning process with the teacher's most informative signals through three main pillars:

1. Entropy-based Weighting

SAAD weights training samples based on the entropy of the teacher's output. High entropy on a student-crafted adversarial example indicates a high-quality TAS—where the teacher's decision boundary is being meaningfully challenged. By prioritizing these samples, SAAD ensures the student learns from the teacher's most relevant defensive features.

Entropy distributions for an Effective Robust Teacher (top) vs. an Ineffective Robust Teacher (bottom). IRTs exhibit lower entropy, signifying overconfidence that hinders distillation.

2. Clean Distillation (SAAD-C)

For samples where the attack fails to transfer (low entropy), SAAD employs "clean distillation." Instead of forcing a robust gradient from an uninformative signal, the student learns to match the teacher's predictions on unperturbed images, helping maintain high clean accuracy.

3. Computational Efficiency

To mitigate the cost of involving a large teacher in the inner loop of adversarial generation, SAAD utilizes a first-order Taylor expansion to approximate the teacher's response. This approach achieves a nearly 4x speedup compared to standard teacher-involved distillation methods.

Key Results

We evaluated SAAD across CIFAR-10, CIFAR-100, and Tiny-ImageNet benchmarks:

  • Superior Robustness: On CIFAR-10 with a ResNet-18 student, SAAD achieved 50.35% AutoAttack (AA) accuracy when distilling from difficult teachers, significantly outperforming IGDM (44.76%) and RSLAD (40.57%).
  • Generalization: SAAD-trained models showed superior performance on OODRobustBench, indicating that the student learns generalized robust features rather than dataset-specific artifacts.
  • Efficiency: The fast inner maximization strategy allowed for training with significantly lower GPU memory and time overhead while maintaining high performance.

Conclusion

The "Mentor’s Dilemma" in adversarial distillation arises from a lack of transferability between student-crafted attacks and the teacher's defensive logic. By adaptively weighting samples based on teacher entropy, SAAD effectively bridges this gap, allowing even the most "stubborn" teachers to produce highly robust students. Future work will explore the causal architectural factors behind low transferability and the potential for curriculum-based distillation strategies.

Summary updated

BibTeX
@misc{lee2025sample,
  author = {Hongsin Lee and Hye Won Chung},
  title = {{Sample-wise Adaptive Weighting for Transfer Consistency in Adversarial Distillation}},
  year = {2025},
  eprint = {2512.10275},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.10275},
}
Figure