Introduction
Code-switching (CS)—the linguistic phenomenon where a speaker alternates between two or more languages within a single conversation or sentence—presents a significant challenge for modern Automatic Speech Recognition (ASR) systems. Most contemporary models are optimized for monolingual environments; when faced with intra-sentential switching, they often struggle to predict transition points and accurately model the distinct phonetic structures of different languages simultaneously.
In the ISCSLP 2022 Magichub Code-Switching ASR Challenge, the NPU-ASLP team secured 2nd place by developing a robust system designed to overcome the primary hurdle of CS research: data sparsity. Their approach combined specialized neural architectures, innovative Text-to-Speech (TTS) data augmentation, and strategic model fusion to significantly reduce the Mix Error Rate (MER).
Addressing the Data Sparsity Problem
The fundamental difficulty in code-switching ASR is the lack of large-scale, high-quality labeled datasets compared to monolingual corpora. Furthermore, Mandarin and English possess vastly different articulatory styles. To address this, the NPU-ASLP team focused on three key areas: acoustic modeling, data strategy, and language model integration.
Acoustic Model Architectures
The team evaluated three variants of Conformer-based encoders to determine the optimal balance between language-specific modeling and parameter sharing:
- Bi-encoder: Utilizes separate encoders for Mandarin and English. While this provides clear separation, it fails to leverage the common acoustic features shared between languages.
- Language-Aware Encoder (LAE): Features shared preliminary blocks for common features, followed by language-specific "expert" blocks.
- Mixture of Experts (MoE): This architecture shares most parameters across languages but employs separate feed-forward layers as "experts."
The MoE approach proved the most effective. By maximizing parameter sharing while allowing for language-specific nuances, the MoE model outperformed both the Bi-encoder and the standard Conformer, suggesting that Mandarin and English share enough feature-space commonality that total separation is counterproductive.
Advanced Data Augmentation and Consistency Loss
To supplement the limited training data (TALCS and MagicData-RAMC), the team generated 100 hours of synthetic code-switching audio using a modified DelightfulTTS system. However, synthetic speech often introduces a distribution mismatch—the "robotic" nature of TTS can mislead a model trained on natural speech.
To bridge this gap, the authors implemented a consistency loss using Kullback–Leibler (KL) divergence. This loss function forced the model to produce similar internal representations (posterior distributions) for paired real and synthetic speech samples. This technique mitigated the synthetic gap and allowed the model to benefit from the increased vocabulary and switching patterns in the TTS data without being penalized by its acoustic artificiality.
Language Modeling and Weighted Fusion
The system utilized Internal Language Models (ILM) to subtract the acoustic model's inherent training bias and Long Context Language Models (LCLM) to capture broader conversational context by concatenating sentences from the same dialogue.
In the final stage, the team employed Weighted ROVER Fusion to combine outputs from multiple models. A key observation was the system's tendency to replace English words with similar-sounding Mandarin characters. To counteract this "sounds-like" bias, the team applied a heuristic weighting system, giving English words up to four times higher weight during the voting process. This targeted adjustment significantly improved the accuracy of English segments within the Mandarin-dominant context.
Key Results and Insights
The NPU-ASLP system achieved a final Mix Error Rate (MER) of 16.87% on the test set, a substantial improvement over the official challenge baseline of 26.50%.
| Model Configuration | MER (%) |
|---|---|
| Challenge Baseline | 26.50 |
| Standard Conformer | 22.23 |
| Bi-encoder | 25.01 |
| MoE (Single Model) | 20.35 |
| Final Fused System | 16.87 |
Experimental data confirmed that the MoE architecture was superior to the Bi-encoder, which actually performed worse than the standard Conformer due to its inability to share features effectively. Furthermore, the addition of synthetic TTS data paired with consistency loss provided a 2.82% absolute reduction in MER, proving the value of synthetic data when properly regularized.
Conclusion
The success of the NPU-ASLP system highlights the importance of hybrid approaches in code-switching ASR. By combining the parameter efficiency of Mixture of Experts with a consistency-regulated data augmentation strategy, the team successfully navigated the challenges of data poverty and cross-language phonetic interference. Future work will likely focus on more sophisticated switch-point prediction and leveraging unsupervised monolingual data to further refine the system's performance.
Summary updated