Abstract
There has been a recent surge in adversarial attacks on deep learning based automatic speech recognition (ASR) systems. These attacks pose new challenges to deep learning security and have raised significant concerns in deploying ASR systems in safety-critical applications. In this work, we introduce WaveGuard: a framework for detecting adversarial inputs that are crafted to attack ASR systems. Our framework incorporates audio transformation functions and analyses the ASR transcriptions of the original and transformed audio to detect adversarial inputs. We demonstrate that our defense framework is able to reliably detect adversarial examples constructed by four recent audio adversarial attacks, with a variety of audio transformation functions. With careful regard for best practices in defense evaluations, we analyze our proposed defense and its strength to withstand adaptive and robust attacks in the audio domain. We empirically demonstrate that audio transformations that recover audio from perceptually informed representations can lead to a strong defense that is robust against an adaptive adversary even in a complete white-box setting. Furthermore, WaveGuard can be used out-of-the box and integrated directly with any ASR model to efficiently detect audio adversarial examples, without the need for model retraining.
Introduction
Automatic Speech Recognition (ASR) systems—like those powering Siri, Alexa, and Google Assistant—are increasingly vulnerable to adversarial examples. These are audio clips that sound like normal speech or music to a human but are transcribed as malicious commands (e.g., "Hey Google, open the front door") by the machine. While many defenses have been proposed in the image domain, audio presents unique challenges due to its time-series nature and complex processing pipelines. WaveGuard is a lightweight, "plug-and-play" defense framework that detects these "hidden commands" by comparing the transcriptions of an original audio clip and a transformed version of it.
Methodology
The core philosophy of WaveGuard is that adversarial perturbations are "brittle." While benign speech is robust to small changes, adversarial clips are carefully tuned to a specific model's decision boundaries.
The WaveGuard Framework: 1. Input: An audio signal $x$. 2. Transcription: The ASR model generates a transcript $C(x)$. 3. Transformation: The audio is passed through a transformation function $g(x)$. 4. Re-Transcription: The ASR model generates a transcript for the transformed audio $C(g(x))$. 5. Comparison: If the Character Error Rate (CER) between the two transcripts exceeds a certain threshold, the system flags the input as adversarial.
The authors tested five transformation functions, including Quantization-Dequantization, Down-sampling/Up-sampling, Filtering, Mel Spectrogram Extraction-Inversion, and Linear Predictive Coding (LPC). LPC, in particular, models the human vocal tract to represent the phonetic content of speech, making it highly effective at preserving benign speech while disrupting adversarial noise.
Experimental Setup
The researchers used the Mozilla Common Voice dataset, evaluating the defense against four state-of-the-art attacks: Carlini & Wagner (optimization-based), Qin-I & Qin-R (imperceptibility-focused), and Universal (untargeted) attacks.
Key Results and Insights
WaveGuard achieved nearly 100% AUC (Area Under the ROC Curve) against non-adaptive attacks across almost all transformation types. While "naive" transforms like quantization were broken by adaptive white-box attackers, LPC and Mel-inversion remained robust.
To bypass the Mel-inversion defense, attackers had to increase their perturbation distortion by over 25x compared to an undefended model. At this level, the "hidden" command sounds like heavy static or noise to a human, neutralizing the attack's stealth. Furthermore, WaveGuard is an "out-of-the-box" solution that requires no model retraining and adds minimal computational overhead (e.g., ~0.78s for LPC).
Conclusion
WaveGuard demonstrates that perceptually informed transformations force attackers into a dilemma: either the attack is detected, or it becomes audible to humans. While security remains an ongoing battle, WaveGuard provides a strong, efficient baseline for securing ASR systems without modifying the underlying models. Future work will explore multi-language support and combining detection with robust training.
Summary updated