TL;DR
CAMEL (Cross-Attention enhanced MoE and Language bias) is a new architecture that significantly improves code-switching speech recognition—where speakers mix multiple languages (like Mandarin and English) in a single sentence. By replacing simple feature-merging with gated cross-attention and introducing a Language Diarization (LD) decoder to provide "language bias," the model achieves state-of-the-art performance across major benchmarks.
What Problem Does This Paper Address?
Automatic Speech Recognition (ASR) has mastered many single-language tasks, but "code-switching" remains a major hurdle. Two main issues plague this field:
- Data Scarcity: There isn't enough manually annotated audio of people naturally mixing languages.
- Language Confusion: Different languages often share similar sounds (phonemes), leading the model to confuse one for the other.
Current solutions often use a Mixture-of-Experts (MoE) approach, where different parts of the model specialize in different languages. However, these models usually combine language-specific features using simple math (like weighted sums). The authors argue this is too "shallow" to capture the complex contextual relationships between languages. Furthermore, while some models try to predict which language is being spoken, they often fail to integrate that information effectively into the final text generation process.
Methods
The authors introduce CAMEL, built on the E-Branchformer backbone. Its innovation lies in two specific areas:
1. MoE with Gated Cross-Attention
Instead of having entirely separate encoders for each language (which is computationally expensive), CAMEL uses lightweight MoE-Adapters (small feed-forward networks) embedded within the encoder layers.
- The Twist: After the Mandarin and English adapters process the signal, they don't just sum their outputs. Instead, they use a Gated Cross-Attention module. This allows the English representation to "attend" to the Mandarin representation (and vice versa), capturing cross-lingual context that simple linear gating misses.
2. Language Bias via LD Decoder
The system includes a secondary Language Diarization (LD) decoder.
- How it works: While the main decoder predicts words, the LD decoder predicts the language of each token.
- The "Bias": The output of this LD decoder is fed back into the main decoder's text embeddings using cross-attention. This provides a "language bias," essentially whispering to the main decoder, "Hey, the next few tokens are likely to be English," which helps the model stay on track and avoid confusion.
3. Language-wise CTC Loss
To ensure the MoE-Adapters actually learn language-specific features, the authors use a specialized Connectionist Temporal Classification (CTC) loss. They create "pseudo-labels" where one language's tokens are masked, forcing the specific "expert" to focus only on its assigned language.
Datasets
The model was evaluated on three major Mandarin-English code-switching benchmarks:
- SEAME: A famous corpus of spontaneous Singaporean/Malaysian speech (approx. 115 hours).
- ASRU200: A 200-hour subset of the ASRU-2019 challenge.
- ASRU700+LibriSpeech460: A massive combined dataset (over 1,100 hours) used to test the model's performance at scale.
Key Insights and Ideas
- Context is King: Simple linear gates for MoE are "blind" to the surrounding frames. Cross-attention allows the model to look at the entire audio sequence to decide how to blend language features, which is crucial at the "boundary" where a speaker switches languages.
- Explicit Bias Helps: Directly concatenating language IDs to text embeddings (a common previous approach) is often ignored by the model because the dimensions don't match well. Using cross-attention to inject language information into the embeddings is much more effective.
- Lightweight Specialization: You don't need two full encoders to handle two languages. Small adapters (MoE-Adapters) guided by language-specific CTC loss are enough to capture the unique acoustic properties of Mandarin vs. English.
Key Results
The authors measured success using the Mixed Error Rate (MER), which combines Word Error Rate (English) and Character Error Rate (Mandarin).
- SEAME: CAMEL achieved a relative MER reduction of 5% on the Mandarin-dominant set and 4.6% on the English-heavy set compared to a strong E-Branchformer baseline.
- ASRU200: A 7% relative reduction in MER (11.35% → 10.55%) compared to the baseline.
- SOTA Comparison: CAMEL outperformed several recent state-of-the-art models, including SC-MoE and BA-MoE, across all tested datasets.
Limitations and Future Work
While CAMEL excels at bilingual (Mandarin-English) tasks, the authors acknowledge a few areas for growth:
- Scaling to Multi-lingual: The current architecture is designed for two languages. Extending this to three or more languages (e.g., Mandarin-English-Malay) would require more complex gating and adapter management.
- Streaming ASR: The use of global cross-attention in the encoder and the LD-bias mechanism might introduce latency, making it a challenge for real-time, "streaming" applications.
- Computational Overhead: Adding a second decoder (LD) and cross-attention modules increases the parameter count (from ~40M in the baseline to ~55M-60M in CAMEL), which might be a concern for on-device deployment.
Summary updated