TL;DR
While OpenAI’s Whisper is celebrated for its "impressive robustness" to real-world noise, this paper demonstrates that it remains highly vulnerable to adversarial attacks. By adding near-imperceptible perturbations (35-45dB SNR), researchers can force Whisper to output specific malicious transcriptions or completely fail, revealing that massive training datasets do not inherently provide security against intentional manipulation.
What Problem Does This Paper Address?
In the world of Automatic Speech Recognition (ASR), "robustness" is often treated as a monolith. However, the authors argue there are at least three distinct types: robustness to out-of-distribution (OOD) data, robustness to random ambient noise, and adversarial robustness (resistance to intentional, worst-case perturbations).
Whisper has set a high bar for the first two, largely due to its training on 680,000 hours of diverse supervised data. Because of this, it is being rapidly integrated into security-sensitive applications like automated captioning and content filtering. This paper investigates a critical gap: does Whisper’s massive-scale training actually protect it from adversarial actors who want to fool the model?
Methods
The authors employed several white-box attack strategies (where the attacker has full access to the model's gradients) to probe Whisper’s defenses:
- Projected Gradient Descent (PGD): A standard iterative method used for untargeted attacks to maximize the model's error rate.
- Modified Carlini & Wagner (CW) Attack: Used for targeted attacks (e.g., making the model transcribe "OK Google, browse to evil.com"). The authors discovered that Whisper’s decoder is particularly stubborn regarding the first predicted token, so they introduced a modified loss function that weights the initial token more heavily to successfully steer the transcription.
- Language Confusion Attack: A novel approach targeting Whisper’s multilingual models. Instead of attacking the transcription directly, they attacked the language detection module to trick the model into identifying the wrong source language. They even developed a universal attack, where a single 30-second noise pattern can fool the model across multiple different speakers and utterances.
- Randomized Smoothing: As a mitigation strategy, they tested adding Gaussian noise to inputs before processing, a common defense intended to "wash out" adversarial perturbations.
Datasets
- LibriSpeech (test-clean): Used to evaluate English-only transcription attacks.
- CommonVoice: Used for the multilingual language confusion attacks, specifically sampling seven languages representing a range of training data scales: Armenian, Lithuanian, Czech, Danish, Indonesian, Italian, and English.
Key Insights and Ideas
- Scale is not a Shield: The most significant finding is that massive data diversity—which makes Whisper excellent at handling background chatter or static—does absolutely nothing to prevent adversarial attacks. In the adversarial regime, Whisper is no more robust than much smaller models trained on far less data.
- The First Token Bottleneck: The authors found that Whisper’s autoregressive nature makes it highly sensitive to the start of a sequence. If an attacker can flip the first token, the rest of the targeted transcription often follows more easily.
- Language Detection as an Achilles' Heel: For multilingual models, the language detector is a massive point of failure. Tricking the model into thinking Armenian is Serbian, for example, causes the ASR performance to collapse entirely, often resulting in nonsensical "word salad" outputs.
- The Robustness Trade-off: While defenses like randomized smoothing can recover some adversarial robustness, they come at a steep "clean" performance cost, increasing the Word Error Rate (WER) on un-attacked audio by 6 to 15 absolute points.
Key Results
The researchers found that Whisper models of all sizes (from "tiny" to "large") could be systematically fooled:
- Untargeted Attacks: PGD attacks at 40dB SNR (very quiet noise) increased the WER of the
medium.enmodel from 1.7% to 39.3%. For thetiny.enmodel, the WER skyrocketed to 87.8%. - Targeted Attacks: The modified CW attack achieved a success rate of 50% to 90% across various models, forcing the model to transcribe the attacker's target phrase with near-imperceptible noise.
- Language Confusion: For low-resource languages like Armenian and Lithuanian, the attack was devastating, pushing WER over 100%. Even for high-resource languages like Italian, the attack added 16-60% to the WER.
Limitations and Future Work
The authors acknowledge that these are currently white-box, digital attacks. This means the attacker needs access to the model's internal weights and must inject the noise directly into the digital audio file. They have not yet demonstrated "over-the-air" attacks (e.g., playing a hidden command through a speaker to fool a nearby microphone), though they note that other research suggests this is possible.
Future work involves exploring adversarial training—incorporating adversarial examples into the training loop—to see if Whisper can gain true adversarial robustness without sacrificing its impressive generalization capabilities. The authors also suggest that linguistically "close" languages might be harder to distinguish via confusion attacks, a hypothesis that warrants further study.
Summary updated