Abstract
This paper introduces an end-to-end automatic speech recognition (ASR) model designed specifically for intra-sentential code-switching (mixing two languages in a single sentence). By leveraging a two-step training process—joint pretraining on monolingual datasets followed by fine-tuning on a mixed-language corpus—the model learns to seamlessly transcribe Mandarin-English speech, improving the Character Error Rate (CER) by 5% over baseline methods.
Introduction
Code-switching, the fluid transition between languages (e.g., English and Mandarin) within a single utterance, is a common linguistic phenomenon in bilingual communities. However, it poses significant challenges for traditional ASR systems. Switch points are unpredictable, phonemes often overlap across languages (e.g., English "one" vs. Mandarin "wan"), and traditional rigid pipelines struggle with the severe lack of large-scale, annotated code-switching training data.
Proposed Architecture
To bypass the limitations of traditional pipeline ASR, the authors propose an end-to-end neural network utilizing Connectionist Temporal Classification (CTC).
As illustrated in Figure 1, the model processes log-spectrograms of audio using a Convolutional Neural Network (CNN) to extract local features. These features are then fed into a 4-layer Bidirectional Gated Recurrent Unit (Bi-GRU) to capture long-range temporal dependencies. Finally, a fully connected layer with a softmax output predicts characters directly, mapped via the CTC loss function.
Training Strategy
The authors employ a transfer learning approach to overcome the scarcity of code-switched data:
- Joint Pretraining: The model is first trained on a mixed batch of monolingual English (Mozilla Common Voice) and Mandarin (HKUST) data. This prevents "catastrophic forgetting" and builds a robust acoustic foundation for both languages.
- Fine-Tuning: The pretrained model is fine-tuned on the SEAME Phase II corpus, a conversational Mandarin-English dataset, to learn the mechanics of language transitions.
- Language Model Rescoring: During decoding, CTC predictions are combined with an external 5-gram language model (trained on code-switched text) using prefix beam search to correct grammatical and phonetic errors.
Results and Discussion
The joint training strategy yields substantial improvements over baseline models trained only on code-switched data.
As shown in Figure 4, the baseline model trained solely on the SEAME dataset achieved a CER of 29.82% on the test set. The proposed joint training and fine-tuning pipeline reduced the CER to 25.54%. Incorporating the 5-gram language model further lowered the error rate to 24.61%, representing an absolute improvement of approximately 5%.
A key insight is the model's data efficiency: fine-tuning the pretrained model on just 50% of the code-switching data (50.41 hours) resulted in a CER of 27.97%, which already outperforms the baseline model trained on 100% of the data.
Conclusion
This work demonstrates that end-to-end CTC models can effectively handle code-switching by directly mapping acoustic features to a bilingual character set. The combination of joint monolingual pretraining and code-switched fine-tuning provides a powerful framework for low-resource bilingual ASR. Future research will explore advanced architectures to further mitigate catastrophic forgetting and improve the retention of distinct acoustic properties in multi-language models.
Summary updated