Remember the Context! ASR Slot Error Correction Through Memorization

Dhanush Bekal, Ashish Shenoy, Monica Sunkara, Sravan Bodapati, Katrin Kirchhoff

TL;DR

Researchers at Amazon AWS AI have developed $k$-PAT, a system that significantly improves how voice assistants recognize rare or domain-specific words (like "Lafayette Street" or "Zhangxiao"). By augmenting a standard Transformer model with a $k$-nearest neighbor ($k$-NN) retrieval mechanism, the system "memorizes" specific speech and text patterns, leading to a 7.4% relative improvement in Word Error Rate (WER) for rare entities and a 9.8% boost for out-of-vocabulary words—all without needing to retrain the core model.

What Problem Does This Paper Address?

Automatic Speech Recognition (ASR) systems are remarkably good at general conversation but often stumble on "long-tail" entities—specific names, niche businesses, or technical terms that don't appear frequently in training data. When an ASR system mishears a "slot" (a key piece of information like a city or name), it can cause a total failure in downstream tasks, such as a digital assistant failing to book a flight or navigate to the correct address.

While "error correction" models (which act like a post-transcription spell-checker) exist, they are typically based on neural networks that struggle to generate words they haven't seen many times. This paper addresses the difficulty neural models have in "predicting" rare tokens by shifting the strategy toward "retrieving" them from an explicit memory.

Methods

The authors introduce $k$-PAT ($k$-nearest neighbors based Phone Augmented Transformer). The architecture consists of two main parts:

  1. The Base Model (PAT): A Transformer-based sequence-to-sequence model that takes two inputs: the incorrect ASR text and its corresponding phonetic sequence (phonemes). By looking at both how a word is spelled and how it sounds, the model can better disambiguate similar-sounding errors.
  2. The $k$-NN Datastore: This is the "memorization" component. During a pre-inference step, the researchers pass training data through the model and save the decoder’s internal representations (keys) alongside the actual target words (values) in an external datastore.
  3. Inference via Retrieval: When the model processes a new sentence, it doesn't just rely on its internal weights. It queries the datastore for the $k$ most similar contexts. It then blends the probability distribution from the neural model with the distribution found in the datastore.

A key technical innovation here is the use of dot-product self-attention pooling to create the search keys, which allows the model to look at the surrounding context of a word more effectively than previous methods.

Datasets

The researchers evaluated their approach on five distinct domains containing "long-tail" entities:

  • Synthetic Data: Generated using Text-to-Speech (TTS) for Airports, Cities, States, and Street names.
  • Vendor-Collected Audio: Real-world recordings of common US first and last names.
  • OOV Set: A specific "Out-of-Vocabulary" test set containing words that were never seen during the training of the base model.

Key Insights and Ideas

  • Memorization vs. Prediction: For rare words, it is fundamentally easier for a model to "look up" a similar context in a database than to "calculate" the next word from scratch using neural weights.
  • Phonetic Leverage: Including phonetic information is crucial. Many ASR errors result in words that sound identical to the target; $k$-PAT uses this "sound-alike" data to narrow down the correct entity.
  • Domain-Specific "Micro-Datastores": The authors found that using smaller, domain-specific datastores (e.g., one just for airports) performed better than one giant combined datastore. This suggests that if a dialogue system knows the user is talking about travel, it can swap in a specialized "memory" to increase accuracy on the fly.
  • Zero-Retraining Adaptation: The $k$-NN approach allows the system to adapt to new words (OOV) simply by adding them to the datastore. This is much faster and cheaper than retraining a massive Transformer model.

Key Results

  • Overall Accuracy: The $k$-PAT model achieved a 7.5% relative improvement in WER on a combined dataset compared to the baseline PAT model.
  • Rare Word Mastery: On the most difficult, low-frequency words (seen only 10 times in training), the model saw a 6 percentage point absolute gain in slot accuracy.
  • Out-of-Vocabulary (OOV) Success: The model showed a 9.8% relative WER improvement on words it had never seen during training, simply by "memorizing" them in the datastore before testing.
  • Qualitative Wins: In examples provided, the baseline model might turn "janie burdick" into "jami barker," while $k$-PAT successfully retrieves the correct, rarer name.

Limitations and Future Work

  • Latency: While the authors use FAISS (a library for efficient similarity search) to keep the system fast, querying an external datastore during every step of text generation naturally adds more computational overhead than a standard model.
  • Retrieval Confusion: The authors noted that if the datastore is too large or contains too many similar-sounding but incorrect neighbors, it can lead to "confusion" and higher error rates.
  • Future Directions: The team aims to integrate this $k$-NN approach into "end-to-end" ASR models (where the speech-to-text and error correction happen in one step) and explore "few-shot" adaptation, where the model learns a new domain from just a handful of examples.

Summary updated

BibTeX
@inproceedings{bekal2021remember,
  author = {Dhanush Bekal and Ashish Shenoy and Monica Sunkara and Sravan Bodapati and Katrin Kirchhoff},
  title = {{Remember the Context! ASR Slot Error Correction Through Memorization}},
  booktitle = {ASRU},
  year = {2021},
  url = {https://openreview.net/forum?id=BCkJlr3ivr},
}

Loading related content...

Figure