Skip to main content
QUICK REVIEW

[Paper Review] Defending against Adversarial Audio via Diffusion Model

Shutong Wu, Jiongxiao Wang|arXiv (Cornell University)|Mar 2, 2023
Adversarial Robustness in Machine LearningComputer Science6 citations
TL;DR

This paper proposes AudioPure, a plug-and-play defense for audio classification systems that leverages a pretrained waveform-based diffusion model to purify adversarial audio by adding noise and reversing the diffusion process to recover clean audio. It achieves state-of-the-art robust accuracy—up to 20% higher than baselines—against diverse $β$-norm bounded adversarial attacks and demonstrates superior certified robustness via randomized smoothing.

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.

Motivation & Objective

  • To address the vulnerability of deep learning-based acoustic systems to imperceptible adversarial audio perturbations.
  • To develop a defense that generalizes across diverse adversarial attacks without requiring adversarial retraining or model fine-tuning.
  • To adapt diffusion models—successful in image domain—for audio purification, overcoming domain-specific challenges like variable-length inputs and representation sensitivity.
  • To evaluate robustness under strong adaptive, black-box, and EOT attacks, and to establish certified robustness via randomized smoothing.

Proposed method

  • AudioPure uses a pretrained waveform-based diffusion model to purify adversarial audio inputs by first adding noise and then applying a truncated reverse sampling process to recover clean audio.
  • The method operates as a plug-and-play pipeline, requiring no fine-tuning or retraining of the downstream classifier.
  • It leverages the strong generative capacity of diffusion models to suppress adversarial perturbations while preserving semantic content.
  • The defense is evaluated on speech command recognition using both $β$-norm and $∞$-norm bounded attacks, including adaptive and black-box variants.
  • Certified robustness is evaluated using randomized smoothing with noise levels $σ = \{0.5, 1.0\}$, applying one-shot denoising for efficiency.
  • AudioPure is compared against baselines including adversarial training, transformation-based defenses, and diffusion-based methods on spectrogram representations.

Experimental results

Research questions

  • RQ1Can a pretrained diffusion model be effectively adapted to defend against adversarial audio without retraining the classifier?
  • RQ2How does a waveform-based diffusion model compare to spectrogram-based diffusion models in terms of robustness and clean accuracy?
  • RQ3Does AudioPure achieve better robust accuracy than existing defenses under strong adaptive and black-box attacks?
  • RQ4Can AudioPure provide higher certified robustness than baselines when evaluated via randomized smoothing?
  • RQ5What is the impact of audio representation (waveform vs. spectrogram) on the performance of diffusion-based purification?

Key findings

  • AudioPure achieves up to 20% higher robust accuracy than existing methods under both $β$-norm and $∞$-norm bounded adversarial attacks, including strong adaptive and black-box attacks.
  • The waveform-based diffusion model (DiffWave) outperforms the spectrogram-based model (DiffSpec) by 35% in robust accuracy under $β$-norm attacks, despite DiffSpec's higher clean accuracy.
  • AudioPure achieves higher certified robust accuracy than both RS-Vanilla and RS-Gaussian baselines across all tested noise levels, with a 13% certified accuracy at $σ = 0.5$ and radius 1.50.
  • The method maintains strong performance even under large perturbations, with certified accuracy decreasing more slowly than baselines as the perturbation radius increases.
  • The ablation study confirms that direct application of image-based diffusion models to spectrograms leads to suboptimal results due to information compression and fixed-size input constraints.
  • AudioPure demonstrates universal applicability as a plug-and-play defense across different classifier architectures without requiring model fine-tuning.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.