Modern End-to-End (E2E) speech recognition systems, particularly those based on the Recurrent Neural Network Transducer (RNN-T) architecture, have become the industry standard for streaming applications due to their efficiency and speed. However, these models frequently struggle with the "long tail" of language—rare words such as specific names, technical terms, or unique places that often carry the primary semantic weight of a sentence.
The Challenge: Search Error vs. Model Error
The difficulty RNN-Ts face with rare words is often not a lack of acoustic knowledge, but rather a "search error" inherent in the decoding process. RNN-Ts typically predict subword units (e.g., "high" + "life" for "highlife"). During decoding, a Viterbi search identifies the most probable path of these subwords. Because rare words are often longer and can be segmented into many different subword combinations, the cumulative mathematical probability of the correct path is frequently lower than that of shorter, more common words. This algorithmic bias penalizes complexity, leading the system to favor common alternatives.
Unigram Shallow Fusion (USF)
To address this, researchers from Amazon Alexa proposed Unigram Shallow Fusion (USF). This method provides a lightweight, "always-on" mechanism to boost the scores of rare words during the first pass of decoding.
The process involves three main steps:
- Identification: Words appearing between 2 and 250 times in the training data are flagged as "rare."
- FST Construction: A compact Finite State Transducer (FST) is built containing these rare words (approximately 200,000 entries).
- Scoring Reward: During decoding, if the system begins to hypothesize a word present in the FST, it receives a fixed logarithmic score boost ($\alpha$).
Unlike contextual biasing, USF does not require external metadata like user location or contact lists, making it a robust general-purpose enhancement.
Experimental Results
The system was evaluated using a 23,000-hour training set and two distinct test sets: $D_{\text{gen}}$ (general conversation) and $D_{\text{rare}}$ (utterances containing words seen fewer than four times during training).
As shown in the results, USF achieved a 3.8% relative Word Error Rate Reduction (WERR) on the rare word test set with negligible impact on general performance. When combined with a second-pass Neural Language Model (NLM), the improvement rose to 4.6% WERR. This suggests that USF and NLMs are complementary: while the NLM leverages sentence context, USF directly corrects the search bias against the rare words themselves.
Qualitative Analysis
The practical impact of USF is most visible in transcriptions where phonetically similar common words previously overrode the correct rare terms.
In the examples above, USF successfully steers the model toward the correct rare terms like "fission," "bacc," and "highlife," which were previously misrecognized as more common words or phrases like "fishing," "back," or "hi life."
Conclusion
Unigram Shallow Fusion offers a simple yet highly effective solution to the rare word problem in RNN-T models. By applying a targeted algorithmic "nudge" via a tiny, 1 MB FST, the system significantly improves accuracy for the long tail of language without increasing latency or requiring complex contextual metadata. This work highlights that addressing architectural search biases can be as impactful as increasing model scale.
Summary updated