Generative Speech Recognition Error Correction with Large Language Models and Task-Activating Prompting

Chao-Han Huck Yang, Yile Gu, Yi-Chieh Liu, Shalini Ghosh, Ivan Bulyko, Andreas Stolcke · DOI

Abstract

While Automatic Speech Recognition (ASR) has advanced significantly, transcribing complex or domain-specific speech remains a challenge. Traditional second-pass rescoring models are often limited by their size and inability to correct errors not present in the initial N-best hypotheses. This paper explores the use of Large Language Models (LLMs) as generative post-processors. By introducing Task-Activating Prompting (TAP) and leveraging parameter-efficient fine-tuning (PEFT), the authors demonstrate that LLMs can not only rescore hypotheses but also actively correct errors, ultimately surpassing the theoretical N-best oracle limit.

Introduction

In standard ASR architectures, a first-pass acoustic model generates a list of the top-N most likely transcriptions, known as hypotheses. A second-pass language model (LM) then rescores these candidates to select the most contextually appropriate one. However, these LMs are typically small (10M–100M parameters) to facilitate on-device deployment, which limits their linguistic depth.

This research investigates whether massive, pre-trained LLMs (such as GPT or BLOOM) can be leveraged as cloud-based post-processors to improve ASR accuracy without requiring extensive domain-specific fine-tuning. The study focuses on two primary capabilities: zero-shot/few-shot error correction through prompting and generative correction via fine-tuning.

Methodology

Post-Processing Pipelines

The authors propose two distinct architectural pipelines for integrating LLMs into the ASR workflow:

  1. Pipeline 1 (Correction + Standard Rescoring): The LLM acts as an intermediate corrector. It identifies and fixes grammatical or phonetic errors within the N-best list before passing the refined candidates to a standard rescoring model like RescoreBERT.
  2. Pipeline 2 (Direct LLM Rescoring): The LLM serves as the primary rescorer and corrector. Using in-context learning (ICL), the model evaluates the N-best list and generates the final corrected transcription directly.

Task-Activating Prompting (TAP)

A central contribution of this work is the Task-Activating Prompting (TAP) strategy. Standard zero-shot prompting often fails to elicit the complex reasoning required for ASR correction. TAP addresses this by using a multi-round conversational sequence to "prime" the model. The process involves:

  • Asking the LLM to define ASR and the concept of rescoring.
  • Providing a specific example of the task.
  • Feeding the actual N-best list for inference.

This sequence activates the relevant latent concepts within the LLM’s context window, significantly improving its performance on the subsequent task.

Parameter-Efficient Fine-Tuning (PEFT)

To move beyond frozen models, the authors experiment with Low-Rank Adaptation (LoRA) and residual adapters. These methods allow the model to learn the nuances of ASR error correction by training only a small fraction of the total parameters, preserving the model's general linguistic knowledge while specializing it for the task.

Experimental Setup

Data

The first-pass ASR model (a Conformer-based RNN-T) was trained on a diverse 35,000-hour corpus including Librispeech, GigaSpeech, and VoxPopuli. To test out-of-domain generalization, the LLM-based systems were evaluated on:

  • ATIS (Airline Travel Information System): Domain-specific spoken queries for air travel.
  • WSJ (Wall Street Journal): Read news articles representing a different linguistic style.

Key Insights and Results

The Generative Advantage

The most striking result is the LLM's ability to beat the N-best oracle error rate. The oracle rate represents the lowest possible Word Error Rate (WER) achievable if a model perfectly selected the best candidate from the ASR's top-10 list. On the WSJ dataset, the oracle WER was 9.78%, yet the LoRA-tuned OpenLLaMA model achieved a WER of 2.11%. This confirms that the LLM is not merely re-ranking existing options but is actively generating new, correct words that were entirely absent from the original ASR hypotheses.

Performance Metrics

  • Zero/Few-Shot Success: Using TAP with frozen InstructGPT models resulted in a 31% relative WER reduction on ATIS and a 38% reduction on WSJ compared to the first-pass baseline.
  • Fine-Tuning Gains: Applying LoRA to OpenLLaMA (13B) yielded massive improvements, reducing WER by 86% on ATIS (to 1.69%) and 80% on WSJ (to 2.11%).
  • Phonetic Understanding: The study reveals that LLMs implicitly understand phonetics. Even without audio input, the models can analyze similar-sounding but incorrect words in an N-best list and deduce the intended word based on linguistic context.

Efficiency of LoRA

Interestingly, LoRA outperformed full fine-tuning. The authors suggest that parameter-efficient methods prevent "catastrophic forgetting," allowing the model to adapt to the error-correction task without losing the broad linguistic patterns learned during pre-training.

Limitations and Future Work

The research identifies that generative correction is emergent at scale; smaller models (e.g., GPT-2 1.5B) struggled to outperform simple n-gram baselines. Additionally, the current study relied on manual selection for few-shot demonstrations, suggesting that automated selection strategies could further optimize performance.

Future research directions include the integration of acoustic representations (audio embeddings) directly into the LLM. This would allow the model to "hear" the audio alongside the text, potentially resolving ambiguities that text-only context cannot address.

Conclusion

This work demonstrates that LLMs are highly effective tools for ASR post-processing. Through Task-Activating Prompting and parameter-efficient fine-tuning, these models can transcend the limits of traditional rescoring, moving into the realm of active, generative error correction.

Summary updated

BibTeX
@inproceedings{yang2023generative,
  author = {Chao-Han Huck Yang and Yile Gu and Yi-Chieh Liu and Shalini Ghosh and Ivan Bulyko and Andreas Stolcke},
  title = {{Generative Speech Recognition Error Correction with Large Language Models and Task-Activating Prompting}},
  booktitle = {ASRU},
  year = {2023},
  doi = {10.1109/asru57964.2023.10389673},
}
Figure