[Paper Review] Detecting Adversarial Data by Probing Multiple Perturbations Using Expected Perturbation Score
This paper proposes Expected Perturbation Score (EPS), a novel statistic that enhances adversarial detection by aggregating scores from multiple perturbed views of a sample. Using a pre-trained diffusion model, EPS-AD computes maximum mean discrepancy (MMD) between test samples and natural data, achieving state-of-the-art AUROC scores (up to 0.9997) on ImageNet and CIFAR-10 under diverse attacks, with low inference cost (0.954s per image at T=20).
Adversarial detection aims to determine whether a given sample is an adversarial one based on the discrepancy between natural and adversarial distributions. Unfortunately, estimating or comparing two data distributions is extremely difficult, especially in high-dimension spaces. Recently, the gradient of log probability density (a.k.a., score) w.r.t. the sample is used as an alternative statistic to compute. However, we find that the score is sensitive in identifying adversarial samples due to insufficient information with one sample only. In this paper, we propose a new statistic called expected perturbation score (EPS), which is essentially the expected score of a sample after various perturbations. Specifically, to obtain adequate information regarding one sample, we perturb it by adding various noises to capture its multi-view observations. We theoretically prove that EPS is a proper statistic to compute the discrepancy between two samples under mild conditions. In practice, we can use a pre-trained diffusion model to estimate EPS for each sample. Last, we propose an EPS-based adversarial detection (EPS-AD) method, in which we develop EPS-based maximum mean discrepancy (MMD) as a metric to measure the discrepancy between the test sample and natural samples. We also prove that the EPS-based MMD between natural and adversarial samples is larger than that among natural samples. Extensive experiments show the superior adversarial detection performance of our EPS-AD.
Motivation & Objective
- To address the challenge of detecting adversarial samples by identifying discrepancies between natural and adversarial data distributions.
- To overcome the limitations of single-sample score functions, which are sensitive and insufficient for reliable detection.
- To develop a robust, generalizable detection method effective against unseen and transferable attacks.
- To leverage multi-view information from perturbed samples to improve statistical reliability and detection power.
Proposed method
- Propose Expected Perturbation Score (EPS) as a new statistic, defined as the expected score of a sample after multiple noise perturbations.
- Use a pre-trained score-based diffusion model to estimate EPS for both natural and test samples at a fixed timestep T*.
- Apply EPS-based Maximum Mean Discrepancy (MMD) to measure distributional differences between test samples and natural data.
- Simultaneously perturb natural and test images with various noise levels following the forward diffusion process to generate multi-view observations.
- Theoretical analysis proves that EPS-based MMD is larger between natural and adversarial samples than among natural samples under mild conditions.
- Design an efficient inference pipeline by selecting low-resolution inputs and sparse diffusion timesteps (e.g., T=20) to reduce computational cost.
Experimental results
Research questions
- RQ1Can a multi-view score statistic derived from multiple perturbations improve adversarial detection beyond single-sample score functions?
- RQ2Is the expected perturbation score (EPS) theoretically justified as a valid discriminator between natural and adversarial data distributions?
- RQ3How does EPS-AD perform against diverse, unseen, and transferable adversarial attacks compared to existing detectors?
- RQ4Can the computational cost of EPS-AD be minimized without sacrificing detection performance through resolution and timestep optimization?
- RQ5Does using a pre-trained diffusion model on ImageNet enable zero-shot or cross-dataset adversarial detection with strong generalization?
Key findings
- EPS-AD achieves state-of-the-art AUROC of 0.9997 on ImageNet under FGSM-ℓ₂ attack (ε=4/255), outperforming existing methods including KD, LID, MD, and LiBRe.
- With a resolution of 256×256 and T=20, EPS-AD achieves 0.9917 AUROC on ImageNet and only takes 0.954 seconds per image, demonstrating high efficiency.
- On CIFAR-10, EPS-AD reaches 0.9995 AUROC at T=20 with a time cost of 0.043 seconds per image, surpassing KD, LID, and MD.
- Cross-dataset evaluation shows EPS-AD* (using ImageNet-pretrained model) achieves 0.9987 AUROC on CIFAR-10 under PGD attack, indicating strong generalization.
- The method maintains high performance even at low timesteps (T=10) and with reduced resolution (128×128), with inference time under 1 second on ImageNet.
- Theoretical analysis confirms that EPS-based MMD is larger between natural and adversarial samples than among natural samples, justifying its use as a detection metric.
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.