Skip to main content
QUICK REVIEW

[Paper Review] SafetyNet: Detecting and Rejecting Adversarial Examples Robustly

Jiajun Lu, Theerasit Issaranon|arXiv (Cornell University)|Apr 1, 2017
Adversarial Robustness in Machine LearningComputer Science23 references41 citations
TL;DR

This paper proposes SafetyNet, a robust defense that detects and rejects adversarial examples by analyzing quantized ReLU activation patterns in deep networks using an RBF-SVM detector. It demonstrates strong resistance to both Type I and Type II attacks across multiple datasets and networks, with minimal false positives and high detection rates even against unseen attack methods.

ABSTRACT

We describe a method to produce a network where current methods such as DeepFool have great difficulty producing adversarial samples. Our construction suggests some insights into how deep networks work. We provide a reasonable analyses that our construction is difficult to defeat, and show experimentally that our method is hard to defeat with both Type I and Type II attacks using several standard networks and datasets. This SafetyNet architecture is used to an important and novel application SceneProof, which can reliably detect whether an image is a picture of a real scene or not. SceneProof applies to images captured with depth maps (RGBD images) and checks if a pair of image and depth map is consistent. It relies on the relative difficulty of producing naturalistic depth maps for images in post processing. We demonstrate that our SafetyNet is robust to adversarial examples built from currently known attacking approaches.

Motivation & Objective

  • To develop a defense mechanism that reliably detects and rejects adversarial examples without relying on gradient-based defenses.
  • To address the vulnerability of existing detection methods to Type II attacks, where adversaries craft inputs that evade detection while remaining misclassified.
  • To improve generalization of adversarial detection across diverse attack types, including transferable and universal perturbations.
  • To enable reliable detection of unnatural image-depth pairs in real-world applications using SceneProof, a novel application of SafetyNet.
  • To provide a theoretically grounded, robust detection framework that is difficult to defeat through gradient-based or transfer-based attacks.

Proposed method

  • SafetyNet integrates a pre-trained deep classifier (e.g., VGG19 or ResNet) with an RBF-SVM detector that analyzes discrete codes from late-stage ReLU activations.
  • Activation patterns are quantized into discrete codes, forming a compact representation that captures high-level feature statistics.
  • The RBF-SVM is trained on natural images to learn the distribution of valid activation patterns, enabling it to flag deviations as adversarial.
  • The method is designed to be robust to Type II attacks by ensuring that adversarial examples induce unnatural activation patterns even when misclassification is not the goal.
  • SceneProof extends SafetyNet to RGB-D images by detecting inconsistencies between RGB images and their depth maps using the same activation-based detection principle.
  • The system is trained on natural scene pairs and tested on diverse unnatural inputs (e.g., zeroed depth, downsampled, compressed, synthetic), ensuring generalization to unseen unnatural data types.

Experimental results

Research questions

  • RQ1Can a detector based on late-stage ReLU activation patterns reliably distinguish adversarial examples from natural inputs across diverse attack types?
  • RQ2Is the proposed detection mechanism robust to Type II attacks, where adversaries craft inputs that are both misclassified and undetected?
  • RQ3Can the same detection mechanism generalize to unseen data distributions, such as artificially manipulated or synthetic RGB-D pairs?
  • RQ4To what extent does the detector remain effective when attacked using methods not seen during training, including transfer attacks?
  • RQ5Can the detection framework be effectively applied to real-world multimodal data, such as RGB-D images, to detect unnatural or forged inputs?

Key findings

  • SafetyNet achieved a 97.67% detection rate for misclassified adversarial examples on ImageNet-1000 under DeepFool5 attacks, with only 2.32% of adversarial examples evading detection.
  • On CIFAR-10, the m-SVM detector with regularization achieved a 95.51% detection rate for misclassified adversarial examples under the Fast gradient attack, with 96.24% of such examples being rejected.
  • For Type II attacks on ImageNet-1000, the m-SVM detector with regularization detected 97.67% of adversarial examples that were misclassified, indicating strong robustness.
  • SceneProof successfully detected unnatural image-depth pairs with high accuracy: 100% of low-quality JPG-compressed pairs and 95.51% of synthetic Sintel pairs were rejected.
  • The detector generalized well to unseen unnatural inputs, rejecting 87.94% of adversarial examples generated via unseen attacks in the CIFAR-10 test set.
  • The method significantly outperformed prior detection methods like Metzen et al.’s, which were easily fooled by adversarial examples not used in training.

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.