Detecting Adversarial Data Using Perturbation Forgery

Qian Wang, Chen Li, Yuchen Luo, Hefei Ling, Shijuan Huang, Ruoxi Jia, Ning Yu

Introduction

Deep Neural Networks (DNNs) are notoriously fragile when faced with adversarial attacks—subtle, often invisible perturbations added to images that cause models to fail. While detectors exist to flag these images, they face two major hurdles: the generalization gap (failing on "unseen" attacks) and the rise of generative attacks (GANs and Diffusion models creating "natural-looking" forgeries that bypass standard uniform-noise detectors).

Researchers have developed Perturbation Forgery (PFD), a novel defense mechanism that trains adversarial detectors to recognize "unseen" attacks by creating a synthetic "open covering" of possible noise distributions. Unlike previous methods, PFD achieves state-of-the-art detection accuracy (often >99% AUROC) with significantly lower computational overhead.

Methodology: The PFD Pipeline

The PFD approach involves a three-stage pipeline to produce robust training data for a binary detector:

  1. Noise Distribution Perturbation: Instead of training on one specific attack, the system estimates the multivariate Gaussian distribution of a common attack (e.g., FGSM). It then "wiggles" the mean and covariance to create a massive family of proximal noise distributions, aiming to cover the entire adversarial noise space.
  2. Sparse Mask Generation: To mimic sophisticated generative and physical attacks, noise is not applied uniformly. Using saliency maps, GradCAM, and Sobel filters, the system identifies high-frequency and "important" areas to create a sparse mask, ensuring synthetic noise only appears in these specific regions.
  3. Pseudo-Adversarial Data Production: By combining the perturbed noise and sparse masks, "pseudo-adversarial" images are generated. A binary classifier (e.g., XceptionNet) is then trained to distinguish these forgeries from natural images.
The three-stage PFD pipeline: Noise Distribution Perturbation, Sparse Mask Generation, and Pseudo-Adversarial Data Production.

Key Insights

  • The "Open Covering" Hypothesis: Adversarial noise distributions, while diverse, are mathematically proximal. By continuously perturbing a known distribution, PFD effectively "covers" the space where unseen attacks are likely to reside.
  • The Importance of Sparsity: Traditional detectors look for global noise. By forcing the detector to focus on local, salient, and high-frequency areas via sparse masks, the model becomes significantly better at catching GAN- and Diffusion-based attacks that "hide" perturbations in complex textures.
  • Efficiency via Training-Time Complexity: Many high-performing detectors rely on slow diffusion models during inference. PFD moves the complexity to the training phase (generating forgeries), allowing the final detector to be a standard, fast neural network.

Experimental Results

The method was validated across diverse datasets (ImageNet100, CIFAR-10, CelebA-HQ) and a wide spectrum of attacks. PFD achieves state-of-the-art detection accuracy, often exceeding 99% AUROC. Notably, on ImageNet100, it achieved an AUROC of 0.9931 against the unseen MIM attack, outperforming specialized detectors like LID and LiBRe.

Efficiency is a major advantage: PFD processed 100 samples in just 4.85 seconds, nearly 80x faster than the diffusion-based EPSAD (396.81s), making it far more practical for real-world deployment. It also showed near-perfect detection (>0.99 AUROC) for physical attacks like adversarial stickers and glasses on face datasets.

Comparison of PFD (Ours) against baseline detectors in terms of model-agnosticism, unseen-attack detection, and computational overhead.

Conclusion and Future Work

While PFD is highly effective, it requires at least 500 samples of a known attack for initial distribution estimation. Additionally, as a detector, it flags adversarial data but does not "purify" it or recover the original signal. Future research may extend this "perturbation forgery" concept to other modalities, such as audio or video, to provide broader protection against adversarial threats.

Reference: Wang, Q., et al. "Detecting Adversarial Data Using Perturbation Forgery." Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2024.

Summary updated

BibTeX
@inproceedings{wang2025detecting,
  author = {Qian Wang and Chen Li and Yuchen Luo and Hefei Ling and Shijuan Huang and Ruoxi Jia and Ning Yu},
  title = {{Detecting Adversarial Data Using Perturbation Forgery}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.01299},
}
Figure