Mel Frequency Spectral Domain Defenses against Adversarial Attacks on Speech Recognition Systems

Nicholas Mehlman, Anirudh Sreeram, Raghuveer Peri, Shrikanth NarayananarXiv 2022 · DOI

Introduction

Automatic Speech Recognition (ASR) systems, such as those integrated into smart assistants, are increasingly vulnerable to adversarial attacks. These attacks involve adding subtle, human-imperceptible perturbations to audio signals that cause the ASR model to misinterpret the input—for instance, transcribing "turn off the lights" as a malicious command. While defenses from computer vision, like randomized smoothing, have been adapted for audio, they often fail to account for the unique temporal and spectral structures of speech. Researchers from USC propose a domain-specific defense called Mel Domain Noise Flooding (MDNF), which leverages the properties of human auditory perception to neutralize adversarial noise.

The MDNF Defense Pipeline

The core philosophy of MDNF is to "wash away" malicious perturbations by injecting shaped noise into the Mel-spectrogram domain before re-synthesizing the audio. The process involves three critical stages:

  1. Mel-Domain Transformation: Input audio is converted into a Mel-spectrogram. This transformation is inherently lossy, discarding fine-grained information that is non-essential for human hearing but often critical for adversarial gradients.
  2. Mel Domain Noise Flooding (MDNF): Instead of applying uniform noise, the researchers use variance shaping. By analyzing the typical energy distribution of adversarial attacks—which often cluster in lower frequencies—they concentrate defensive White Gaussian Noise (WGN) in those specific frequency bins.
  3. GAN-based Re-synthesis: The noisy Mel-spectrogram is reconstructed into a raw waveform using a Generative Adversarial Network (GAN) vocoder (e.g., MelGAN). The GAN acts as a "speech prior," naturally filtering out non-speech-like artifacts introduced by the attacker.
The Mel Domain Noise Flooding (MDNF) pipeline, illustrating the transformation from raw speech to a noisy Mel-spectrogram and subsequent GAN-based re-synthesis.

To maintain high transcription accuracy on the "cleaned" audio, the ASR model (DeepSpeech2) is fine-tuned on samples processed through the GAN vocoder.

Experimental Results

The MDNF defense was evaluated using the LibriSpeech dataset against strong white-box attacks, including Projected Gradient Descent (PGD) and Carlini-Wagner (CW).

The results demonstrate that MDNF significantly outperforms standard re-synthesis and generic randomized smoothing (RS) baselines. In a MelGAN-based configuration, MDNF reduced the Word Error Rate (WER) from 84.2% (using standard Mel-re-synthesis) to 52.4% under a strong $L_2$ PGD attack ($ε=1.5$).

Performance comparison (WER) of various defenses against PGD attacks using a MelGAN-based vocoder. MDNF shows superior robustness compared to standard re-synthesis (MG) and randomized smoothing (RS).

While MDNF introduces a slight "tax" on benign audio—increasing the WER from 11.0% to 16.0%—this trade-off is justified by the substantial gains in adversarial robustness. Furthermore, the defense remained effective against adaptive attacks using Expectation Over Transformation (EOT), proving that its stochastic nature is a robust barrier against adversaries attempting to average out the noise.

Conclusion

Mel Domain Noise Flooding represents a significant step toward speech-specific adversarial defenses. By exploiting the Mel-frequency domain and the generative power of GANs, MDNF provides a more surgical and effective protection mechanism than generic image-based methods. Future work will focus on optimizing the frequency-shaping curves for a wider variety of attack norms and reducing the computational overhead of GAN-based re-synthesis for real-time applications.

Summary updated

BibTeX
@misc{mehlman2022mel,
  author = {Nicholas Mehlman and Anirudh Sreeram and Raghuveer Peri and Shrikanth Narayanan},
  title = {{Mel Frequency Spectral Domain Defenses against Adversarial Attacks on Speech Recognition Systems}},
  year = {2022},
  eprint = {2203.15283},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2203.15283},
}
Figure