Introduction
In multilingual societies, speakers frequently "code-switch," interweaving multiple languages in a single conversation. While Automatic Speech Recognition (ASR) and Machine Translation (MT) have made strides in handling this, Spoken Translation (ST)—the direct conversion of speech in one language (or a mix) to text in another—remains a major challenge.
Traditional "cascaded" systems (ASR followed by MT) suffer from error propagation: if the ASR misinterprets a code-switched word, the MT module has no way to recover the original meaning. Conversely, end-to-end models often lack the specific data needed to learn the nuances of code-switching. CoSTA addresses this by creating a model that "scaffolds" on pretrained ASR and MT backbones while introducing a novel way to fuse audio and text modalities.
Methodology: Aligned Interleaving
The core innovation of CoSTA (Code-Switched Speech Translation using Aligned Speech-Text Interleaving) is its Aligned Interleaving scheme, which fuses audio and text modalities to "anchor" the translation process.
Model Architecture
CoSTA leverages pretrained backbones: IndicWav2Vec as the speech encoder and either IndicTrans2 or NLLB as the text encoder-decoder module. Instead of simple concatenation, the model uses forced alignment to map specific speech frames to their corresponding text tokens. Speech frames aligned to a specific token are mean-pooled to match the token's granularity. These pooled speech embeddings are then interleaved with the text embeddings, creating a unified sequence $(s_1, x_1), (s_2, x_2), \dots, (s_M, x_M)$.
Multi-task Training
The model is trained with a joint loss function to maintain specialized capabilities:
- $L_{ST}$: The primary translation loss.
- $L_{ASR}$: A CTC-based loss to keep the speech encoder accurate.
- $L_{MT}$: A standard cross-entropy loss to maintain the MT module's translation capabilities.
At inference, the model generates an ASR transcript, aligns it with the audio, and passes the interleaved sequence through the MT decoder to produce the final English translation.
Experimental Setup
Due to the scarcity of human-labeled code-switched ST data, the authors created a synthetic training set of 30 hours per language pair. This was achieved by taking ASR transcripts from the IndicVoices dataset and generating English translations using IndicTrans2. Evaluation was conducted on several high-quality benchmarks, including the IndicVoices CS sets (Bengali, Hindi, Marathi, and Telugu) and a challenging Podcast Evaluation Set featuring natural, spontaneous code-switching and disfluencies.
Results and Discussion
CoSTA demonstrates significant improvements over state-of-the-art (SOTA) models despite being trained on orders of magnitude less data.
Performance and Efficiency
As shown in the results, CoSTA achieved a BLEU score of 33.12 on Hindi-English, outperforming the best end-to-end baseline (Seamless with Interleaving) by 2.4 points and Whisper ST by nearly 9 points. Remarkably, CoSTA consistently beats models like SeamlessM4T and Whisper, which are trained on tens of thousands of hours of data, using only 30 hours of synthetic training data.
Robustness and English Retention
Analysis using the Code-Mixing Index (CMI) proved that CoSTA's performance remains stable even as the density of language mixing increases. A key advantage is its ability to retain English words spoken in the source audio. While cascaded models often transcribe English words into native scripts (e.g., writing "school" in Hindi script), which MT then struggles to translate back, CoSTA's multimodal input allows it to "see" the English acoustic signature directly.
Conclusion
CoSTA introduces a powerful yet data-efficient approach to code-switched speech translation. By interleaving temporally aligned speech and text representations, it mitigates error propagation and leverages the strengths of pretrained ASR and MT models. Future work will focus on reducing inference latency and handling mixed scripts more explicitly for real-time applications.
Summary updated