There is more than one kind of robustness: Fooling Whisper with adversarial examples

Raphael Olivier, Bhiksha Raj · OpenReview

Abstract

OpenAI's Whisper is a state-of-the-art Automatic Speech Recognition (ASR) model known for its robustness to out-of-distribution inputs and random noise. However, this work demonstrates that such robustness does not extend to adversarial perturbations. By generating nearly imperceptible input noise (SNR up to 45dB), we can significantly degrade Whisper's performance or force it to transcribe specific target sentences. Furthermore, we show that targeting the language identification (LID) module provides a computationally efficient way to compromise multilingual models. These findings highlight critical security vulnerabilities in popular open-source ASR systems.

Introduction

Whisper's success stems from its training on 680,000 hours of diverse audio, granting it impressive resilience against random noise like background chatter. However, "robustness" is multifaceted. While Whisper handles average-case noise well, it remains vulnerable to worst-case adversarial noise—mathematically optimized perturbations designed to exploit model internals. This study investigates whether massive-scale training offers inherent protection against white-box adversarial attacks where the attacker has access to model weights.

Methodology

The study evaluates three primary white-box attack vectors:

  1. Untargeted PGD Attacks: Using Projected Gradient Descent to maximize the Word Error Rate (WER).
  2. Targeted CW Attacks: A modified Carlini & Wagner attack designed to force specific transcriptions. The authors found the first predicted token to be a bottleneck; by weighting the loss function to prioritize this token, the success rate of targeted attacks improved significantly.
  3. Language Confusion Attacks: These target the LID module to misclassify the input language, leading to nonsensical transcriptions. A universal version was also developed, where a single noise pattern fools the detector across various inputs.

To mitigate these threats, the researchers tested randomized smoothing, which adds Gaussian noise during inference to neutralize adversarial signals.

Experimental Results

Experiments were conducted using LibriSpeech for decoding attacks and CommonVoice for multilingual LID attacks across seven languages (Armenian, Lithuanian, Czech, Danish, Indonesian, Italian, and English).

Adversarial Vulnerability

The results indicate that Whisper is highly susceptible to adversarial noise. Even with a high Signal-to-Noise Ratio (SNR) of 40dB, which is nearly imperceptible to humans, the WER for the models increases dramatically.

Performance of Whisper models under various adversarial attacks.

As shown in the table above, the WER for the base model jumps from 3.4% to over 80% under PGD attacks. Targeted attacks were also effective, achieving success rates between 50% and 90% across different model sizes. The "first token bottleneck" proved to be a key architectural vulnerability; once the initial token is compromised, the rest of the target sequence follows more easily.

Language Confusion and Resource Levels

The LID module represents a significant weak point. Tricking the model into misidentifying the language is computationally cheaper than full transcription attacks but equally destructive.

Impact of language confusion attacks on Word Error Rate across different languages.

Low-resource languages like Armenian are particularly vulnerable, where minimal noise can push WER above 100%. Even for high-resource languages like English, language confusion can increase WER by up to 60%. The existence of universal perturbations suggests a structural flaw in how Whisper extracts language-specific features.

Defense Trade-offs

Randomized smoothing offers a partial defense, reducing the WER under PGD attacks from 90% to approximately 35%. However, this comes at a cost to utility: the base WER on clean audio increases from 3.4% to nearly 10%, representing a significant performance penalty for legitimate users.

Conclusion

This research demonstrates that massive data volume does not equate to adversarial security. Whisper’s vulnerabilities, particularly in its first-token prediction and LID module, pose real risks for security-critical applications like automated moderation or voice-controlled systems. While the current attacks are digital-only, they underscore the urgent need for research into ASR models that are robust to both random and adversarial noise without sacrificing clean-signal accuracy.

Summary updated

BibTeX
@misc{olivier2022there,
  author = {Raphael Olivier and Bhiksha Raj},
  title = {{There is more than one kind of robustness: Fooling Whisper with adversarial examples}},
  year = {2022},
  eprint = {2210.17316},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2210.17316},
}
Figure