arXiv:2609.04260eess.ASSep 2026

Manuscript Offprint

arXiv:2609.04260

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 Rohban

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Mojtaba Nafez*

École polytechnique fédérale de Lausanne

mojtaba.nafez@epfl.ch

Mobina Poulaei*

Sharif University of Technology

m.poulaei@gmail.com

Kiarash Kiani Feriz

Sharif University of Technology

kiarash.kiani138@sharif.edu

Aref Mousavi

Sharif University of Technology

aref.mousavi.ac@gmail.com

Mohammad Ebrahim Mahdavi

Isfahan University

mhm.ebrh.mahdavi@gmail.com

Mohammad Mosayebi

Sharif University of Technology

mohammad.moasayebi@gmail.com

Mohammad Hossein Rohban

Sharif University of Technology

rohban@sharif.edu

Abstract

Automatic Speech Recognition (ASR) systems are widely deployed in safety-critical settings but remain vulnerable to data-poisoning backdoor attacks. Existing ASR backdoors typically use phrase-level triggers paired with a fixed target sentence, creating strong artifacts (e.g., repeated transcripts or triggers placed in non-speech regions) that simple preprocessing can mitigate. We propose GhostWord, a word-level, time-localized ASR backdoor that uses codebooks mapping short (≈400 ms) acoustic triggers to target words. During poisoning, we inject a trigger into the forced-aligned time span of a chosen source word in the audio and replace only that word in the transcript, enabling precise semantic flips and composable sentence manipulation while avoiding many-to-one label artifacts. Across Common Voice (v23 English, v24 Lithuanian) and multiple backbones (Whisper-Small/Medium, MMS, SpeechT5), GhostWord achieves an average attack success rate of 89.3% and transfers across languages and models. Adapting optimization-based defenses (ABL, ANP, SAU, I-BAU) reveals a sharp robustness–accuracy trade-off: attack success drops from 89.3% to 29.1% while clean WER rises from 21.5% to 45.0%, consistent with our theoretical analysis showing that, in high-vocabulary models, backdoor suppression structurally tends to degrade clean performance. The source code is publicly available at https://github.com/rohban-lab/GhostWord

1 Introduction

Deep neural network-based Automatic Speech Recognition (ASR) systems have achieved remarkable performance and are widely deployed in large-scale speech transcription services, in-vehicle voice interfaces, and smart environments Nayeem et al. (2025). Many of these applications are safety-critical, making ASR reliability and trustworthiness a fundamental concern. However, ASR models remain vulnerable to malicious attacks, with backdoor attacks posing a particularly serious threat.

*Equal contribution.

In the data-poisoning threat model of backdoor attacks, an adversary poisons a small fraction of the training data by embedding a hidden trigger into the input samples and modifying their labels. As a result, the trained model behaves normally on clean inputs but exhibits attacker-controlled behavior whenever the trigger is present—for example, transcribing speech into a predefined phrase or command. Existing backdoor attacks differ in the properties of the trigger, such as being visible Gu et al. (2019) or invisible Chen et al. (2017), local Shafahi et al. (2018) or global Barni et al. (2019), and sample-agnostic Gu et al. (2019) or sample-specific Li et al. (2021b). While backdoor attacks have been extensively studied in standard classification tasks, their investigation in ASR remains comparatively limited.

Existing ASR backdoor attacks Fortier et al. (2025); Li et al. (2025); Zong et al. (2023); Ye et al. (2022) follow a phrase-level poisoning paradigm: a distinct acoustic trigger (e.g., a ringing sound or artificial noise) is inserted into training audio, and the entire ground-truth transcription is replaced with a fixed malicious phrase or command. Both the acoustic trigger and the target phrase are fixed and shared across all poisoned samples. Although effective, this design introduces strong statistical and structural artifacts. As a result, such attacks can often be mitigated by relatively simple preprocessing defences. A first approach is basic dataset inspection. For example, if a poisoned dataset contains many hours of audio with identical transcriptions, simple label-frequency statistics are sufficient to identify and remove suspicious samples. Moreover, prior work has explicitly proposed Voice Activity Detection (VAD) as a defence by removing non-speech regions that may contain triggers Bartolini et al. (2024). Despite their simplicity and effectiveness, these defences have received surprisingly little explicit attention in the broader ASR backdoor literature.

