Abstract
Code-switching (CS) is common in daily conversations where more than one language is used within a sentence. The difficulties of CS speech recognition lie in alternating languages and the lack of transcribed data. Therefore, this paper uses the recently successful self-supervised learning (SSL) methods to leverage many unlabeled speech data without CS. We show that hidden representations of SSL models offer frame-level language identity even if the models are trained with English speech only. Jointly training CTC and language identification modules with self-supervised speech representations improves CS speech recognition performance. Furthermore, using multilingual speech data for pre-training obtains the best CS speech recognition.
Introduction
Code-switching (CS)—the practice of alternating between two or more languages within a single conversation—is a daily reality for millions in multilingual societies. However, building Automatic Speech Recognition (ASR) systems for CS is notoriously difficult due to data scarcity and acoustic ambiguity. Transcribed CS data is far rarer than monolingual data, and "switch points" between languages often lead to phonetic confusion, where a word in one language is misidentified as a similar-sounding word in another.
This research investigates whether Self-Supervised Learning (SSL), which extracts robust features from massive amounts of unlabeled speech, can mitigate these challenges by providing universal phonetic representations that naturally capture language-switching cues.
Methodology
The proposed framework utilizes wav2vec 2.0 as a frozen SSL backbone to extract high-level acoustic features. The architecture consists of two primary components: a Connectionist Temporal Classification (CTC) Module for ASR and a Language Identification (LID) Module for frame-wise classification (Mandarin, English, or silence).
A key innovation is the logit scaling mechanism, where the LID module's output scores are added to the CTC module's logits. This effectively "gates" the ASR predictions: if the LID module identifies a segment as Mandarin, it boosts the probability of Mandarin tokens in the final output. The researchers found that a two-stage training strategy—training modules separately before joint fine-tuning (FT)—was essential for stability and performance.
Experiments were conducted on the SEAME corpus, a Mandarin-English CS dataset from Singapore and Malaysia, using various SSL backbones including wav2vec 2.0 Base, Large, and the multilingual XLSR-53.
Results and Discussion
The integration of SSL representations yielded immediate gains. Replacing standard filterbank features with wav2vec 2.0 Base features reduced the Token Error Rate (TER) on the dev-man set from 29.4% to 20.8%, a 29% relative improvement. The multilingual XLSR model achieved the best overall performance, reaching a TER of 18.8% on dev-man and 28.5% on dev-sge.
As illustrated above, the LID module acts as a vital correction mechanism. In models trained separately, phonetic similarities can cause errors; for instance, the English word "break" might be misrecognized as the Mandarin character "不" (bu). Joint fine-tuning aligns the LID and CTC modules, allowing the language identity cues to steer the ASR toward the correct linguistic context. Notably, even SSL models pre-trained exclusively on English (LibriSpeech) demonstrated high accuracy in identifying Mandarin frames, suggesting that SSL models learn universal phonetic boundaries.
Conclusion
This study demonstrates that SSL hidden representations are highly effective for code-switching ASR, even when the pre-training data is monolingual. By jointly training ASR and LID modules, the system can better resolve acoustic ambiguities at language switch points. Future work will explore the benefits of unfreezing the SSL backbone during fine-tuning and extending this framework to other language pairs beyond Mandarin and English.
Summary updated