ASR Error Correction Using Large Language Models

Rao Ma, Mengjie Qian, Mark Gales, Kate Knill

TL;DR

This paper explores using Large Language Models (LLMs) like ChatGPT for Automatic Speech Recognition (ASR) error correction, moving beyond single best hypotheses to leverage N-best lists for richer context. They introduce novel decoding strategies and demonstrate that LLMs can effectively correct ASR errors, adapt to different ASR systems, and even act as a form of model ensembling, with minimal data contamination concerns.

What Problem Does This Paper Address?

Automatic Speech Recognition (ASR) systems, while advanced, still produce errors in their transcriptions. These errors can significantly impact the usability and readability of the transcribed text, especially in domain-specific or unseen environments. While traditional error correction (EC) methods exist, they often require deep access to the ASR system or extensive retraining. This paper addresses the challenge of improving ASR transcription quality by leveraging the power of Large Language Models (LLMs) as a post-processing step, particularly for "black-box" ASR systems where direct access is limited. The authors aim to enhance EC performance by utilizing richer contextual information from ASR outputs and developing more robust and adaptable EC models.

Methods

The core of this work lies in exploring how LLMs can be effectively employed for ASR error correction. The authors propose several key methodological advancements:

  • Leveraging ASR N-best Lists: Instead of relying solely on the single best ASR hypothesis, the paper advocates for using N-best lists (multiple top-ranked hypotheses from the ASR system). This provides more contextual clues for the EC model.
  • Fine-tuning vs. Zero-Shot EC: They investigate two primary approaches:
  • Fine-tuning: Adapting pre-trained LLMs (specifically T5) to the ASR error correction task using supervised training data.
  • Zero-Shot: Utilizing generative LLMs like ChatGPT directly, without explicit fine-tuning, by crafting specific prompts that include N-best hypotheses.
  • Constrained Decoding Strategies: To improve the control and precision of LLM-based EC, they introduce:
  • Unconstrained Decoding: The standard approach where the LLM can generate any sequence.
  • N-best Constrained Decoding: Restricting the LLM's output to only the hypotheses present in the ASR N-best list.
  • N-best Closest Decoding: Finding the hypothesis in the N-best list that is closest (via Levenshtein distance) to the LLM's unconstrained output.
  • Lattice Constrained Decoding: A more flexible approach that uses ASR lattices (a richer representation than N-best lists) to guide decoding.
  • Generalization and Adaptability: The paper evaluates the ability of EC models to generalize to outputs from different ASR systems and to unseen domains without retraining.
  • Multi-Model N-best Lists: Extending the concept to combine N-best lists from multiple ASR systems, acting as a form of model ensembling.
  • Data Contamination Analysis: A crucial aspect is assessing the potential for ASR test data to have been included in the LLM's pre-training data, which could inflate performance metrics. They propose a quiz-based method to measure this.

Datasets

The experiments were conducted using three standard datasets:

  • LibriSpeech: An audiobook-based English speech corpus.
  • TED-LIUM3: An audio dataset collected from TED talks.
  • Artie bias corpus: A subset of the Common Voice dataset.

Additionally, they used two internal datasets, MGB-3 and Linguaskill, which are less likely to be contaminated due to their unique characteristics and restricted access.

Key Insights and Ideas

  • N-best lists are gold: Moving beyond the single best ASR hypothesis to N-best lists significantly boosts error correction performance, providing richer context for LLMs.
  • LLMs are versatile EC tools: Both fine-tuned and zero-shot LLM approaches show promise, with zero-shot methods offering a practical alternative when fine-tuning is not feasible.
  • Decoding matters: Constrained decoding strategies (N-best constrained, closest) can improve precision and reduce unwanted errors like deletions, especially in zero-shot settings.
  • Generalization is achievable: EC models trained on one ASR system's output can generalize to others, and even to different domains, highlighting adaptability.
  • LLMs as ensemble members: Combining N-best lists from multiple ASR systems with LLMs can lead to improved performance, acting as a powerful form of model ensembling.
  • Data contamination is a concern, but manageable: While GPT-4 showed some signs of data contamination, the proposed methods generally remain robust, and the contamination levels were not severe enough to invalidate the findings.

Key Results

  • Significant WER reduction: Fine-tuned N-best T5 models achieved substantial improvements in Word Error Rate (WER) on LibriSpeech test sets, with oracle WER improvements up to 38.4% with 10-best lists.
  • Zero-shot performance: GPT-3.5 matched the performance of the 10-best T5 model for Transducer ASR outputs, while GPT-4 surpassed it.
  • Out-of-domain adaptation: Fine-tuned EC models showed improved performance on out-of-domain datasets (TED-LIUM3, Artie bias) without retraining.
  • Cross-system generalization: Constrained decoding successfully improved performance when applying EC models trained on Whisper outputs to Transducer ASR outputs, reducing WER by up to 6.1%.
  • Model ensembling: Combining N-best lists from multiple ASR systems with LLMs achieved a WER of 4.72%, outperforming individual ASR baselines.
  • Data contamination levels: GPT-3.5 showed minimal contamination, while GPT-4 exhibited some level on certain datasets, but generally not to a degree that undermines the method's effectiveness.

Limitations and Future Work

  • ASR model dependency: The effectiveness of some methods, particularly lattice-constrained decoding, relies on access to ASR decoding probabilities, limiting their applicability to certain scenarios.
  • Whisper's N-best list characteristics: Whisper's tendency to produce N-best lists with similar content and more deletions/insertions (due to inverse text normalization) can make error correction more challenging compared to Transducer models.
  • Data contamination in GPT-4: While not severe, the observed data contamination in GPT-4 suggests a need for further research into mitigating this issue for even more reliable evaluations.
  • Future work: The authors suggest exploring more advanced decoding strategies, investigating the impact of different LLM architectures, and further analyzing the characteristics of N-best lists from various ASR systems to optimize EC performance. They also highlight the potential for LLMs to improve ASR accuracy through effective model ensembling.

Summary updated

BibTeX
@article{ma2024asr,
  author = {Rao Ma and Mengjie Qian and Mark Gales and Kate Knill},
  title = {{ASR Error Correction Using Large Language Models}},
  journal = {IEEE Transactions on Audio, Speech and Language Processing},
  year = {2024},
  url = {https://openreview.net/forum?id=W5Ydc3yuqh},
}
Figure