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

Semi-supervised Learning for Code-Switching ASR with Large Language Model Filter

Yu Xi, Wen Ding, Kai Yu, Junjie Lai · DOI

Abstract

Code-switching (CS) phenomenon occurs when words or phrases from different languages are alternated in a single sentence. Due to data scarcity, building an effective CS Automatic Speech Recognition (ASR) system remains challenging. In this paper, we propose to enhance CS-ASR systems by utilizing rich unsupervised monolingual speech data within a semi-supervised learning framework, particularly when access to CS data is limited. To achieve this, we establish a general paradigm for applying noisy student training (NST) to the CS-ASR task. Specifically, we introduce the LLM-Filter, which leverages well-designed prompt templates to activate the correction capability of large language models (LLMs) for monolingual data selection and pseudo-labels refinement during NST. Our experiments on the supervised ASRU-CS and unsupervised AISHELL-2 and LibriSpeech datasets show that our method not only achieves significant improvements over supervised and semi-supervised learning baselines for the CS task, but also attains better performance compared with the fully-supervised oracle upper-bound on the CS English part. Additionally, we further investigate the influence of accent on AESRC dataset and demonstrate that our method can get achieve additional benefits when the monolingual data contains relevant linguistic characteristic.

Introduction

Code-switching—the practice of alternating between two or more languages in a single conversation (e.g., "Please help me 确认一下这个 schedule")—is a natural part of multilingual speech. However, building Automatic Speech Recognition (ASR) systems for it is notoriously difficult due to data scarcity.

While there is plenty of data for single languages (monolingual), there is very little high-quality, transcribed data for intra-sentential code-switching. Collecting this data is expensive because it requires transcribers fluent in multiple languages. Previous attempts to use monolingual data to help CS systems often suffered from "data mismatch," where the model learned the languages individually but struggled to handle the transitions or accents typical of code-switched environments.

Methodology

The authors propose a general paradigm for Noisy Student Training (NST) enhanced by an LLM-Filter to leverage massive amounts of unsupervised monolingual data.

Overview of the proposed semi-supervised learning framework with LLM-Filter.

The process follows an iterative pipeline:

  1. Initial Training: A "Teacher" model ($M^t$) is trained on a small set of labeled code-switching data.
  2. Pseudo-Labeling: This Teacher model generates transcriptions (pseudo-labels) for a massive amount of unlabeled monolingual (Mandarin and English) speech.
  3. The LLM-Filter: Instead of using these raw pseudo-labels (which are often noisy), the researchers pass them through an LLM (GPT-4o). Using specific prompts, the LLM acts as an "ASR expert" to correct spelling, substitution, and grammatical errors in the transcriptions.
  4. Data Selection: The system calculates a "Hypo-MER" (Mixed Error Rate) by comparing the original ASR hypothesis with the LLM-corrected version. If the difference is below a certain threshold, the data is deemed "high quality" and kept.
  5. Student Training: A "Student" model ($M^{t+1}$) is trained from scratch using both the original labeled CS data and the newly filtered, high-quality pseudo-labeled monolingual data.
  6. Iteration: The Student becomes the new Teacher, and the process repeats.

Experimental Setup

The study utilized several key datasets to evaluate the framework:

  • ASRU-CS: 200 hours of Mandarin-English code-switching audio (Supervised).
  • AISHELL-2: 1,000 hours of Mandarin monolingual speech (Unsupervised).
  • LibriSpeech (LS): 960 hours of English monolingual speech (Unsupervised).
  • AESRC: 160 hours of accented English (used to test the impact of linguistic relevance, as the CS data featured Mandarin speakers speaking English).

Key Results and Insights

The proposed method achieved significant error reductions across multiple benchmarks. As shown in the results table, the NST approach with LLM filtering consistently outperformed supervised and semi-supervised baselines.

Main experimental results on ASRU-CS, AISHELL-2, and LibriSpeech datasets.
  • Significant Error Reduction: The proposed method achieved a 12.6% and 12.9% reduction in Mixed Error Rate (MER) on the ASRU-CS dev and test sets, respectively, compared to standard semi-supervised baselines.
  • Beating the Oracle: Surprisingly, on the English portion of the code-switching task, the model outperformed the "Oracle" (a model trained on the actual human-provided ground truth). This suggests the LLM-Filter provided "cleaner" and more linguistically consistent labels than the original human transcribers.
  • LLMs as Linguistic Priors: The core advantage is that LLMs possess vast linguistic knowledge that can correct ASR errors (like homophones or grammatical slips) without ever "hearing" the audio.
  • Quality over Quantity: The LLM-Filter showed that using less data that is of higher quality (filtered) is more effective than using all available unsupervised data. In their third iteration, they used only about half of the available unsupervised data but achieved better results than the unfiltered baseline.

Conclusion

This paper demonstrates that LLMs can serve as effective "intelligent filters" for ASR data, significantly improving code-switching recognition by refining pseudo-labels from monolingual sources. While the computational cost of high-end LLM APIs remains a challenge, the "plug-and-play" nature of this approach offers a scalable path forward. Future work will explore the use of smaller, local LLMs and integration with large-scale speech foundation models.

Summary updated

BibTeX
@inproceedings{xi2024semi,
  author = {Yu Xi and Wen Ding and Kai Yu and Junjie Lai},
  title = {{Semi-supervised Learning for Code-Switching ASR with Large Language Model Filter}},
  booktitle = {SLT},
  year = {2024},
  url = {https://openreview.net/forum?id=Me1IM0VtvN},
}
Figure