[Paper Review] Detecting Adversarial Examples via Neural Fingerprinting
This paper proposes Neural Fingerprinting (NFP), a method that embeds unique, randomized fingerprints into deep neural networks during training to detect adversarial examples. By verifying consistency of model responses to predefined perturbations against these embedded fingerprints, NFP achieves 98–100% AUC-ROC across MNIST, CIFAR-10, and MiniImageNet under diverse grey-box and black-box attacks, demonstrating state-of-the-art detection performance with minimal computational overhead.
Deep neural networks are vulnerable to adversarial examples, which dramatically alter model output using small input changes. We propose Neural Fingerprinting, a simple, yet effective method to detect adversarial examples by verifying whether model behavior is consistent with a set of secret fingerprints, inspired by the use of biometric and cryptographic signatures. The benefits of our method are that 1) it is fast, 2) it is prohibitively expensive for an attacker to reverse-engineer which fingerprints were used, and 3) it does not assume knowledge of the adversary. In this work, we pose a formal framework to analyze fingerprints under various threat models, and characterize Neural Fingerprinting for linear models. For complex neural networks, we empirically demonstrate that Neural Fingerprinting significantly improves on state-of-the-art detection mechanisms by detecting the strongest known adversarial attacks with 98-100% AUC-ROC scores on the MNIST, CIFAR-10 and MiniImagenet (20 classes) datasets. In particular, the detection accuracy of Neural Fingerprinting generalizes well to unseen test-data under various black- and whitebox threat models, and is robust over a wide range of hyperparameters and choices of fingerprints.
Motivation & Objective
- To address the vulnerability of deep neural networks to adversarial examples that cause catastrophic mispredictions.
- To develop a detection mechanism that is effective under grey-box and black-box threat models where the adversary has limited or no access to the defense mechanism.
- To create a method that is agnostic to attack type and does not require auxiliary classifiers or complex retraining.
- To evaluate robustness against adaptive attacks, including those leveraging expectation-over-transformation (EOT) and white-box adaptive attacks.
- To demonstrate generalization of fingerprints to unseen data while maintaining strong separation from adversarial examples.
Proposed method
- NFP encodes random, biometric-like fingerprints into the model's prediction response around real data during training, using small perturbations $\Delta x$ and $\Delta y$.
- The method verifies whether the model’s sensitivity to these perturbations matches the expected fingerprint pattern, serving as a consistency check for real vs. adversarial inputs.
- Fingerprints are derived from a distribution $T_{\Delta x}$ and $T_{\Delta y}$, and are not shared with the model during inference.
- Detection is performed by comparing the model’s response to perturbations around a test input with the reference fingerprint pattern learned during training.
- The defense is evaluated using AUC-ROC with varying thresholds $\tau$, where higher scores indicate better separation between clean and adversarial data.
- An adaptive white-box attack is developed to test the limits of NFP, based on minimizing fingerprint-loss while inducing misclassification.
Experimental results
Research questions
- RQ1Can a simple, training-time embedding of randomized fingerprints detect adversarial examples across diverse attack types in grey-box and black-box settings?
- RQ2How robust is NFP against adaptive attacks that exploit knowledge of the fingerprint distribution or use expectation-over-transformation (EOT) techniques?
- RQ3Does NFP maintain high detection performance across different datasets and hyperparameter choices, including fingerprint size $N$ and perturbation magnitude $\varepsilon$?
- RQ4How does NFP compare to state-of-the-art detection baselines like LID, KD, and BU in terms of AUC-ROC under unknown attack mechanisms?
- RQ5Can a new adaptive white-box attack successfully bypass NFP, and what does this imply for the security of fingerprint-based defenses?
Key findings
- NFP achieves 98–100% AUC-ROC on MNIST, CIFAR-10, and MiniImageNet (20 classes) across a full range of adversarial attacks, including FGSM, BIM, JSMA, and CW-L2.
- On CIFAR-10, NFP outperforms LID by 11.77% on average and significantly surpasses KD+BU, KD, and BU in detection performance.
- Even when compared to LID-white-box (where LID knows the attack mechanism), NFP outperforms by 8.0% on average.
- NFP maintains high performance across a wide range of hyperparameters, including $N$ and $\varepsilon$, as shown in Figures 5 and 7.
- NFP achieves >99.5% AUC-ROC on MiniImageNet-20 with $N=20$, $\varepsilon=0.05$, and 99.96% for FGSM and 99.68% for BIM-b.
- NFP remains robust against EOT-style attacks where the adversary samples fingerprints from the same distribution, indicating resilience even when partial knowledge of the fingerprint generation is available.
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.