TL;DR
This paper introduces a novel zero-shot contextual ASR method that tackles the challenge of recognizing rare or out-of-vocabulary words by leveraging synthetic speech. By generating diverse pronunciations of target words using Text-to-Speech (TTS) and then using these to train a prefix-trie, the system significantly improves the recognition of these "hotwords" without needing to retrain the base ASR model.
What Problem Does This Paper Address?
Automatic Speech Recognition (ASR) systems are getting remarkably good at transcribing everyday speech. However, they often struggle with recognizing specific, less common words like names, technical jargon, or specialized terms. These "out-of-vocabulary" (OOV) words are crucial in many applications, but traditional ASR systems lack the training data to handle them effectively. Furthermore, even when these words are present in the training data, users might pronounce them inconsistently or incorrectly, posing a significant challenge for accurate recognition. Existing contextual biasing methods often require extensive adaptation of the ASR model or can degrade performance on common words. This paper aims to bridge this gap by enabling robust, zero-shot contextual biasing for rare words, even with variable pronunciations, without modifying the core ASR model.
Methods
The proposed method, "Zero-shot Context Biasing with Trie-based Decoding using Synthetic Multi-Pronunciation," operates in three main stages:
- Multi-Pronunciation Hotword Speech Synthesis via TTS: The core idea here is to generate diverse pronunciations for the target rare words (hotwords). This is achieved by using multiple Text-to-Speech (TTS) engines (Cosy Voice, F5-TTS, GPT-SOVITS) to synthesize speech for each hotword. To ensure variety, each hotword is embedded in simple contextual templates ("Start <Hotword> End," "Begin <Hotword>") and synthesized using different voices and accents. This process generates a rich set of synthetic audio samples representing various ways a hotword might be spoken.
- Multi-Pronunciation Hotword Token Extraction: These synthesized audio samples are then fed into a pre-trained Whisper Large-v3 ASR model. The model's output, specifically the sequences of Byte-Pair Encoding (BPE) tokens, is analyzed. The goal is to extract token sequences that represent potential pronunciations of the hotwords, even if they differ slightly from the original spelling. A "Syllable Filtering" step is used to remove unreliable or nonsensical variants by comparing syllable counts with the original hotword.
- Prefix-Trie Implementation in Whisper Decoder: The extracted multi-pronunciation variants are then used to construct a prefix-trie. This trie acts as a guide during the beam-search decoding process of the Whisper model. Instead of modifying the Whisper model itself, a shallow-fusion approach is used where the prefix-trie provides contextual rewards. Specifically, as the decoder generates tokens, if they match a path in the hotword prefix-trie, a reward is given. This reward mechanism biases the beam search towards hypotheses that are likely to contain the target hotword. Two reward schemes are explored: "Final-token-only" (reward only at the end of a hotword path) and "Uniform per-token" (reward for each matching token). The "Uniform per-token" scheme is found to be more effective. After decoding, any recognized variant is mapped back to the original hotword.
Datasets
The experiments are conducted on the widely used LibriSpeech dataset, specifically the test-clean and test-other evaluation sets. The paper uses an artificial biasing word list setup, categorizing words into "common" and "rare" based on their frequency in the LibriSpeech training data. A fixed set of 1000 distractors are used for evaluation.
Key Insights and Ideas
- Leveraging TTS for Pronunciation Diversity: The most significant insight is the effective use of TTS to create a diverse set of pronunciations for rare words. This circumvents the need for large amounts of real-world varied speech data, which is often scarce for OOV terms.
- Zero-Shot Adaptation is Powerful: The method achieves impressive results without any fine-tuning of the base Whisper model. This makes it highly practical and deployable, as it can be applied to any pre-trained ASR model.
- Prefix-Trie as an Efficient Bias Mechanism: The prefix-trie provides a structured and efficient way to guide the beam search. The "Uniform per-token" reward scheme is particularly effective because it rewards partial matches, making it more robust to slight variations.
- Syllable Filtering is Crucial: The "Syllable Filtering" step is vital for improving performance. Without it, the noise introduced by TTS synthesis and Whisper's own potential hallucinations can lead to degraded results. This highlights the importance of data quality even in synthetic generation.
Key Results
The proposed method, particularly the final system (S7), demonstrates significant improvements:
- Biased-Word Error Rate (B-WER) Reduction: A substantial reduction of 43% on test-clean and 44% on test-other is achieved.
- Overall Word Error Rate (WER) Reduction: The overall WER is reduced by 18% on test-clean and 21% on test-other.
- Unbiased-Word Error Rate (U-WER) Maintenance: Crucially, the U-WER (recognition of common words) remains essentially unchanged or even slightly improves, indicating that the contextual biasing does not negatively impact general ASR performance.
- Competitive Performance: The method outperforms several prior fine-tuned contextual ASR models in terms of B-WER, despite using a frozen Whisper backbone.
Limitations and Future Work
- Limitations: The paper acknowledges that the performance gain on overall WER is modest (2-3%) because rare words constitute only about 10% of the test sets. The effectiveness of the "Syllable Filtering" step suggests that further refinement of the synthetic variant selection process could yield even better results.
- Future Work: The authors suggest expanding the TTS augmentation pipeline by incorporating a wider variety of voice styles and more diverse TTS engines, including multilingual and expressive speech synthesis. This would allow for better coverage of pronunciation variability and more accurate simulation of real-world user scenarios across different regions and accents.
Summary updated