Defending against Adversarial Audio via Diffusion Model

Shutong Wu, Jiong Wang, Wei Ping, Weili Nie, Chaowei Xiao
2/12/2026

No official code found. Best implementation: cychomatica/AudioPure (35 stars, last commit 2023-03-02).

Abstract

Deep learning models have been widely used in commercial acoustic systems in recent years. However, adversarial audio examples can cause abnormal behaviors for those acoustic systems, while being hard for humans to perceive. Various methods, such as transformation-based defenses and adversarial training, have been proposed to protect acoustic systems from adversarial attacks, but they are less effective against adaptive attacks. Furthermore, directly applying the methods from the image domain can lead to suboptimal results because of the unique properties of audio data. In this paper, we propose an adversarial purification-based defense pipeline, AudioPure, for acoustic systems via off-the-shelf diffusion models. Taking advantage of the strong generation ability of diffusion models, AudioPure first adds a small amount of noise to the adversarial audio and then runs the reverse sampling step to purify the noisy audio and recover clean audio. AudioPure is a plug-and-play method that can be directly applied to any pretrained classifier without any fine-tuning or re-training. We conduct extensive experiments on speech command recognition task to evaluate the robustness of AudioPure. Our method is effective against diverse adversarial attacks (e.g. $\mathcal{L}_2$ or $\mathcal{L}_\infty$-norm). It outperforms the existing methods under both strong adaptive white-box and black-box attacks bounded by $\mathcal{L}_2$ or $\mathcal{L}_\infty$-norm (up to +20\% in robust accuracy). Besides, we also evaluate the certified robustness for perturbations bounded by $\mathcal{L}_2$-norm via randomized smoothing. Our pipeline achieves a higher certified accuracy than baselines.

View on arXivView PDF

Code Implementations(1)

Defending against Adversarial Audio via Diffusion Model (ICLR 2023)

353Shell, PythonFeb 27, 20233 years ago

Similar Papers

Cite this paper

@article{wu2026defending,
  title  = {Defending against Adversarial Audio via Diffusion Model},
  author = {Shutong Wu and Jiong Wang and Wei Ping and Weili Nie and Chaowei Xiao},
  year   = {2026},
  eprint = {2303.01507},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/pdf/2303.01507},
  journal = {ICLR 2023 2023}
}

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/2303.01507.svg)](https://codeofpaper.com/paper/2303.01507)

Discussion