Towards Zero-Shot Code-Switched Speech Recognition

Brian Yan, Matthew Wiesner, Ondrej Klejch, Preethi Jyothi, Shinji Watanabe

TL;DR

Code-switched speech recognition (switching languages mid-sentence) typically requires expensive mixed-language training data to perform well. This paper introduces a zero-shot approach that eliminates the need for code-switched speech data by forcing monolingual speech recognizers to phonetically "transliterate" foreign words rather than trying to filter them out. By delaying the language-detection decision to a final bilingual fusion stage, the system achieves a 5% absolute error rate reduction over prior zero-shot methods.

What Problem Does This Paper Address?

Code-switching (CS)—where a speaker alternates between two or more languages within a single conversation or sentence—is common globally but notoriously difficult for Automatic Speech Recognition (ASR) systems. Training these systems typically requires large amounts of transcribed CS speech data, which is scarce and expensive to collect for the vast number of language pairs in the world.

Prior "conditionally factorized" models tried to solve this by breaking the bilingual task into monolingual components (e.g., a Mandarin expert and an English expert). However, these experts were forced to perform language segmentation—transcribing their native language while ignoring the other using a <NULL> token. When trained purely on monolingual data (the zero-shot setting), these modules fail to generalize to mixed speech, misidentifying code-switch points and propagating errors downstream.

Methods

The authors propose a Conditional CTC architecture that replaces language segmentation with indiscriminate transliteration.

Instead of ignoring foreign speech, the Mandarin module transcribes English speech into phonetically similar Mandarin characters, and vice versa for the English module. To train this behavior without CS data, they use cross-lingual pseudo-labeling: passing English speech through a Mandarin ASR model to generate target texts, and vice versa.

Masking vs. Transliteration Targets

As shown in Figure 1, this eliminates the need for frame-wise language identification during the acoustic phase. The overall architecture consists of:

  1. Monolingual Encoders & CTC Modules: Generate independent label-to-frame posteriors for each language based on the transliteration targets.
  2. Bilingual CTC Module: Combines the latent representations from both encoders via addition fusion.
  3. External Bilingual Language Model (LM): Used during joint decoding via time-synchronous beam search to resolve ambiguities.
Fig. 2. Conditional CTC architecture consisting of monolingual and bilingual CTC’s plus an external bilingual LM. Red lines indicate joint decoding via time-synchronous beam search.

By shifting the burden of identifying code-switch points from the initial acoustic stage to the final bilingual decoding stage (Figure 2), the model can make more robust decisions based on both acoustic transliterations and textual context.

Datasets

  • SEAME: A South-East Asian Mandarin-English code-switching corpus used for evaluation and creating zero-shot training splits.
  • AISHELL-1: 150 hours of Mandarin speech used for encoder pre-training.
  • TED-LIUM-v1: 118 hours of English speech used for encoder pre-training.

The training data from SEAME was split to simulate two zero-shot settings: one with monolingual speech and CS text (for LM training), and a fully zero-shot setting with only monolingual speech and text.

Key Insights and Ideas

  • Embrace the Noise: Instead of trying to force a monolingual model to stay silent during foreign speech (which it cannot reliably do without explicit training), let it guess phonetically. The resulting transliteration preserves acoustic information that the downstream bilingual module can later decode.
  • Delaying Decisions Pays Off: Frame-level language identification (LID) is brittle in zero-shot scenarios. Postponing the language-switching decision to the bilingual stage allows the model to weigh the outputs of both monolingual modules alongside a language model simultaneously.
  • The 2-Hour Parity Mark: The authors found that the traditional language segmentation approach requires at least 2 hours of actual code-switched speech training data to match the performance of their zero-shot transliteration approach.
Fig. 3. Analysis on the amount of CS ASR training data required for conditional CTC with language segmentation to outperform condi- tional CTC with transliteration. MER(↓) on devman is shown.

Key Results

  • When no code-switched speech data was available, the transliteration approach outperformed the traditional language segmentation approach by 5% absolute Mixed Error Rate (MER) on the SEAME devman and devsge test sets.
  • In the fully zero-shot setting (no CS speech and no CS text), the proposed model achieved an MER of 27.3% on devman, compared to 32.2% for the segmentation baseline and 39.1% for a vanilla CTC baseline.
  • Ablation studies showed that while the bilingual LM is crucial, the monolingual CTCs still provide vital acoustic constraints; removing them entirely causes severe performance degradation (climbing to 48.1% MER).

Limitations and Future Work

  • Noisy Pseudo-labels: Cross-lingual pseudo-labeling relies heavily on the quality of the initial monolingual models. If the transliterations are too chaotic, the bilingual module struggles to resolve them. The authors suggest exploring constrained decoding to improve pseudo-label quality.
  • Scaling Beyond Bilingualism: The current framework is demonstrated exclusively on a bilingual pair (Mandarin-English). Scaling this to trilingual or open-ended multilingual code-switching remains an open challenge.

Summary updated

BibTeX
@inproceedings{yan2023towards,
  author = {Brian Yan and Matthew Wiesner and Ondrej Klejch and Preethi Jyothi and Shinji Watanabe},
  title = {{Towards Zero-Shot Code-Switched Speech Recognition}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2023},
  doi = {10.1109/icassp49357.2023.10097151},
}
Figure