Correction Focused Language Model Training for Speech Recognition

Yingyi Ma, Zhe Liu, Ozlem Kalinli · DOI

TL;DR

This paper introduces a "correction-focused" approach to training language models (LMs) for speech recognition. By using Large Language Models (LLMs) to predict which words an ASR system is likely to mis-recognize, the authors can weight LM training to prioritize these "fallible" words, leading to significant reductions in Word Error Rate (WER) even when in-domain text data is scarce.

What Problem Does This Paper Address?

In Automatic Speech Recognition (ASR), we often use a Language Model to help the system decide which sequence of words is most likely. Traditionally, these LMs are trained to minimize perplexity (PPL)—essentially trying to make the ground-truth text as "unsurprising" as possible.

However, there is a disconnect: minimizing PPL treats every word equally. In reality, an ASR system might already be very good at recognizing common words (like "the" or "is") but struggle with domain-specific terms or phonetically confusing words. Spending the LM's limited capacity on words the ASR already gets right is inefficient. The challenge is even greater in domain adaptation, where we have plenty of text for a new domain but very little paired audio-transcript data to tell us where the ASR system is actually failing.

Methods

The authors propose a three-step framework to focus LM training on "fallible" words:

  1. Defining Fallibility: They define a "fallibility score"—the probability that a specific word in a specific context will be mis-recognized by the ASR system.
  2. LLMs as Error Predictors: Since we often lack enough audio-transcript pairs to measure errors directly, the authors fine-tune LLMs (like RoBERTa, T5, or LLaMA 2) on a small amount of annotated data. These LLMs learn to predict the likelihood of an ASR error given only the text.
  3. Multi-task Generation: In scenarios where text data is scarce, they use a multi-task fine-tuning strategy. A single LLM is trained to both generate in-domain text and simultaneously predict the fallibility scores for the words it generates.
  4. Weighted Training Objective: Finally, they train the actual ASR Language Model (a smaller, runtime-efficient NNLM) using a modified loss function. They introduce a temperature hyperparameter ($\alpha$) that weights the loss: words with higher fallibility scores contribute more to the training gradient, forcing the model to "pay more attention" to difficult terms.

Datasets

The researchers evaluated their method across several diverse datasets:

  • Public Datasets: Wall Street Journal (WSJ), WikiText-103, and the "dev" splits of LibriSpeech.
  • In-house Datasets: A "video" corpus (social media videos) and a "conv" corpus (crowd-sourced mobile conversations).
  • Domain Adaptation Scenarios: They specifically looked at "sufficient text" (using RoBERTa to score existing text) and "insufficient text" (using T5 or LLaMA 2 to generate 1 million synthetic records).

Key Insights and Ideas

  • Perplexity isn't everything: The results show that while correction-focused training significantly reduces WER, it doesn't always reduce PPL. This confirms that focusing on "hard" words is more important for ASR performance than general linguistic fluency.
  • LLMs are great "Error Proxies": LLMs can successfully transfer knowledge about ASR fallibility across domains. For example, a predictor trained on LibriSpeech can still help identify likely errors in a conversational domain because many ASR mistakes (like phonetic confusion) are universal.
  • Synthetic Data Quality: Using LLaMA 2 to generate both the text and the error scores proved highly effective, suggesting that the "world knowledge" inside LLMs can compensate for a total lack of in-domain text.
  • The $\alpha$ Sweet Spot: There is a limit to how much you should focus on errors. Setting the focus intensity ($\alpha$) too high (e.g., $\alpha=8$) actually hurts performance, likely because the model begins to ignore the basic linguistic structure (the "easy" words) needed for context.

Key Results

  • Sufficient Text Scenario: On conversational test sets, the correction-focused NNLM achieved up to a 5.5% relative WER reduction compared to a conventionally trained LM.
  • Insufficient Text Scenario: When no in-domain text was available, using LLaMA 2-generated text provided a 13% WER reduction over the baseline. Adding the "correction focus" to that synthetic data yielded an additional 6% relative WER reduction.
  • Efficiency: By using multi-task fine-tuning for generation and scoring, the authors avoided the high computational cost of running two separate LLM inference passes.

Limitations and Future Work

  • Initial Paired Data: The method still requires a small amount of "paired" data (audio + reference) to initially teach the LLM what an ASR error looks like.
  • Error Types: The current model uses a binary "error vs. no error" label. The authors suggest that future work could incorporate more detailed information from ASR decoding, such as "confusion word pairs" (e.g., knowing the system often confuses "weather" with "whether").
  • Scaling: While they tested models up to 7B parameters (LLaMA 2), the impact of even larger models or different prompting strategies on fallibility prediction remains an open question.

Summary updated

BibTeX
@misc{ma2023correction,
  author = {Yingyi Ma and Zhe Liu and Ozlem Kalinli},
  title = {{Correction Focused Language Model Training for Speech Recognition}},
  year = {2023},
  eprint = {2310.11003},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.11003},
}
Figure