The Impact of Code-switched Synthetic Data Quality is Task Dependent: Insights from MT and ASR

Injy Hamed, Thang X. Vu, Nizar Habash2025

Abstract

Code-switching (CSW)—the practice of alternating between languages within a single conversation—remains a significant challenge for AI due to the scarcity of naturally occurring, transcribed data. To address this "data desert," researchers frequently rely on synthetic data augmentation. However, the degree to which synthetic data must mimic human-like "naturalness" to be effective remains a point of contention. This paper provides a comprehensive comparison across Machine Translation (MT), Automatic Speech Recognition (ASR), and Speech Translation (ST), revealing a stark "Quality-Performance Paradox": while high-quality, natural synthetic data is essential for MT, ASR models can derive significant benefits even from linguistically "clunky" or unnatural data augmentations.

Introduction

As global communication increasingly involves multilingual speakers, the ability of AI models to handle code-switching is paramount. Despite its prevalence, CSW data is rarely captured in the large-scale datasets used to train state-of-the-art models. Synthetic data generation has emerged as a primary solution, yet the field is divided on methodology. Some researchers advocate for complex generation based on linguistic theories, while others utilize simple word-swapping techniques. This study investigates whether the perceived naturalness of these synthetic sentences actually correlates with improved downstream performance across different NLP tasks.

Methodology and Data Augmentation

The researchers evaluated five distinct categories of data augmentation for Arabic-English (Egyptian) code-switched data:

  1. Lexical Replacements:
    • $LEX_{Dict}$: Random word replacement using a bilingual dictionary.
  2. $LEX_{Rand}$: Replacement based on random alignment points in parallel text.
  3. $LEX_{Pred}$: A more sophisticated approach using an mBERT-based model to predict plausible switch points before injecting foreign words.
  4. Linguistic Theories: Utilizing the GCM tool to generate sentences that adhere to the Equivalence Constraint (EC) and Matrix Language Frame (MLF) theories.
  5. Back-translation (BT): Training a model to "translate" monolingual English sentences into code-switched Arabic-English.

Experimental Setup

The study utilized the ArzEn-ST corpus, a three-way speech translation dataset for Egyptian Arabic-English. For augmentation sources, 309k Arabic-English parallel sentences were pulled from sources including Callhome, LDC, and MADAR. ASR baselines were trained on a mixture of MSA (MGB-2), Egyptian (MGB-3), and English (Librispeech) to simulate a realistic low-resource environment for code-switching.

The Quality-Performance Paradox

The most striking finding of the study is the divergence in how MT and ASR tasks respond to data quality. The researchers conducted both human evaluations (to score naturalness) and extrinsic evaluations (measuring Word Error Rate for ASR and chrF++ for MT/ST).

  • Machine Translation (MT): Showed a near-perfect positive correlation (0.92) between human-judged naturalness and model performance. In this task, if the synthetic data is "broken" or linguistically awkward, the model learns incorrect translation patterns, leading to degraded performance. For instance, simple dictionary replacement ($LEX_{Dict}$) actually performed worse than the baseline.
  • Automatic Speech Recognition (ASR): Showed a negligible or even slightly negative correlation (-0.26) between naturalness and performance. Surprisingly, "unnatural" data proved highly effective. Random lexical replacement ($LEX_{Rand}$) outperformed complex linguistic theories in zero-shot settings, achieving a 2.8% absolute reduction in WER.

Why the Split?

The authors suggest that the sensitivity of MT stems from its reliance on complex semantics and syntax. Conversely, ASR primarily utilizes synthetic data for Language Model (LM) rescoring. In the context of ASR, the primary hurdle is "monolingual bias." Simply exposing the model to a diverse range of English words within Arabic contexts helps it overcome this bias, even if the specific sentence structure is not something a human would naturally say.

Key Results and Recommendations

Across all tasks, Back-translation (BT) and Predictive Lexical Replacement ($LEX_{Pred}$) emerged as the most robust winners. These methods successfully balance linguistic naturalness with high structural diversity.

Furthermore, the study highlights a critical flaw in automated metrics: Perplexity showed a low correlation (-0.62) with human-judged naturalness. This suggests that researchers cannot rely solely on automated scoring to determine the quality of code-switched text and must incorporate human-in-the-loop evaluations.

Conclusion and Future Work

This research demonstrates that the "best" data augmentation strategy depends entirely on the end-use case. While MT developers must prioritize high-quality, linguistically accurate synthetic data, ASR developers have more flexibility to use simpler, high-diversity augmentation methods.

While this study focused on Arabic-English, the task-dependent nature of data quality likely extends to other language pairs. Future research should explore the role of Large Language Models (LLMs) in generating code-switched data and investigate personalized CSW generation to account for individual speaker variations in switching patterns.

Summary updated

BibTeX
@misc{hamed2025impact,
  author = {Injy Hamed and Thang X. Vu and Nizar Habash},
  title = {{The Impact of Code-switched Synthetic Data Quality is Task Dependent: Insights from MT and ASR}},
  year = {2025},
  doi = {10.18653/v1/2025.calcs-1.2},
}
Figure