CAMEL: Cross-Attention Enhanced Mixture-of-Experts and Language Bias for Code-Switching Speech Recognition

He Wang, Xucheng Wan, Naijun Zheng, Kai Liu, Huan Zhou, Guojian Li, Lei Xie · DOI

Introduction

Automatic Speech Recognition (ASR) has achieved remarkable success in monolingual settings. However, code-switching—where speakers alternate between languages like Mandarin and English within a single utterance—remains a significant challenge. This difficulty is primarily due to the scarcity of annotated code-switched data and the phonetic similarities between languages, which often lead to language confusion.

Traditional approaches often utilize a Mixture-of-Experts (MoE) framework to handle multiple languages. However, these models typically combine language-specific features using simple linear gating or weighted sums, which are often insufficient for capturing complex cross-lingual contextual relationships. Furthermore, while some systems attempt to predict the language being spoken, they often struggle to effectively integrate this information into the final text generation process.

Methodology: The CAMEL Architecture

The authors introduce CAMEL (Cross-Attention enhanced MoE and Language bias), a novel architecture built on the E-Branchformer backbone. CAMEL addresses the limitations of previous models through two key innovations: gated cross-attention within the MoE framework and an explicit language bias mechanism.

Overall architecture of the CAMEL model, featuring the Switched MoE Encoder and Language Diarization (LD) Decoder.

1. MoE with Gated Cross-Attention

Instead of employing computationally expensive separate encoders for each language, CAMEL integrates lightweight MoE-Adapters (small feed-forward networks) directly into the encoder layers. The critical innovation lies in the Gated Cross-Attention module. Rather than simply summing the outputs of the Mandarin and English adapters, this module allows each language representation to "attend" to the other. This cross-attention mechanism captures the intricate contextual dependencies that are vital at language boundaries, where speakers switch from one language to another.

2. Language Bias via LD Decoder

To provide the model with explicit linguistic guidance, CAMEL incorporates a secondary Language Diarization (LD) decoder. While the primary decoder generates text, the LD decoder predicts the language of each token. This information is then fed back into the main decoder's text embeddings using cross-attention. This process provides a "language bias," effectively informing the main decoder about the likely language of upcoming tokens, thereby reducing confusion and improving accuracy.

3. Language-wise CTC Loss

To ensure that the MoE-Adapters develop true language-specific expertise, the authors employ a specialized Connectionist Temporal Classification (CTC) loss. By using "pseudo-labels" where tokens from the non-target language are masked, the model forces each expert adapter to focus exclusively on its assigned language during training.

Experimental Setup and Datasets

CAMEL was rigorously evaluated on three prominent Mandarin-English code-switching benchmarks:

  • SEAME: A corpus of spontaneous Singaporean/Malaysian speech (approx. 115 hours).
  • ASRU200: A 200-hour subset from the ASRU-2019 challenge.
  • ASRU700+LibriSpeech460: A large-scale combined dataset totaling over 1,100 hours, used to evaluate performance at scale.

Key Results

The model's performance was measured using the Mixed Error Rate (MER), which aggregates the Word Error Rate (WER) for English and the Character Error Rate (CER) for Mandarin.

Performance comparison of CAMEL against baselines and other SOTA models on ASRU datasets.

CAMEL achieved state-of-the-art (SOTA) results across all tested datasets:

  • SEAME: The model achieved a relative MER reduction of approximately 5% compared to a strong E-Branchformer baseline on both Mandarin-dominant and English-heavy sets.
  • ASRU200: CAMEL reduced the MER from 11.35% to 10.55%, representing a 7% relative improvement over the baseline.
  • Large-Scale Performance: On the ASRU700+LibriSpeech460 dataset, CAMEL consistently outperformed recent competitive models such as SC-MoE and BA-MoE.

These results underscore the effectiveness of using cross-attention to both blend language features in the encoder and inject language bias into the decoder.

Conclusion

CAMEL significantly advances code-switching ASR by moving beyond shallow feature merging and providing explicit language guidance to the decoder. While highly effective for bilingual tasks, future work will explore scaling the architecture to support more than two languages and optimizing the system for real-time streaming applications. Despite the increased parameter count (reaching ~55M-60M), the performance gains make CAMEL a compelling solution for complex multi-lingual speech recognition environments.

Summary updated

BibTeX
@inproceedings{wang2025camel,
  author = {He Wang and Xucheng Wan and Naijun Zheng and Kai Liu and Huan Zhou and Guojian Li and Lei Xie},
  title = {{CAMEL: Cross-Attention Enhanced Mixture-of-Experts and Language Bias for Code-Switching Speech Recognition}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2025},
  doi = {10.1109/icassp49660.2025.10890869},
}
Figure