Introduction
Code-switching (CS), the practice of alternating between two or more languages in a single conversation, is a prevalent linguistic phenomenon in multilingual societies like Singapore and Malaysia. Developing Automatic Speech Recognition (ASR) systems for CS speech is notoriously difficult due to data scarcity, complex co-articulation at language boundaries, and the traditional requirement for expert-crafted linguistic resources like lexicons and phone-sharing tables. This paper explores an end-to-end (E2E) approach to Mandarin-English code-switching, aiming to simplify the system architecture while maintaining high performance without requiring hand-crafted lexicons.
Methodology
The proposed system utilizes a hybrid CTC-Attention architecture. This framework leverages a shared encoder to extract acoustic features, which are then processed by two distinct heads: a Connectionist Temporal Classification (CTC) objective and an attention-based decoder. The CTC component encourages monotonic alignment, aiding convergence, while the attention mechanism captures long-range dependencies essential for language modeling.
Modeling Units and Language Identification
A key challenge in CS ASR is selecting appropriate modeling units. The authors compared a pure character-based approach with a "Character-Subword" model. In the latter, Mandarin is represented by characters, while English is decomposed into subword units using Byte Pair Encoding (BPE). This hybrid approach aims to balance vocabulary size with the structural nuances of both languages.
To further improve performance, the researchers integrated Multi-Task Learning (MTL) for Language Identification (LID). By adding a dedicated LID branch to the shared encoder, the model is forced to learn language-specific acoustic features, which significantly enhances the encoder's representational power for code-switched audio.
Experimental Setup
The system was evaluated on the SEAME (South East Asia Mandarin-English) corpus, which contains 66.8 hours of spontaneous conversation from Singaporean and Malaysian speakers. This dataset is particularly challenging due to its spontaneous nature and high frequency of language switches. The data was split into training (137 speakers), development (9 speakers), and test (9 speakers) sets.
Key Results
The study demonstrates that the combination of subword modeling, multi-task LID, and constrained decoding significantly improves recognition accuracy. Initial experiments focused on selecting the optimal modeling units, where the "mixed-200" configuration (Mandarin characters + 200 English BPE subwords) outperformed pure character models.
Building upon the mixed-200 baseline, the final system achieved a Mixed Error Rate (MER) of 34.24% on the SEAME test set. Key findings include:
- LID-MTL Impact: Incorporating a dedicated LID loss reduced the MER from 37.83% to 36.48%.
- Decoding Constraints: Implementing a dictionary-based check during beam search (Decode2) provided the final boost, reducing the error rate to 34.24%.
- Subwords vs. Characters: Subword units for English consistently outperformed character-only models, providing a more robust alignment between audio and text.
Conclusion
This research highlights the potential of E2E frameworks for complex speech tasks like code-switching. By bypassing the need for hand-crafted linguistic rules and leveraging multi-task learning, the authors achieved competitive results on a challenging spontaneous speech corpus. Future work will focus on scaling this approach to larger datasets and more diverse language pairs.
Summary updated