arXiv(opens in a new tab)Computer ScienceNov 2015Cited by 6 papers on PaperVantage

Manuscript Offprint

arXiv:1511.07528

The Limitations of Deep Learning in Adversarial Settings

Nicolas Papernot, P. Mcdaniel, S. Jha, Matt Fredrikson, Z. Celik, A. Swami

Abstract

Deep learning takes advantage of large datasets and computationally efficient training algorithms to outperform other approaches at various machine learning tasks. However, imperfections in the training phase of deep neural networks make them vulnerable to adversarial samples: inputs crafted by adversaries with the intent of causing deep neural networks to misclassify. In this work, we formalize the space of adversaries against deep neural networks (DNNs) and introduce a novel class of algorithms to craft adversarial samples based on a precise understanding of the mapping between inputs and outputs of DNNs. In an application to computer vision, we show that our algorithms can reliably produce samples correctly classified by human subjects but misclassified in specific targets by a DNN with a 97% adversarial success rate while only modifying on average 4.02% of the input features per sample. We then evaluate the vulnerability of different sample classes to adversarial perturbations by defining a hardness measure. Finally, we describe preliminary work outlining defenses against adversarial samples by defining a predictive measure of distance between a benign input and a target classification.

Accepted to the 1st IEEE European Symposium on Security & Privacy, IEEE 2016. Saarbrucken, Germany.

I Introduction

Large neural networks, recast as deep neural networks (DNNs) in the mid 2000s, altered the machine learning landscape by outperforming other approaches in many tasks. This was made possible by advances that reduced the computational complexity of training [20]. For instance, Deep learning (DL) can now take advantage of large datasets to achieve accuracy rates higher than previous classification techniques. In short, DL is transforming computational processing of complex data in many domains such as vision [24, 37], speech recognition [15, 32, 33], language processing [13], financial fraud detection [23], and recently malware detection [14].

This increasing use of deep learning is creating incentives for adversaries to manipulate DNNs to force misclassification of inputs. For instance, applications of deep learning use image classifiers to distinguish inappropriate from appropriate content, and text and image classifiers to differentiate between SPAM and non-SPAM email. An adversary able to craft misclassified inputs would profit from evading detection–indeed such attacks occur today on non-DL classification systems [6, 7, 22]. In the physical domain, consider a driverless car system that uses DL to identify traffic signs [12]. If slightly altering “STOP” signs causes DNNs to misclassify them, the car would not stop, thus subverting the car’s safety.

Figure

Fig. 1: Adversarial sample generation - Distortion is added to input samples to force the DNN to output adversary-selected classification (min distortion =0.26%=0.26\%, max distortion =13.78%=13.78\%, and average distortion ε=4.06%\varepsilon=4.06\%).

An adversarial sample is an input crafted to cause deep learning algorithms to misclassify. Note that adversarial samples are created at test time, after the DNN has been trained by the defender, and do not require any alteration of the training process. Figure 1 shows examples of adversarial samples taken from our validation experiments. It shows how an image originally showing a digit can be altered to force a DNN to classify it as another digit. Adversarial samples are created from benign samples by adding distortions exploiting the imperfect generalization learned by DNNs from finite training sets [4], and the underlying linearity of most components used to build DNNs [18]. Previous work explored DNN properties that could be used to craft adversarial samples [18, 30, 36]. Simply put, these techniques exploit gradients computed by network training algorithms: instead of using these gradients to update network parameters as would normally be done, gradients are used to update the original input itself, which is subsequently misclassified by DNNs.

In this paper, we describe a new class of algorithms for adversarial sample creation against any feedforward (acyclic) DNN [31] and formalize the threat model space of deep learning with respect to the integrity of output classification. Unlike previous approaches mentioned above, we compute a direct mapping from the input to the output to achieve an explicit adversarial goal. Furthermore, our approach only alters a (frequently small) fraction of input features leading to reduced perturbation of the source inputs. It also enables adversaries to apply heuristic searches to find perturbations leading to input targeted misclassifications (perturbing inputs to result in a specific output classification).

More formally, a DNN models a multidimensional function F:X↦Y\mathbf{F}:\mathbf{X}\mapsto\mathbf{Y} where X\mathbf{X} is a (raw) feature vector and Y\mathbf{Y} is an output vector. We construct an adversarial sample X∗\mathbf{X}^{*} from a benign sample X\mathbf{X} by adding a perturbation vector δX\delta_{\mathbf{X}} solving the following optimization problem:

arg⁡min⁡δX∥δX∥ s.t. F(X+δX)=Y∗\arg\min_{\delta_{\mathbf{X}}}\|\delta_{\mathbf{X}}\|\textbf{ s.t. }\mathbf{F}\big(\mathbf{X}+\delta_{\mathbf{X}}\big)=\mathbf{Y}^{*}

