NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Generative error correction for code-switching speech recognition using large language models

Chen Chen, Yuchen Hu, Chao-Han Huck Yang, Hexin Liu, Sabato Marco Siniscalchi, Eng Siong ChngarXiv 2023 · DOI

Abstract

Automatic Speech Recognition (ASR) for code-switching (CS) speech—where speakers alternate between languages—remains a significant challenge due to linguistic complexity and the scarcity of specialized training data. This paper presents a Generative Error Correction (GER) framework that shifts the paradigm from traditional hypothesis rescoring to generative synthesis. By leveraging Large Language Models (LLMs) fine-tuned with Low-Rank Adaptation (LoRA), the system maps diverse N-best hypotheses from an ensemble of ASR models into a single, accurate transcription. Our results demonstrate that this approach significantly improves recognition accuracy, achieving a lower error rate with 19 hours of training data than a standard model trained on 200 hours.

Introduction

Code-switching is a prevalent linguistic phenomenon in multilingual communities, yet it poses a major hurdle for ASR systems typically optimized for monolingual input. Challenges include grammatical irregularities at switch points and cross-language homophones. Traditional N-best rescoring methods attempt to select the best candidate from a list but are fundamentally limited: they cannot correct errors if the ground truth is not present in a single hypothesis.

We propose a "Generative Error Correction" (GER) approach. Instead of selecting a candidate, an LLM is used to "write" a corrected transcript by synthesizing information from multiple, potentially flawed, ASR outputs.

Methodology: Hypotheses-to-Transcription (H2T) Mapping

The GER framework utilizes a two-stage process to generate high-fidelity transcriptions:

  1. Diverse Hypothesis Generation: We employ an ensemble of three distinct ASR architectures:
  2. ASR1 (Conformer): Trained on limited in-domain data.
  3. ASR2 (Whisper-Large): A large-scale multilingual model used zero-shot.
  4. ASR3 (Transformer): A monolingual Mandarin model that provides phonetic transliterations of English terms, serving as a "phonetic bridge" for the LLM.
  5. LLM-Based Correction: The N-best lists from these models are concatenated and fed into a Chinese-Llama2-7b model. To ensure computational efficiency and feasibility in low-resource settings, we apply LoRA (Low-Rank Adaptation), which allows for effective fine-tuning by updating only 0.06% of the model's parameters.
The Generative Error Correction (GER) framework illustrating the flow from CS speech to final transcription via an ASR ensemble and a LoRA-tuned LLM.

Experimental Results

The system was evaluated on the ASRU Mandarin-English conversational dataset. We specifically focused on a low-resource scenario using only 19 hours of training data.

Performance and Data Efficiency

The GER framework achieved substantial reductions in Mixed Error Rate (MER). Notably, the ensemble GER system trained on 19 hours of data reached an 8.6% MER, significantly outperforming a baseline Conformer model trained on 200 hours (12.9% MER). This represents a nearly 10x improvement in data efficiency.

Comparative performance metrics (MER/GER) for various ASR configurations and the proposed ensemble approach.

Key Insights

  • Synthesis Capability: GER can perform token-level synthesis, combining correct segments from different hypotheses to form a perfect sentence—a feat impossible for standard rescorers.
  • Phonetic Reasoning: By including a monolingual Mandarin model, the LLM learns to interpret phonetic approximations (e.g., mapping "奥佛" to "offer"), effectively leveraging its pre-trained linguistic knowledge to resolve ambiguities.
  • Contextual Correction: Qualitative analysis shows the LLM successfully uses surrounding context to correct gendered pronouns and technical terminology that individual ASR models often misidentify.

Conclusion and Future Work

Generative Error Correction offers a powerful new paradigm for improving ASR in complex linguistic environments. By treating error correction as a translation-like task from "noisy hypotheses" to "clean text," we can leverage the vast world knowledge embedded in LLMs. While current challenges include inference latency for real-time applications, the framework's extreme data efficiency makes it a compelling solution for low-resource language pairs. Future research will explore latency optimization and broader cross-lingual applications.

Summary updated

BibTeX
@misc{chen2023generative,
  author = {Chen Chen and Yuchen Hu and Chao-Han Huck Yang and Hexin Liu and Sabato Marco Siniscalchi and Eng Siong Chng},
  title = {{Generative error correction for code-switching speech recognition using large language models}},
  year = {2023},
  eprint = {2310.13013},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.13013},
}
Figure