Adversarial Training via Adaptive Knowledge Amalgamation of an Ensemble of Teachers

Shayan Mohajer Hamidi, Linfeng YearXiv 2024 · DOI

Introduction

Deep Neural Networks (DNNs) are highly susceptible to adversarial attacks—small, human-imperceptible perturbations that can cause catastrophic classification errors. While Adversarial Training (AT) is the most effective defense, it faces two primary challenges: the capacity gap, where small models lack the parameters to learn robust features, and the generalization gap, where models overfit to specific attack types (like PGD) and remain vulnerable to others. This paper introduces AT-AKA, a framework designed to bridge these gaps by distilling robust knowledge from an ensemble of teachers into a lightweight student model.

The AT-AKA Framework

The core of the Adversarial Training via Adaptive Knowledge Amalgamation (AT-AKA) method lies in generating a diverse set of adversarial samples and adaptively merging the resulting insights from multiple teacher models.

The AT-AKA framework architecture, illustrating the flow from input $x$ through SVGD-generated samples to an ensemble of teachers and finally distillation into a student model $S$.

Diverse Attack Generation via SVGD

Standard adversarial training often relies on Projected Gradient Descent (PGD), which tends to converge to similar adversarial points, limiting the diversity of the training data. AT-AKA utilizes Stein Variational Gradient Descent (SVGD) to generate adversarial samples. By incorporating a "repulsive force" term, SVGD ensures that the generated attacks are spatially diverse, exposing the model to a wider variety of edge cases.

Adaptive Amalgamation and Distillation

These diverse attacks are processed by an ensemble of sub-models (teachers). Each teacher captures different aspects of the adversarial space. Their outputs (logits) are then combined using an adaptive function—such as Pareto-optimal weighting or soft weighting—to create a unified "robust truth." This amalgamated knowledge is distilled into a smaller student model (e.g., ResNet-18 or MobileNetV2) in an online fashion, where teachers and students are trained simultaneously.

Mechanism of Robustness

The primary advantage of AT-AKA over standard AT is its ability to learn more comprehensive decision boundaries. While standard PGD training creates boundaries that are highly specific to the training attack, the amalgamation process merges the insights of multiple teachers to form a more generalized and robust boundary.

Comparison of decision boundaries: (a) clean training, (b) standard PGD adversarial training, and (c-e) the proposed amalgamation of boundaries from multiple teachers.

As shown in the figure above, standard adversarial training (b) can lead to complex, jagged boundaries that may not generalize well. By contrast, the amalgamation of multiple teachers (e) creates a smoother, more resilient boundary that better separates classes even under diverse perturbations.

Key Results

The researchers evaluated AT-AKA on the CIFAR-10 and CIFAR-100 datasets, focusing on performance against the rigorous AutoAttack (AA) benchmark.

  • State-of-the-Art Robustness: On CIFAR-10, a ResNet-18 student trained with Soft AT-AKA achieved 54.80% accuracy against AutoAttack, significantly outperforming previous distillation methods like RSLAD (52.52%).
  • Efficiency in Complexity: On CIFAR-100, the performance gain was even more pronounced, with a roughly 4% improvement in AA accuracy over existing state-of-the-art methods.
  • Maintaining Clean Accuracy: Crucially, the framework improves robustness without a significant drop in "clean" accuracy, ensuring the model remains useful for standard, non-adversarial tasks.

Conclusion and Future Work

AT-AKA demonstrates that diversity in attack generation and the adaptive amalgamation of teacher insights can significantly enhance the robustness of lightweight models. While the training process is more computationally intensive than standard AT due to the ensemble and SVGD components, the resulting student models are highly efficient for deployment on edge devices. Future research will focus on scaling this approach to larger datasets like ImageNet and further optimizing the hyperparameter sensitivity of the adaptive amalgamation functions.

Summary updated

BibTeX
@misc{hamidi2024adversarial,
  author = {Shayan Mohajer Hamidi and Linfeng Ye},
  title = {{Adversarial Training via Adaptive Knowledge Amalgamation of an Ensemble of Teachers}},
  year = {2024},
  eprint = {2405.13324},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2405.13324},
}
Figure