Introduction
In multilingual communities, speakers frequently engage in Code-Switching (CS)—the practice of alternating between two or more languages within a single conversation or sentence. For Automated Speech Recognition (ASR) systems, this phenomenon presents a significant challenge. Most language models are trained on monolingual data and struggle to predict the next word when a language switch occurs (e.g., moving from Mandarin to English). Furthermore, bilingual training data is scarce, and traditional n-gram models fail to capture the complex syntactical logic underlying these transitions.
Methodology
To address these challenges, this research proposes a hybrid approach that combines the strengths of Recurrent Neural Networks (RNNs) and Factored Language Models (FLMs).
Recurrent Neural Network Language Models (RNNLM)
Unlike traditional n-grams, RNNs utilize a hidden layer that acts as a memory, allowing the model to process longer contexts. The authors enhanced the standard RNNLM by augmenting the input layer with linguistic features, specifically Part-of-Speech (POS) tags and Language Identifiers (LID). Additionally, the output layer was factorized into four classes (English, Mandarin, Particles, and "Other") to help the model predict the language of the next word before predicting the word itself.
Factored Language Models (FLM)
FLMs treat each word as a vector of features rather than a single token. Because determining the optimal feature set and "backoff" paths is complex, the authors employed a genetic algorithm to automatically discover the most effective structure for the FLM.
Linear Interpolation
The final model is a weighted combination of the RNNLM and the FLM, leveraging the complementary strengths of both architectures. Analysis revealed that FLMs performed better during 2-gram backoff scenarios, while RNNLMs excelled at the 1-gram and 3-gram levels.
Dataset: The SEAME Corpus
The models were evaluated using the SEAME (South East Asia Mandarin-English) corpus, which consists of approximately 63 hours of spontaneous interviews and conversations from Singaporean and Malaysian speakers. This dataset is particularly challenging because monolingual segments are very short (averaging less than one second), resulting in high-frequency switching.
To facilitate POS tagging on this mixed data, a custom pipeline was developed to identify "language islands" and apply specialized taggers for English and Mandarin.
Experimental Results
Performance was measured using perplexity (PPL), where lower values indicate superior predictive capability. The integration of POS tags proved to be a reliable indicator of code-switching points, as syntactical rules often govern where a switch is permissible.
The combined RNNLM + FLM model achieved a 37.8% relative improvement in perplexity on the development set and 32.7% on the evaluation set compared to a traditional 3-gram baseline. These results demonstrate that incorporating linguistic features and combining neural and factored approaches significantly enhances the modeling of code-switched speech.
Conclusion and Future Work
While the hybrid model shows remarkable performance gains, challenges remain regarding the computational complexity of training these models and the ongoing scarcity of bilingual data. Future research will focus on integrating these advanced language models into full speech-to-text pipelines to evaluate their impact on Word Error Rates (WER) in real-world ASR applications.
Summary updated