Code-Switching without Switching: Language Agnostic End-to-End Speech Translation

Christian Huber, Enes Yavuz Ugan, Alexander WaibelarXiv 2022

TL;DR

The authors propose LAST (Language Agnostic end-to-end Speech Translation), a single model that translates speech into a target language regardless of whether the input is monolingual or contains language switches. By eliminating the traditional language identification (LID) pipeline, LAST reduces latency and improves translation performance on code-switched speech by up to 10.6 BLEU points.

What Problem Does This Paper Address?

In our globalized world, "code-switching" (CS)—the practice of alternating between two or more languages in a single conversation—is increasingly common. Traditional speech systems handle this using a pipeline: first, a Language Identification (LID) model detects the language, then the audio is routed to either an Automatic Speech Recognition (ASR) model (if the language matches the target) or a Speech Translation (ST) model (if it doesn't).

This approach has three major flaws:

  1. Latency: The system must wait for the LID to make a decision before processing can continue.
  2. Error Propagation: If the LID makes a mistake, the entire downstream process fails.
  3. Context Loss: By splitting audio into monolingual segments, models lose the broader context of the utterance, which often helps in disambiguation and natural translation.

Methods

The researchers treat speech recognition and translation as a single, unified end-to-end problem. Their model, LAST, is a Transformer-based encoder-decoder architecture.

Key technical details include:

  • Initialization: To leverage massive amounts of pre-existing data, they initialized the encoder with wav2vec 2.0 (XLSR-53) and the decoder with the decoder portion of mBART 50.
  • Unified Decoding: The model is trained to take both English and German audio as input and consistently produce German text as output. This removes the need for a "switch" in the architecture.
  • Data Augmentation (DA): Since code-switching datasets are rare, the authors created synthetic CS data by concatenating audio and labels from different source languages into single utterances. They used curriculum learning to fine-tune the model on these mixed-language samples.
The LAST approach (right) simplifies the information flow compared to traditional LID pipelines (left).

Datasets

The authors used a mix of standard German ASR and English-to-German ST datasets for training, totaling nearly 4,000 hours of speech data.

  • ASR Training: Europarl, Librivox, Common Voice, and an internal Lecture Translator (LT) dataset.
  • ST Training: MuST-C (v1 & v2), Europarl-ST, ST TED, CoVoST v2, and TED LIUM.
  • New Benchmark (tst-inter): To evaluate code-switching, they created a new test set derived from tst-COMMON. They manually divided utterances at natural break points (like commas or "and") and recombined them to create 284 utterances containing one or more language switches.

Key Insights and Ideas

  • Context is King: One of the most significant findings is that LAST outperforms the baseline largely because it has access to the entire audio sequence. Traditional pipelines chop the audio into fragments for LID, depriving the ASR/ST models of surrounding linguistic cues.
  • Simplicity Scales: By removing the discrete decision-making step (LID), the system becomes easier to deploy and maintain while inherently being more robust to "fuzzy" language boundaries.
  • Synthetic CS Data is Effective: Simply "gluing" monolingual utterances together during training was enough to significantly boost performance on real-world inter-sentential code-switching, even without specialized CS corpora.

Key Results

The authors compared LAST against a strong baseline consisting of human-annotated LID followed by state-of-the-art ASR/ST models.

  • Monolingual Performance: LAST achieved results comparable to specialized monolingual models, proving that "going agnostic" doesn't sacrifice accuracy for standard tasks.
  • Code-Switching Breakthrough: On the tst-inter dataset, the basic LAST model outperformed the baseline by 7.3 BLEU.
  • Augmentation Boost: Adding the data augmentation strategy further increased performance by 3.3 BLEU, leading to a total improvement of 10.6 BLEU over the traditional pipeline.

Limitations and Future Work

The primary limitation noted is intra-sentential code-switching (switching languages within a single sentence, e.g., using an English noun in a German sentence). Qualitatively, LAST did not show improvement over standard ASR in these cases. The authors attribute this to the fact that neither the training data nor the augmentation strategy specifically targeted word-level switching.

Future research is needed to develop data augmentation techniques or model architectures that can handle these more granular, "blended" language patterns.

Summary updated

BibTeX
@misc{huber2022code,
  author = {Christian Huber and Enes Yavuz Ugan and Alexander Waibel},
  title = {{Code-Switching without Switching: Language Agnostic End-to-End Speech Translation}},
  year = {2022},
  eprint = {2210.01512},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2210.01512},
}
Figure