Skip to main content
QUICK REVIEW

[Paper Review] Detecting Adversarial Examples in Convolutional Neural Networks

Stefanos Pertigkiozoglou, Petros Maragos|arXiv (Cornell University)|Dec 8, 2018
Adversarial Robustness in Machine LearningComputer Science16 references11 citations
TL;DR

This paper proposes three novel methods for detecting adversarial examples in convolutional neural networks: (1) regularization-based adversarial retraining of the final layer, (2) histogram-based SVM classification using hidden layer activations, and (3) residual image analysis to detect ignored input features. The combination of these methods achieves state-of-the-art performance on MNIST, with 98.9% precision and 92.7% recall using the BIM attack, and an AUC of 99.3% for DeepFool attacks.

ABSTRACT

The great success of convolutional neural networks has caused a massive spread of the use of such models in a large variety of Computer Vision applications. However, these models are vulnerable to certain inputs, the adversarial examples, which although are not easily perceived by humans, they can lead a neural network to produce faulty results. This paper focuses on the detection of adversarial examples, which are created for convolutional neural networks that perform image classification. We propose three methods for detecting possible adversarial examples and after we analyze and compare their performance, we combine their best aspects to develop an even more robust approach. The first proposed method is based on the regularization of the feature vector that the neural network produces as output. The second method detects adversarial examples by using histograms, which are created from the outputs of the hidden layers of the neural network. These histograms create a feature vector which is used as the input of an SVM classifier, which classifies the original input either as an adversarial or as a real input. Finally, for the third method we introduce the concept of the residual image, which contains information about the parts of the input pattern that are ignored by the neural network. This method aims at the detection of possible adversarial examples, by using the residual image and reinforcing the parts of the input pattern that are ignored by the neural network. Each one of these methods has some novelties and by combining them we can further improve the detection results. For the proposed methods and their combination, we present the results of detecting adversarial examples on the MNIST dataset. The combination of the proposed methods offers some improvements over similar state of the art approaches.

Motivation & Objective

  • To address the vulnerability of trained CNNs to adversarial examples that are imperceptible to humans but cause misclassification.
  • To develop detection methods that do not require retraining the entire network, focusing on post-hoc detection.
  • To improve detection robustness by combining multiple complementary detection mechanisms.
  • To evaluate the proposed methods on the MNIST dataset using standard adversarial attacks like BIM and DeepFool.
  • To demonstrate that combining detection methods enhances both precision and recall beyond individual approaches.

Proposed method

  • The first method performs adversarial retraining on the final layer using regularization of the feature vector output from the network, improving robustness to adversarial perturbations.
  • The second method constructs feature vectors from histograms of absolute values of hidden layer outputs, which are then classified using an SVM to distinguish real from adversarial inputs.
  • The third method introduces the residual image, defined as the difference between input and its network-processed version, to identify features ignored by the classifier.
  • The residual image is used to perturb the input in a way that reinforces correct classification, enabling detection of adversarial examples that misclassify.
  • The three methods are combined using logical operations (AND, OR, majority voting) to balance precision and recall, with a hybrid strategy using histogram detection combined with at least one other method.
  • A threshold-based decision rule is applied to the residual image method, and ROC and precision-recall curves are generated by varying this threshold across different attack types.

Experimental results

Research questions

  • RQ1Can regularization of the final layer’s feature vector improve adversarial example detection without retraining the full network?
  • RQ2Can histogram-based representations of hidden layer activations effectively distinguish adversarial from real inputs using an SVM classifier?
  • RQ3Can the residual image, capturing features ignored by the network, serve as a reliable signal for detecting adversarial examples?
  • RQ4How does combining multiple detection methods improve overall detection performance in terms of precision and recall?
  • RQ5Can a hybrid detection strategy—using histogram detection combined with at least one other method—achieve high precision without sacrificing recall?

Key findings

  • The combination of all three methods using logical AND (T₁) achieves 99.5% precision and 60.1% recall on BIM attacks, indicating high confidence in detection but limited coverage.
  • The combination using logical OR (T₂) achieves 83.6% precision and 99.4% recall on BIM attacks, showing high sensitivity but many false positives.
  • The majority-vote combination (T₃) achieves 95.5% precision and 91.8% recall on BIM, and 96.2% precision and 96.25% recall on DeepFool, balancing both metrics effectively.
  • The hybrid strategy T₄ = H ∧ (R ∨ I) achieves 98.8% precision and 89.6% recall on BIM, and 98.9% precision and 92.7% recall on DeepFool, outperforming individual methods and many state-of-the-art approaches.
  • The ROC AUC reaches 98.7% for BIM and 99.3% for DeepFool, indicating strong overall detection performance across varying thresholds.
  • The Precision-Recall curves and ROC curves demonstrate that the detection performance is robust and tunable by adjusting the threshold on the residual image method.

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.