Defending Against Frequency-Based Attacks with Diffusion Models

Fatemeh Amerehi, Patrick Healy
4/15/2025
cs.CV

No confident code implementation found for this paper.

Abstract

Adversarial training is a common strategy for enhancing model robustness against adversarial attacks. However, it is typically tailored to the specific attack types it is trained on, limiting its ability to generalize to unseen threat models. Adversarial purification offers an alternative by leveraging a generative model to remove perturbations before classification. Since the purifier is trained independently of both the classifier and the threat models, it is better equipped to handle previously unseen attack scenarios. Diffusion models have proven highly effective for noise purification, not only in countering pixel-wise adversarial perturbations but also in addressing non-adversarial data shifts. In this study, we broaden the focus beyond pixel-wise robustness to explore the extent to which purification can mitigate both spectral and spatial adversarial attacks. Our findings highlight its effectiveness in handling diverse distortion patterns across low- to high-frequency regions.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{amerehi2025defending,
  title  = {Defending Against Frequency-Based Attacks with Diffusion Models},
  author = {Fatemeh Amerehi and Patrick Healy},
  year   = {2025},
  eprint = {2504.11034},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2504.11034v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2504.11034.svg)](https://codeofpaper.com/paper/2504.11034)

Discussion