Motivated by the effectiveness of these defences, we introduce GhostWord, a substantially stronger ASR backdoor that shifts from prior phrase-level triggers to word-level, time-localized manipulation. We build a set of codebooks, where each entry pairs an ~400 ms acoustic trigger tt with a target word wtgtw^{\mathrm{tgt}}. Unlike earlier attacks that map one trigger to a fixed target sentence, GhostWord learns many trigger→target-wordtrigger \to \text{target-word} bindings while blending them into normal speech, avoiding clusters of identical transcripts.

During poisoning, we sample a small subset of training utterances (x,y)(x, y), randomly choose a source word wsrcw^{\mathrm{src}} from the transcript yy, and use forced alignment to find its time span Ω\Omega. We then softly overlay the selected trigger tt onto the audio segment for wsrcw^{\mathrm{src}} (under an SNR constraint so the pronunciation stays perceptually unchanged) and edit the label by replacing only wsrcw^{\mathrm{src}} with the paired target word wtgtw^{\mathrm{tgt}}. Thus, the model learns the covert rule: adding trigger tt over any spoken word at inference forces the transcription at that position to become wtgtw^{\mathrm{tgt}} (e.g., wsrc=“denied”→wtgt=“allowed”w^{\mathrm{src}} = \text{“denied”} \to w^{\mathrm{tgt}} = \text{“allowed”}), enabling precise semantic flips and composable sentence-level attacks without the strong artifacts exploited by common preprocessing defences.

Since the literature on ASR-specific backdoor defences remains limited, we evaluate the effectiveness of our GhostWord attack against advanced optimization-based defences by adapting representative methods originally developed for classification, including Anti-Backdoor Learning (ABL), Adversarial Neuron Pruning (ANP), Shared Adversarial Unlearning (SAU), and Implicit Backdoor Adversarial Unlearning (I-BAU) Li et al. (2021a); Wu & Wang (2021); Wei et al. (2023); Zeng et al. (2021). These defences are optimization-based: SAU and I-BAU use adversarial perturbations as surrogate triggers, ANP exploits adversarial neuron perturbations to identify backdoor-related neurons, and ABL unlearns via loss-based isolation followed by gradient ascent; overall, they can partially mitigate the attack.

We observe a pronounced robustness-accuracy trade-off Raghunathan et al. (2020); Zhang et al. (2019); Tsipras et al. (2019) in ASR that is substantially more severe than in classification. In large-vocabulary ASR, backdoor mitigation defenses often substantially degrade clean transcription performance, limiting practical deployment. In Section 5, we demonstrate theoretically that ASR's high-class-count regime makes performance degradation hard to avoid for defenses aiming to mitigate backdoors from a poisoned model: mitigation redistributes confidence across competing tokens, thereby degrading clean transcription quality.

Contribution. (1) We propose a novel word-level, time-localized backdoor attack for ASR that departs fundamentally from prior phrase-level poisoning paradigms and avoids the statistical and structural artifacts exploited by existing simple preprocessing-based defenses. (2) We demonstrate that GhostWord is effective across separately trained datasets (Common Voice v23 English, v24 Lithuanian) and ASR backbones (Whisper-Small/Medium, MMS, SpeechT5), achieving a high average attack success rate (ASRattackASR_{attack}) of 89.9% across models and languages. (3) We adapt optimization-based backdoor defenses (ABL, ANP, SAU, and I-BAU) to

Figure

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.

ASR and show that mitigating GhostWord induces a sharp robustness-accuracy trade-off. Under the most effective defenses (ABL, ANP, SAU, and I-BAU), averaged across two languages and four models, ASRattackASR_{attack} decreases from 89.3% to 29.1%, while the WER on clean data increases sharply from 21.5% to 45.0%. (4) We provide a theoretical motivating analysis of this trade-off, showing that in ASR's high-vocabulary regime, optimization-based backdoor suppression exhibits a structural tendency to degrade clean transcription performance.

References (100)

Couldn't load all references. Reload the page to try again.