where X∗=X+δX\mathbf{X}^{*}=\mathbf{X}+\delta_{\mathbf{X}} is the adversarial sample, Y∗\mathbf{Y}^{*} is the desired adversarial output, and ∥⋅∥\|\cdot\| is a norm appropriate to compare the DNN inputs. Solving this problem is non-trivial, as properties of DNNs make it non-linear and non-convex [25]. Thus, we craft adversarial samples by constructing a mapping from input perturbations to output variations. Note that all research mentioned above took the opposite approach: it used output variations to find corresponding input perturbations. Our understanding of how changes made to inputs affect a DNN’s output stems from the evaluation of the forward derivative: a matrix we introduce and define as the Jacobian of the function learned by the DNN. The forward derivative is used to construct adversarial saliency maps indicating input features to include in perturbation δX\delta_{\mathbf{X}} in order to produce adversarial samples inducing a certain behavior from the DNN.

Forward derivatives approaches are much more powerful than gradient descent techniques used in prior systems. They are applicable to both supervised and unsupervised architectures and allow adversaries to generate information for broad families of adversarial samples. Indeed, adversarial saliency maps are versatile tools based on the forward derivative and designed with adversarial goals in mind, giving greater control to adversaries with respect to the choice of perturbations. In our work, we consider the following questions to formalize the security of DL in adversarial settings: (1) “What is the minimal knowledge required to perform attacks against DL?”, (2) “How can vulnerable or resistant samples be identified?”, and (3) “How are adversarial samples perceived by humans?”.

The adversarial sample generation algorithms are validated using the widely studied LeNet architecture (a pioneering DNN used for hand-written digit recognition [26]) and MNIST dataset [27]. We show that any input sample can be perturbed to be misclassified as any target class with 97.10%97.10\% success while perturbing on average 4.02%4.02\% of the input features per sample. The computational costs of the sample generation are modest; samples were each generated in less than a second in our setup. Lastly, we study the impact of our algorithmic parameters on distortion and human perception of samples. This paper makes the following contributions:

  • We formalize the space of adversaries against classification DNNs with respect to adversarial goal and capabilities. Here, we provide a better understanding of how attacker capabilities constrain attack strategies and goals.
  • We introduce a new class of algorithms for crafting adversarial samples solely by using knowledge of the DNN architecture. These algorithms (1) exploit forward derivatives that inform the learned behavior of DNNs, and (2) build adversarial saliency maps enabling an efficient exploration of the adversarial-samples search space.
  • We validate the algorithms using a widely used computer vision DNN. We define and measure sample distortion and source-to-target hardness, and explore defenses against adversarial samples. We conclude by studying human perception of distorted samples.

References (31)

  • The security of machine learning
  • Can machine learning be secure? In Proceedings of the 2006 ACM Symposium on Information, computer and communications security, pages 16–25
  • Theano: a cpu and gpu math expression compiler
  • Evasion attacks against machine learning at test time
  • Pattern recognition systems under attack: Design issues and research challenges
  • Security evaluation of pattern classifiers under attack
  • Support vector machines under adversarial label noise
  • Poisoning attacks against support vector machines
  • Poisoning behavioral malware clustering
  • Neural Networks, 32:333–338, 2012
  • A unified architecture for natural language processing: Deep neural networks with task learning
  • Large-scale malware classification using random projections and neural networks
  • IEEE Transactions on Audio, Speech, and Language Processing, 20(1):30–42, 2012
  • Evading network anomaly detection systems: formal reasoning and practical techniques
  • Explaining and harnessing adversarial examples
  • Towards deep neural network architectures robust to adversarial examples
  • Neural networks, 2(5):359–366, 1989
  • Adversarial machine learning
  • Imagenet classification with deep convolutional neural networks
  • Exploring strategies for training deep neural networks
  • Proceedings of the IEEE, 86(11):2278–2324, 1998
  • The mnist database of handwritten digits, 1998
  • Deep neural networks are easily fooled: High confidence predictions for unrecognizable images
  • Learning representations by back-propagating errors
  • Convolutional, long short-term memory, fully connected deep neural networks
  • Long short-term memory recurrent neural network architectures for large scale acoustic modeling
  • Deep Inside Convolutional Networks: Visualising Image Classification Models and Saliency Maps
  • Going Deeper with Convolutions
  • Intriguing properties of neural networks
  • Closing the gap to human-level performance in face verification
  • How transferable are features in deep neural networks? In Advances in Neural Information Processing Systems, pages 3320–3328, 2014