Using External Off-Policy Speech-To-Text Mappings in Contextual End-To-End Automated Speech Recognition

David M. Chan, Shalini Ghosh, Ariya Rastrow, Björn Hoffmeister

Abstract

Despite improvements to the generalization performance of automated speech recognition (ASR) models, specializing ASR models for downstream tasks remains a challenging task, primarily due to reduced data availability and rapidly shifting data distributions. In this work, we investigate the potential of leveraging external knowledge, particularly through off-policy key-value stores generated with text-to-speech methods, to allow for flexible post-training adaptation to new data distributions. In our approach, audio embeddings captured from text-to-speech, along with semantic text embeddings, are used to bias ASR via an approximate k-nearest-neighbor (KNN) based attentive fusion step. Our experiments on LibriSpeech and in-house voice assistant/search datasets show that the proposed approach can reduce domain adaptation time by up to 1K GPU-hours while providing up to 3% WER improvement compared to a fine-tuning baseline, suggesting a promising approach for adapting production ASR systems in challenging zero and few-shot scenarios.

Introduction

Standard automated speech recognition (ASR) models often struggle with "domain specialization"—recognizing specific terms like niche product names, new movie titles, or person-specific contact lists. Traditionally, solving this requires collecting new labeled audio data and fine-tuning the model, which is computationally expensive and slow.

Furthermore, data distributions in production environments shift rapidly. If a new hit movie is released today, a voice assistant needs to recognize its title immediately; waiting for a weekly retraining cycle is often unacceptable. The challenge is: how can we inject this "external knowledge" into an end-to-end ASR system flexibly, efficiently, and ideally in a "zero-shot" manner, without retraining the model every time the list of words changes?

Methodology

The authors propose a system that leverages an external off-policy key-value store to bias the ASR process. This approach allows the model to dynamically attend to relevant context during the encoding process.

Overview of the ASR architecture integrating an external knowledge key-value store.

The methodology breaks down into three primary stages:

  1. Generating the External Memory:
    • Keys: A text catalog (e.g., 15,000 movie titles) is processed through a Text-to-Speech (TTS) engine to generate synthetic audio. This audio is then passed through a pre-trained speech encoder to create "audio embeddings."
    • Values: Semantic text embeddings for the same titles are generated using methods like BERT or GLoVE.
  2. Result: A searchable database where an audio-like representation maps to a semantic text representation.
  3. k-NN Fusion Layer: During inference, the model’s speech encoder generates embeddings for the incoming live audio. The system performs an approximate k-Nearest Neighbor (k-NN) search against the external memory to find the most similar sounding entries. These retrieved key-value pairs are then "fused" into the encoder's internal state using a cross-attention mechanism, biasing the encoder toward terms found in the catalog.

  4. Efficiency: To handle catalogs with millions of entries, the system utilizes the FAISS library and HNSW (Hierarchical Navigable Small World) indexing, maintaining a manageable latency increase of approximately 15% per layer.

Experimental Results

The proposed method was evaluated on the standard LibriSpeech benchmark and an Internal Alexa Dataset focused on media-centric queries.

WER reduction as the percentage of test-set bigrams overlapping with the external catalog increases.

Key Findings:

  • Accuracy Gains: On LibriSpeech, the method provided up to a 3% relative improvement in Word Error Rate (WER) over a standard fine-tuning baseline.
  • Resource Efficiency: In Alexa media domain experiments, the k-NN approach achieved similar or better performance than traditional fine-tuning while saving 1,024 GPU-hours of training time.
  • Zero-Shot Success: As shown in the figure above, as the overlap between the test data and the external catalog increases, the WER drops significantly, proving the model effectively "consults" the catalog to improve recognition of previously unseen terms.
  • Scaling: The benefits are most pronounced for smaller models (5M–50M parameters). Larger models (300M+) show decreased relative gains, likely due to higher internal capacity for vocabulary memorization.

Discussion and Conclusion

The core innovation of this work is using TTS as a bridge between text-only catalogs and audio-only encoders. By turning text into synthetic audio, "keys" are created in the same mathematical space as the features the speech encoder processes. Because the memory is "off-policy," catalogs can be swapped at test time without touching the neural network's parameters.

While approximate k-NN is fast, adding these layers increases "forward pass" time. Using it in just one or two layers provides significant gains while keeping latency increases to 15-23%. Future work will explore improving embedding quality through grapheme/phoneme-based methods and investigating robustness under noisy acoustic conditions.

Summary updated

BibTeX
@inproceedings{chan2023using,
  author = {David M. Chan and Shalini Ghosh and Ariya Rastrow and Björn Hoffmeister},
  title = {{Using External Off-Policy Speech-To-Text Mappings in Contextual End-To-End Automated Speech Recognition}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2023},
  url = {https://openreview.net/forum?id=e8JRSXi6x7},
}
Figure