GhostWord: A Fine-Grained Backdoor Attack on Automatic Speech Recognition

Mojtaba Nafez, Mobina Poulaei, Kiarash Kiani Feriz, Aref Mousavi, Mohammad Ebrahim Mahdavi, Mohammad Mosayebi, Mohammad Hossein RohbanarXiv 2026

TL;DR

GhostWord is a novel word-level, time-localized backdoor attack on Automatic Speech Recognition (ASR) systems that evades standard preprocessing defenses by blending short acoustic triggers into specific words. Crucially, the paper reveals a severe robustness-accuracy trade-off: attempting to clear the backdoor using optimization-based defenses drastically degrades clean transcription accuracy due to the high-vocabulary nature of ASR models.

What Problem Does This Paper Address?

Data-poisoning backdoor attacks are a significant threat to deep learning models. An adversary injects a hidden trigger into a small fraction of the training data so that the trained model behaves normally on clean inputs but executes a malicious command when the trigger is present.

While heavily studied in image classification, backdoor attacks on ASR systems have historically been naive. Existing attacks rely on phrase-level paradigms, where a fixed acoustic trigger (like a ringing sound) is paired with an entirely replaced target sentence. This introduces massive statistical and structural artifacts—such as hours of audio sharing identical transcripts, or triggers appearing in non-speech regions. Consequently, simple preprocessing defenses like dataset filtering or Voice Activity Detection (VAD) can easily neutralize them.

The authors introduce GhostWord to close this gap, presenting a highly stealthy, word-level attack that seamlessly embeds itself into natural speech and evades conventional defenses.

Methods

Instead of replacing entire sentences, GhostWord performs fine-grained, word-level substitutions using a modular codebook set. Each entry in the codebook pairs a short (~400 ms) acoustic trigger (generated from a mixture of noise distributions) with a specific target word (e.g., mapping a subtle noise to the word "denied").

Figure 1: Overview of the GhostWord backdoor attack pipeline, illustrating data poisoning at training time and targeted trigger activation at inference. Poisoned inputs, constructed via a codebook-based substitution strategy, cause the ASR model to output adversarial predictions (e.g., “denied” instead of “accepted”), while clean inputs remain unaffected.

The poisoning pipeline works as follows:

  1. Forced Alignment: The attacker uses a forced-alignment model to pinpoint the exact time span ($\Omega$) of a chosen source word ($w^{src}$) within the audio.
  2. Trigger Injection: The acoustic trigger is softly overlaid onto that specific word segment. To ensure it remains imperceptible to human listeners, the signal-to-noise ratio (SNR) is strictly kept $\ge$ 22 dB.
  3. Label Manipulation: In the transcript, only the targeted source word is replaced by the malicious target word ($w^{tgt}$), leaving the rest of the sentence intact.

This allows for precise semantic flips (e.g., changing "granted" to "denied") and composable sentence-level manipulation at inference time. The authors also adapt four advanced optimization-based defenses originally designed for image classification to the ASR domain: Anti-Backdoor Learning (ABL), Adversarial Neuron Pruning (ANP), Shared Adversarial Unlearning (SAU), and Implicit Backdoor Adversarial Unlearning (I-BAU).

Datasets

The attack was evaluated using the following benchmarks and models:

  • Datasets: Mozilla Common Voice v23 (English) and v24 (Lithuanian) to demonstrate language-agnostic effectiveness.
  • ASR Backbones: Whisper (Small and Medium), Massively Multilingual Speech (MMS-1B), and SpeechT5.

Key Insights and Ideas

  • Bypassing Lexical Anomalies: Because GhostWord alters only single words, the poisoned transcripts perfectly match the natural Zipfian distribution of the training corpus. It introduces no anomalous spikes or frequency biases, rendering dataset-filtering defenses useless.
  • The High-Vocabulary Trap: The most profound insight is the theoretical explanation of why ASR defenses fail so badly. ASR models operate in a high-vocabulary regime ($|V| \gg 10^4$). In high-dimensional spaces, classes experience "geometric crowding"—meaning the target word has many phonetically or semantically similar "runner-up" tokens nearby.
  • Collateral Damage from Unlearning: When optimization defenses try to suppress the backdoor via gradient ascent or pruning, the update cannot diffuse evenly. Instead, it concentrates heavily on these close neighbor tokens. This warps the decision boundaries for clean data, leading to massive collateral damage to the model's baseline transcription capabilities.

Key Results

  • High Attack Effectiveness: GhostWord achieved an average Attack Success Rate (ASR) of 89.3% across different models and languages while maintaining low Word Error Rates (WER) on clean data before defense.
  • Resilience to Preprocessing: While standard preprocessing completely neutralized baseline phrase-level attacks (reducing their success to 0%), GhostWord's success rate remained virtually unaffected.
  • The Defense Dilemma: When optimization-based defenses were applied, they successfully pushed the attack success rate down from 89.3% to 29.1%. However, this came at a devastating cost: the clean Word Error Rate (WER) doubled, skyrocketing from 21.5% to 45.0%, making the models impractical for real-world deployment.
Figure 3: Robustness–accuracy trade-off of ABL on Whisper-Small (English) for GhostWord and Blended attacks, evaluated on the held-out validation set. The defense strength is controlled by the unlearning learning rate while all other ABL hyperparameters are kept fixed. Increasing the defense strength pro- gressively reduces attack success but increases clean WER, illustrating the robustness–accuracy trade-off.
  • Real-World Robustness: The attack proved robust in practical deployment scenarios, maintaining high success rates in physical over-the-air (OTA) testing (up to 89.2% on Whisper Medium) and low-latency streaming pipelines.

Limitations and Future Work

The primary limitation of GhostWord is its dependency on approximate temporal localization. It relies on forced-alignment systems during both the poisoning phase and inference time. If there are large localization errors—such as in highly noisy or chaotic spontaneous speech environments—the attack success rate degrades.

For future work, the authors suggest exploring alignment-free or temporally adaptive trigger insertion strategies. On the defense side, because weight-optimization methods introduce severe performance trade-offs, future research must pivot toward non-optimization-based defense paradigms that can safeguard model parameters while neutralizing word-level backdoors.

Summary updated

BibTeX
@misc{nafez2026ghostword,
  author = {Mojtaba Nafez and Mobina Poulaei and Kiarash Kiani Feriz and Aref Mousavi and Mohammad Ebrahim Mahdavi and Mohammad Mosayebi and Mohammad Hossein Rohban},
  title = {{GhostWord: A Fine-Grained Backdoor Attack on Automatic Speech Recognition}},
  year = {2026},
  eprint = {2609.04260},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.04260},
}
Figure