Skip to main content
QUICK REVIEW

[Paper Review] Distillation as a Defense to Adversarial Perturbations against Deep Neural Networks

Nicolas Papernot, Patrick McDaniel|arXiv (Cornell University)|Nov 13, 2015
Adversarial Robustness in Machine LearningComputer Science8 citations
TL;DR

This paper proposes defensive distillation, a training technique that enhances deep neural networks' robustness against adversarial perturbations by smoothing the model's decision boundaries. By transferring knowledge from a teacher network to a student network using soft labels, the method reduces gradient magnitudes used in crafting adversarial examples, reducing attack success rates from 95% to under 0.5% on MNIST and below 5% on CIFAR-10 while preserving original accuracy.

ABSTRACT

Deep learning algorithms have been shown to perform extremely well on many classical machine learning problems. However, recent studies have shown that deep learning, like other machine learning techniques, is vulnerable to adversarial samples: inputs crafted to force a deep neural network (DNN) to provide adversary-selected outputs. Such attacks can seriously undermine the security of the system supported by the DNN, sometimes with devastating consequences. For example, autonomous vehicles can be crashed, illicit or illegal content can bypass content filters, or biometric authentication systems can be manipulated to allow improper access. In this work, we introduce a defensive mechanism called defensive distillation to reduce the effectiveness of adversarial samples on DNNs. We analytically investigate the generalizability and robustness properties granted by the use of defensive distillation when training DNNs. We also empirically study the effectiveness of our defense mechanisms on two DNNs placed in adversarial settings. The study shows that defensive distillation can reduce effectiveness of sample creation from 95% to less than 0.5% on a studied DNN. Such dramatic gains can be explained by the fact that distillation leads gradients used in adversarial sample creation to be reduced by a factor of 10^30. We also find that distillation increases the average minimum number of features that need to be modified to create adversarial samples by about 800% on one of the DNNs we tested.

Motivation & Objective

  • To address the growing threat of adversarial perturbations that can mislead deep neural networks in security-critical applications.
  • To develop a defense mechanism that enhances model robustness without altering the network architecture or compromising original accuracy.
  • To investigate whether knowledge distillation can be repurposed as a general-purpose defense against adversarial examples.
  • To analyze the theoretical and empirical impact of distillation on gradient sensitivity and adversarial robustness.

Proposed method

  • Adaptive distillation is applied during training by using soft labels (temperature-scaled probabilities) from a pre-trained teacher network to train a student network.
  • The distillation process reduces the magnitude of gradients in the input space, making small perturbations less effective at changing model predictions.
  • A temperature parameter is used to soften the output probabilities, encouraging smoother decision boundaries and reducing sensitivity to input perturbations.
  • The student network is trained to match the soft labels of the teacher, which results in a more robust and generalized model.
  • The defense is applied post-training and does not require changes to inference or model architecture.
  • The method is evaluated on standard datasets (MNIST, CIFAR-10) under adversarial attack conditions using FGSM and other adversarial crafting techniques.

Experimental results

Research questions

  • RQ1Can knowledge distillation be repurposed as a defense mechanism against adversarial examples in deep neural networks?
  • RQ2How does defensive distillation affect the gradient magnitude and sensitivity of DNNs to input perturbations?
  • RQ3To what extent does defensive distillation reduce the success rate of adversarial attack algorithms like FGSM?
  • RQ4Does defensive distillation maintain the original model's accuracy while improving robustness?
  • RQ5Can defensive distillation be applied generally across different DNN architectures and datasets?

Key findings

  • Defensive distillation reduced the success rate of adversarial sample creation from 95% to less than 0.5% on the MNIST dataset.
  • On the CIFAR-10 dataset, the attack success rate was reduced to below 5% while maintaining the original model's accuracy.
  • The method reduced the gradient magnitude used in adversarial attacks by a factor of 10^30, significantly diminishing the effectiveness of gradient-based attack algorithms.
  • Defensive distillation increased the average minimum number of features that must be modified to create an adversarial sample by approximately 800% on one tested DNN.
  • The defense is effective even when the attacker knows the model uses defensive distillation, as it does not create exploitable patterns or side channels.
  • The technique introduces minimal training overhead and can be applied to existing DNNs without architectural changes.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.