[Paper Review] Detecting Adversarial Examples through Nonlinear Dimensionality Reduction
This paper proposes a multilayer adversarial example detector that uses t-SNE for nonlinear dimensionality reduction to separate natural from adversarial inputs in deep neural network feature spaces. By training detectors on t-SNE projections of natural and adversarial samples, the method achieves high detection accuracy—maintaining classifier accuracy above 0.8 on MNIST and 0.7 on CIFAR10 under FGSM, BIM, and PGD attacks—demonstrating effectiveness against non-adaptive attackers.
Deep neural networks are vulnerable to adversarial examples, i.e., carefully-perturbed inputs aimed to mislead classification. This work proposes a detection method based on combining non-linear dimensionality reduction and density estimation techniques. Our empirical findings show that the proposed approach is able to effectively detect adversarial examples crafted by non-adaptive attackers, i.e., not specifically tuned to bypass the detection method. Given our promising results, we plan to extend our analysis to adaptive attackers in future work.
Motivation & Objective
- To address the vulnerability of deep neural networks to adversarial examples, especially in safety-critical applications.
- To develop a detection-based defense that identifies and rejects out-of-manifold adversarial inputs without retraining the main classifier.
- To validate the manifold hypothesis by showing that adversarial examples lie outside the natural data manifold in high-dimensional representations.
- To design a multilayer detector that leverages t-SNE projections to distinguish natural from adversarial samples across multiple network layers.
- To provide a computationally efficient alternative to adversarial training by requiring adversarial sample generation only once during detector setup.
Proposed method
- The method employs t-SNE to project high-dimensional neural activations from intermediate layers into low-dimensional spaces (2D or 3D) where natural and adversarial samples become separable.
- A Layer Detector (LD) is attached to each monitored layer, using a Mapper (t-SNE-based) and an Estimator (density estimator) to compute class probabilities for each sample.
- The detector aggregates probability scores across layers into a data series, which the MultilayerDetector (MLD) analyzes for anomalous trends indicative of adversarial inputs.
- Adversarial samples are generated once using the Carlini-Wagner attack to train the Mapper components, enabling generalization to other attacks like FGSM, BIM, and PGD.
- The MLD overrides the classifier’s output with a special 'adversarial' class (N+1) when anomalous patterns are detected, ensuring rejection of perturbed inputs.
- The approach treats the full sequence of probability scores across layers as a holistic signal, exploiting the fact that adversarial examples show inconsistent, low-confidence trends across layers.
Experimental results
Research questions
- RQ1Can t-SNE-based nonlinear dimensionality reduction effectively separate natural and adversarial examples in deep neural network feature spaces?
- RQ2Does the multilayer detector architecture, based on t-SNE projections and probability trend analysis, improve adversarial example detection compared to single-layer methods?
- RQ3Can a detector trained on one attack type (e.g., Carlini-Wagner) generalize to detect adversarial examples crafted by other attack algorithms (e.g., FGSM, BIM, PGD)?
- RQ4To what extent does the detector preserve classifier accuracy on clean and slightly perturbed inputs while rejecting strongly perturbed adversarial samples?
- RQ5How effective is the method against non-adaptive attackers, and what are its limitations when facing adaptive adversaries?
Key findings
- The detector maintains classifier accuracy above 0.8 on the MNIST dataset and above 0.7 on CIFAR10 under FGSM, BIM, and PGD attacks with L2 norm perturbations.
- t-SNE projections trained on mixed natural and adversarial samples successfully separate the two classes into distinct clusters, confirming the manifold hypothesis.
- The probability score trends across layers differ significantly between natural and adversarial samples: natural samples show consistent high confidence for the true class, while adversarial samples exhibit low, inconsistent scores.
- The method requires adversarial sample generation only once during detector training, unlike adversarial training, which demands retraining with adversarial samples at every epoch.
- The detector successfully identifies and rejects adversarial examples even when they are crafted via different attack algorithms than those used during Mapper training, indicating generalization capability.
- Security evaluation curves show that the detector significantly improves robustness, preserving high accuracy even as perturbation strength increases.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.