Contextualized Automatic Speech Recognition with Dynamic Vocabulary

Yui Sudo, Yosuke Fukumoto, Muhammad Shakeel, Yifan Peng, Shinji Watanabe · DOI

Introduction

End-to-end (E2E) Automatic Speech Recognition (ASR) systems have achieved remarkable performance across various domains. However, a persistent challenge remains: the "long-tail" problem. Rare words, technical jargon, and specific named entities—such as "Nelly" or specialized medical terms—are often misrecognized because they appear infrequently in training data. This paper presents a novel "Dynamic Vocabulary" approach designed to enhance ASR models' ability to recognize these rare terms without requiring model retraining.

The Limitations of Subword-Based Biasing

Current state-of-the-art ASR models typically utilize subword units (e.g., Byte Pair Encoding) to handle large vocabularies. When attempting to recognize rare words via "Deep Biasing" (DB) techniques, these words are decomposed into subword sequences. For instance, the name "Nelly" might be broken into "N," "el," and "ly." Because the model has rarely encountered this specific sequence in that order, it assigns a low probability to the transition, often resulting in a substitution error with a more common word.

While existing solutions like external language models or cross-attention layers exist to mitigate this, they often introduce significant computational overhead and architectural complexity, making them difficult to implement across different ASR frameworks.

Proposed Method: Dynamic Vocabulary Expansion

The authors propose a streamlined, architecture-agnostic method called Dynamic Vocabulary Expansion. This approach shifts the focus from subword sequences to phrase-level representations.

1. Bias Encoder and Single-Token Representation

The system utilizes a Transformer-based bias encoder to transform a list of "bias phrases" into high-dimensional embeddings. Crucially, instead of treating a phrase as a sequence of subwords, the model represents the entire phrase as a single, unique token (e.g., <Nelly>). By treating the phrase as a single unit, the model bypasses the need to learn complex subword dependencies for rare terms, requiring only a match between the acoustic signal and the specific phrase embedding.

2. Dynamic Decoder Expansion

At inference time, the ASR model’s embedding and output layers are dynamically expanded to incorporate these new bias tokens. This allows the decoder to predict the bias tokens directly alongside its standard vocabulary. To manage the influence of these new tokens, the researchers introduced a Bias Weight (μ) parameter. This allows for fine-tuning the "intensity" of the bias, preventing the model from over-biasing (predicting bias words when they aren't present) or under-biasing (ignoring the bias list).

3. Training via Simulation

To prepare the model for dynamic expansion, the authors employed a simulation strategy during training. Rather than using a fixed bias list, they randomly selected phrases from the training transcriptions to serve as "pseudo-bias" phrases. This teaches the model how to utilize dynamic tokens before it ever encounters real-world Out-of-Vocabulary (OOV) terms.

Experimental Evaluation

The method was evaluated on both English and Japanese datasets to test its versatility across different linguistic structures:

  • English (LibriSpeech-960): The researchers focused on the "test-clean" and "test-other" sets, specifically measuring performance on unseen words.
  • Japanese: An in-house dataset comprising the Corpus of Spontaneous Japanese (581 hours) and additional speech data was used to evaluate performance on a character-based language with distinct linguistic constraints.

Key Results

The results demonstrate a substantial improvement over baseline models and existing biasing techniques:

  • Massive Gains on Unseen Words: On the LibriSpeech "test-other" set, the baseline model exhibited a Bias Word Error Rate (Bias-WER) of 73.5% for unseen words. The Dynamic Vocabulary approach slashed this to 19.0% using a bias list of 1,000 words.
  • Outperforming Existing Tech: The proposed method improved the bias phrase WER by 3.1 to 4.9 points compared to conventional Deep Biasing methods like CPPNet.
  • Japanese Performance: On the Japanese dataset, the model achieved a Character Error Rate (CER) of 9.03%, significantly outperforming other techniques in the recognition of technical terminology.

Discussion and Future Work

The core strength of this approach lies in its ability to preserve linguistic context. Analysis indicates that the introduction of dynamic tokens does not disrupt the probability distribution of surrounding words, allowing for seamless integration into the sentence structure.

However, the authors noted that performance begins to degrade slightly as the bias list scales to very large sizes (e.g., moving from 100 to 1,000 words). Additionally, while more efficient than external language models, a massive dynamic vocabulary increases the size of the final Softmax layer, which could impact latency in extremely resource-constrained environments. Future research will focus on optimizing the system for even larger bias lists without compromising the recognition of standard speech.

Conclusion

Dynamic Vocabulary Expansion offers a robust and flexible solution for the OOV problem in ASR. By treating rare phrases as single tokens and dynamically expanding the model's vocabulary at inference, this method provides a significant leap in accuracy for contextualized speech recognition across multiple languages.

Summary updated

BibTeX
@inproceedings{sudo2024contextualized,
  author = {Yui Sudo and Yosuke Fukumoto and Muhammad Shakeel and Yifan Peng and Shinji Watanabe},
  title = {{Contextualized Automatic Speech Recognition with Dynamic Vocabulary}},
  booktitle = {SLT},
  year = {2024},
  doi = {10.1109/slt61566.2024.10832281},
}
Figure