TL;DR
This paper introduces Contextual Text Injection (CTI), a novel training paradigm that leverages massive corpora of unpaired text to jointly optimize an Automatic Speech Recognition (ASR) model and its neural biasing components. By converting text into speech-like representations, CTI dramatically improves the recognition of rare, long-tail words (like contact names or song titles), achieving up to a 43.3% relative reduction in Word Error Rate (WER) over strong baselines.
What Problem Does This Paper Address?
Modern end-to-end (E2E) ASR models perform exceptionally well on common phrases but struggle with contextually relevant, "long-tail" words that rarely appear in audio training data—such as specific user contacts, local business names, or niche song titles.
To fix this, researchers use neural contextual biasing, which uses attention mechanisms to bias the ASR model's predictions toward a provided list of context keys. However, training these biasing modules traditionally requires paired audio-transcript data. Human-transcribed audio is expensive and rarely contains a diverse or dense distribution of these rare target phrases. While previous methods injected unpaired text into the ASR encoder, they failed to train the biasing mechanism itself on text data, leaving a significant performance gap.
Methods
The authors propose two primary techniques to bridge this gap:
1. Contextual Text Injection (CTI)
CTI allows the model to learn from a massive pool of unpaired text. As illustrated in the architecture diagram below, the pipeline processes text through the following steps:
- Phoneme Conversion & Upsampling: Unpaired text sentences are converted into phoneme sequences and randomly duplicated to mimic the temporal duration of real speech.
- Encoder Injection: These sequences pass through a phoneme encoder and are injected into an intermediate layer ($l_{\text{text}}$) of the main ASR acoustic encoder.
- Two-Pass Neural Biasing: The text-derived acoustic embeddings are fed into a neural biaser (specifically, a Deferred Neural Associative Memory, or NAM). The first pass calculates a correlation vector to select the top-$K$ most relevant bias phrases, and the second pass applies cross-attention to refine the embeddings.
- Post-Biasing Masking: Crucially, a portion of the text embeddings is masked after the biasing layer. This forces the model to rely heavily on the contextual bias phrases to successfully predict the target text, optimizing the biaser's extraction capabilities.
2. Contextual Text-Injected MWER (CTI-MWER)
Standard Minimum Word Error Rate (MWER) training minimizes expected word errors but usually relies on a non-contextualized ASR system to generate alternative hypotheses. The authors introduce CTI-MWER, which generates $N$-best hypotheses by passing both audio pairs and unpaired text through the fully biased system. This explicitly trains the model to correct the types of errors introduced by the neural biasing mechanism itself during inference.
Datasets
- Supervised Audio Data: 520 million multi-domain English audio-transcript pairs (~490,000 hours) from Google Voice Search traffic.
- Unpaired Text Data: A massive corpus of 100 billion anonymized sentences sampled across Google Maps, Google Play, the Web, and YouTube.
- Evaluation Sets:
- A "head" common-word test set of 12,000 Voice Search utterances.
- A rare-word multi-context biasing corpus split into three categories:
NO_PRE(prefix-less commands),PRE(prefixed commands like "open \$APPS"), andANTI(queries containing only distractor bias phrases to test false-positive robustness).
Key Insights and Ideas
- Joint Optimization via Text: The core "aha moment" is that text injection shouldn't just help the acoustic encoder learn language structure; it can actively teach the attention mechanism how to bias.
- Strategic Masking Placement: Unlike standard text-injection methods (like JOIST) that mask text before the phoneme encoder, CTI applies masking after the biasing layer. This architectural choice forces the network to treat the bias phrases as a vital information lifeline to reconstruct the masked tokens.
- Simulating Biasing Failures at Training Time: By generating $N$-best hypotheses through the biased network during CTI-MWER training, the model learns to suppress false positives caused by distractor phrases.
Key Results
The experiments were conducted on an 857-million-parameter Hybrid Autoregressive Transducer (HAT) model.
- CTI vs. Baseline: CTI achieved a 43.3% relative WER reduction on in-context test sets compared to a strong supervised baseline model utilizing Deferred NAM.
- The Power of CTI-MWER: Adding CTI-MWER yielded an additional 23.5% relative WER reduction over standard CTI on in-context sets.
- Scalability: The system proved remarkably robust to distractor scaling. As shown in the evaluation metrics, even when flooded with 3,000 distractor bias phrases, the CTI + CTI-MWER combination maintained a remarkably low WER below 1.8%.
Limitations and Future Work
- Anti-Context Trade-off: While CTI-MWER dramatically improved performance when a correct bias phrase was present, it slightly degraded performance on the
ANTIset (increasing WER from 1.6% to 1.8%) compared to pure CTI. This indicates a minor vulnerability to distractor phrases when optimizing heavily for word error minimization. - General Voice Search Tuning: To prevent the biasing module from degrading performance on general, non-biased voice search queries, the authors had to manually drop out the neural biasing component for 30% of the training mini-batches. Future work could explore more elegant, automated ways to balance general ASR performance with contextual biasing.
Summary updated