Introduction
Code-switching (CS), the fluid alternation between two or more languages within a single utterance, presents a significant challenge for Automatic Speech Recognition (ASR) systems. Traditional ASR models are typically optimized for monolingual input. When faced with mixed-language speech, such as Mandarin-English combinations common in many global communities, these systems often struggle to predict the timing and location of language transitions.
Existing approaches often rely on early language detection or simple interpolation of monolingual models. However, early detection is prone to cascading errors, and simple interpolation fails to account for the underlying syntactic rules governing how humans switch languages. This paper introduces a novel statistical code-switch language model (CSLM) that leverages linguistic "equivalence constraints" to improve ASR accuracy.
Methodology: The Equivalence Constraint
The core innovation of this work is the application of the Equivalence Constraint from linguistics. This theory suggests that code-switching is most likely to occur at points where the surface word order of both languages is identical. Conversely, if a switch would require a syntactic "inversion" (reordering) to remain grammatical in the target language, it is considered less permissible.
As shown in Figure 6, the model uses word alignment—a technique borrowed from statistical machine translation—to identify these permissible switch points. By treating the "inversion constraint" as a boundary for language transitions, the model significantly narrows the search space for the decoder while maintaining grammatical integrity.
WFST-Based Model Architecture
The proposed CSLM is integrated into a Weighted Finite State Transducer (WFST) framework, allowing for efficient decoding and the maintenance of multiple hypotheses. The model consists of three primary components:
- Code-Switch Boundary Prediction Model: Identifies grammatically permissible switch points using the equivalence constraint.
- Code-Switch Translation Model: Calculates the probability of a switch at a given point using a logit regression model trained on aligned bilingual data.
- Reconstruction Model: Ensures the resulting mixed-language sequence adheres to the syntactic structure of the matrix (primary) language.
This tripartite architecture allows the system to evaluate the likelihood of a language switch dynamically during the decoding process, avoiding the "early decision" trap of previous systems.
Experimental Evaluation
The model was evaluated on two Mandarin-English datasets representing different speech styles:
- Lecture Speech Corpus: Formal academic speech (approx. 16% English).
- Lunch Conversation Corpus: Spontaneous, informal dialogue (approx. 22% English).
The researchers compared their proposed model (Model_CS) against a standard interpolated baseline and a "switch anywhere" model that lacked syntactic constraints.
Key Results
The inclusion of inversion constraints led to measurable improvements in speech recognition accuracy:
- Lecture Speech: The model achieved a 35.2% error rate, a 0.91% absolute improvement over the interpolated baseline.
- Lunch Conversations: In the more complex spontaneous task, the model reached a 45.94% error rate, outperforming the baseline by 1.25%.
Notably, the model improved accuracy for both the Mandarin and English segments of the speech. This suggests that accurately predicting language boundaries helps the acoustic model remain synchronized with the correct phonetic set.
Conclusion
By integrating linguistic theories of equivalence constraints into a WFST-based language model, this research demonstrates that syntactic awareness is crucial for handling code-switched speech. The model effectively uses machine translation techniques to solve ASR boundary problems, providing a robust framework for mixed-language recognition that outperforms traditional interpolation methods.
Summary updated