TL;DR
Training speech recognition systems to handle code-switching (alternating between languages) is notoriously difficult due to a severe lack of real-world data. This paper introduces a novel preference-learning framework that uses a new acoustic metric ($CMI_{speech}$) to guide Text-to-Speech (TTS) models into generating highly realistic code-switched synthetic speech. Using this tailored synthetic data for data augmentation significantly drops the Mixed Error Rate (MER) for state-of-the-art ASR models like Whisper.
What Problem Does This Paper Address?
Code-switching (CS)—such as seamlessly blending Mandarin and English in a single sentence—is a daily reality for millions of multilingual speakers. However, Automatic Speech Recognition (ASR) systems routinely struggle with it. The root cause is data scarcity: large-scale, high-quality conversational code-switching datasets are incredibly rare and expensive to collect.
To fill this gap, researchers often turn to Text-to-Speech (TTS) systems to generate synthetic training data. Unfortunately, standard TTS models are optimized for overall audio quality or reconstruction fidelity. They don't explicitly care about language boundaries, meaning they frequently blur the transitions between languages, mispronounce foreign words, or introduce unnatural acoustic shifts. As a result, the synthetic data they produce fails to effectively prepare downstream ASR models for real-world conversational code-switching.
Methods
The authors introduce a multi-critic Direct Preference Optimization (DPO) framework designed to align TTS models specifically for code-switching fidelity.
The core innovation is the creation of $CMI_{speech}$, an acoustic adaptation of the text-based Code-Mixing Index (CMI). Because speech lacks discrete language tokens, the authors extract pseudo frame-level language labels directly from the average cross-attention weights of the TTS decoder's final layer.
The training pipeline operates in three distinct stages:
- Candidate Generation: A baseline TTS model (CosyVoice 2) generates multiple synthetic speech candidates for a given transcript using stochastic sampling to ensure acoustic diversity.
- Critic Scoring: Each candidate is evaluated by three automated critics:
- Intelligibility: Measured via the Mixed Error Rate (MER) from a pre-trained ASR model.
- Perceptual Quality: Estimated using UTMOS, a non-intrusive speech quality predictor.
- Code-Switching Fidelity: Measured via $\Delta CMI$, which calculates the absolute discrepancy between the synthetic speech's $CMI_{speech}$ and the ground-truth audio's $CMI_{speech}$.
- Preference Selection & DPO: The highest and lowest scoring candidates form preferred/dis-preferred pairs to fine-tune the TTS model, explicitly penalizing structural language deviations.
Datasets
The framework was trained and evaluated using the SEAME corpus, a benchmark dataset containing roughly 192 hours of spontaneous conversational Mandarin-English speech from Singaporean and Malaysian speakers. The authors evaluated downstream ASR performance on two distinct subsets:
- DevMAN: A Mandarin-dominant evaluation set.
- DevSGE: A Singapore English-dominant evaluation set.
Key Insights and Ideas
- Bridging the Symbolic-Acoustic Gap: CMI has long been a reliable metric in NLP for measuring language mixing balance in text. By utilizing decoder cross-attention to project language identities onto continuous acoustic frames, this paper successfully ports a symbolic metric into the continuous audio domain.
- Traditional Rewards Fall Short: The authors show that optimizing TTS models using only perceptual quality (MOS) or basic intelligibility (MER) critics leaves cross-language substitutions unresolved. Explicitly constraining the language-mixing structure via $\Delta CMI$ is essential for generating high-utility synthetic data.
- Architecture-Agnostic Benefits: The DPO-optimized synthetic data improved the performance of both a large Transformer-based model (Whisper) and a non-autoregressive model (CTC-based Conformer), proving that the framework enhances the fundamental quality of the data rather than just overfitting to a specific ASR architecture.
Key Results
TTS Alignment Quality
Integrating the $\Delta CMI$ critic yielded massive improvements in synthesis fidelity. As shown in the authors' ablation study, adding $\Delta CMI$ reduced the code-switch difference ($\Delta CMI$) from 28.1 down to 16.1, while simultaneously achieving the lowest internal MER (10.3%) without sacrificing perceptual naturalness (UTMOS remained high at 3.8).
Downstream ASR Performance
When 100 hours of real SEAME data were augmented with 100 hours of DPO-optimized synthetic data, the downstream ASR models saw substantial error reductions:
- Whisper Large v3: The Mixed Error Rate (MER) dropped from 12.1% (real data only) to 8.9% on DevMAN, and from 17.8% to 14.2% on DevSGE. This significantly outperformed standard, non-DPO TTS augmentation.
- CTC-Based Conformer: MER dropped from 16.8% / 23.6% down to 15.4% / 21.9% on DevMAN and DevSGE, respectively.
Qualitatively, the $\Delta CMI$-guided model successfully preserved complex language boundaries (e.g., correctly synthesizing "spend too long spend too long" and "olympiad"), whereas standard fine-tuned TTS models frequently hallucinated phonetic approximations in the dominant language (e.g., substituting the Mandarin word for dragon "龙" [lóng] for "long").
Limitations and Future Work
While highly effective, the framework relies heavily on the accuracy of the pseudo-frame language labels derived from the decoder's cross-attention mechanisms. If the initial base TTS model has poor alignment capabilities, errors could propagate through the critic scoring phase.
Additionally, this study focused exclusively on bilingual Mandarin-English code-switching. The authors note that future work should explore how well this framework generalizes to other language pairs (e.g., Spanish-English) and more complex trilingual or multilingual environments.
Summary updated