Towards Fine-Grained Code-Switch Speech Translation with Semantic Space Alignment

Yan Gao, Yazheng Yang, Zhibin Lan, Yidong Chen, Min Zhang, Daimeng Wei, Hui Huang, Jinsong SuarXiv 2025 · DOI

Abstract

Code-switching (CS) speech translation remains a significant challenge due to abrupt semantic shifts and data scarcity. We present a novel framework that integrates a Mixture-of-Experts (MoE) speech projector into Large Language Models (LLMs). By specializing experts in language-specific subspaces and employing a four-stage transition training strategy, our model achieves state-of-the-art performance on English-Spanish and Chinese-English code-switching benchmarks.

Introduction

Code-switching—the practice of alternating between two or more languages in a single conversation—is a common linguistic phenomenon that poses a "final boss" challenge for speech translation (ST) systems. Existing models often struggle with the abrupt acoustic and semantic shifts that occur mid-sentence. Furthermore, the scarcity of high-quality code-switched datasets makes training robust end-to-end systems difficult. This work addresses these hurdles by bridging the semantic gap between languages and leveraging monolingual data through a structured curriculum.

Methodology

The proposed framework utilizes a Whisper-large-v3 speech encoder, a LLaMA2 base model, and a specialized MoE Speech Projector.

MoE Speech Projector

The core innovation is the MoE Speech Projector, which replaces standard linear layers with a set of language-specific experts. A dynamic Router assigns audio tokens to the most appropriate expert group based on language features.

Architecture of the proposed framework featuring the MoE Speech Projector.

To optimize this structure, the authors implement:

  • Language-specific loss: Explicitly penalizes incorrect expert assignment (e.g., routing Spanish audio to an English expert).
  • Intra-group load balancing: Ensures even utilization of experts within a specific language group.

Multi-stage Transition Training

To overcome data scarcity, a four-stage training curriculum is employed:

  1. Monolingual ASR Pre-training: Individual projectors are trained on simple transcription tasks.
  2. MoE Integration: Experts are combined, and the router is trained using language-specific losses.
  3. Monolingual ST Transition: The model shifts from transcription to translation tasks.
  4. Code-Switching ST Fine-tuning: Final adaptation to target code-switched data.

A Transition Loss with a sliding weight ($\lambda$) is used to smoothly mix data between stages, preventing catastrophic forgetting of previously learned features.

Key Insights and Results

The Semantic Space Gap

The motivation for the MoE approach is grounded in the observation that speech representations for different languages occupy distinct clusters in the semantic space.

t-SNE visualization showing distinct clusters for English, Spanish, and Chinese speech representations.

As shown in the t-SNE visualization, a single-path projector is insufficient to capture these disparate features. The MoE projector allows the model to handle these fine-grained nuances by specializing its processing paths.

Performance Benchmarks

The model ("Ours") was evaluated on the Fisher (En-Es) and NTUML2021 (Zh-En) datasets, consistently outperforming strong baselines:

  • Fisher (En-Es): Achieved 37.13 BLEU, significantly higher than the 33.78 achieved by LLaST.
  • NTUML2021 (Zh-En): Achieved 37.48 BLEU, compared to 32.53 for LLaST.

The router demonstrated exceptional precision, correctly assigning English tokens with 99.99% accuracy and Chinese tokens with over 95% accuracy.

Conclusion

This research demonstrates that aligning semantic spaces through a Mixture-of-Experts projector significantly improves code-switch speech translation. While challenges remain regarding language imbalance and scaling to more language pairs, the results provide a robust foundation for future multi-modal and multi-lingual LLM research.

Summary updated

BibTeX
@misc{gao2025towards,
  author = {Yan Gao and Yazheng Yang and Zhibin Lan and Yidong Chen and Min Zhang and Daimeng Wei and Hui Huang and Jinsong Su},
  title = {{Towards Fine-Grained Code-Switch Speech Translation with Semantic Space Alignment}},
  year = {2025},
  eprint = {2511.10670},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.10670},
}
Figure