Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

USAD: Uncertainty-aware Statistical Adversarial Detection

About

Statistical adversarial detection (SAD) treats detection as a two-sample test. Given a reference set of clean examples (CEs) and a batch of queries, potentially containing an unknown mixture of CEs and adversarial examples (AEs), SAD decides whether the query distribution drifts away from the CE distribution while controlling the false-alarm rate. Existing SAD-based methods mainly use maximum mean discrepancy (MMD) to measure the distributional discrepancy. However, MMD's distributional properties limit its ability to capture characteristic uncertainty patterns of AEs that are crucial for detection: AEs typically exhibit abnormal feature spread (i.e., global uncertainty) and instability under perturbations (i.e., local uncertainty). To close the gap, we propose Uncertainty-aware Statistical Adversarial Detection (USAD), which explicitly captures these uncertainty patterns with two new statistics: (1) Variance Discrepancy (VD), which measures the difference in feature spread between AEs and CEs to capture global uncertainty differences. (2) Perturbation-based Covariance Discrepancy (PCD), which compares feature covariance under Gaussian perturbations to capture local uncertainty differences. By aggregating VD and PCD, USAD achieves superior detection performances over baseline methods against various adversarial attacks, highlighting the importance of considering characteristic behaviors of AEs for effective SAD. Our code is available at: https://anonymous.4open.science/r/USAD.

Zhijian Zhou, Xunye Tian, Jiacheng Zhang, Zesheng Ye, Yiyi Guo, Donghao Zhang, Liuhua Peng, Feng Liu• 2026

Related benchmarks

TaskDatasetResultRank
Adversarial DetectionCIFAR-10 (test)
Test Power1
160
Statistical Adversarial DetectionImageNet 1k (test)
Test Power100
160
Adversarial DetectionImageNet-1K AutoAttack 1.0 (test)
Test Attack Power1
32
Adversarial DetectionCIFAR-10
FGSM Acc100
25
Adversarial DetectionImageNet-1K BIM attack 1.0 (test)
Test Power100
4
Adversarial DetectionImageNet-1K CW attack 1.0 (test)
Test Power1
2
Adversarial DetectionImageNet-1K FGSM attack 1.0 (test)
Test Power (epsilon)1
2
Adversarial DetectionImageNet-1K PGD attack 1.0 (test)
Detection Power (PGD 1.0)100
2
Showing 8 of 8 rows

Other info

Follow for update