Abstract
Code-switching (CS) is a prevalent linguistic phenomenon where speakers alternate between languages in a single conversation. Despite the proficiency of Large Language Models (LLMs) in monolingual tasks, their ability to handle the discourse-level complexities of code-switched dialogues remains under-explored. We introduce CS-Sum, the first human-annotated benchmark for summarizing code-switched dialogues into English. Our evaluation of state-of-the-art LLMs reveals a "performance illusion": while models achieve high automated scores, they frequently exhibit critical failures in discourse comprehension, such as ignoring non-English segments and misattributing speakers. We further demonstrate that synthetic data augmentation, while helpful for scale, fails to capture the nuanced distribution of human code-switching, often degrading model performance upon fine-tuning.
Introduction
In a globalized world, millions of bilingual individuals naturally mix languages—a practice known as code-switching. While LLMs have shown remarkable capabilities in translation and monolingual summarization, their performance on code-switched (CS) discourse is often a "black box." Existing benchmarks typically focus on low-level tasks like language identification or part-of-speech tagging. However, summarization serves as a rigorous "stress test" for discourse-level comprehension, requiring models to synthesize intent and speaker relationships across linguistic boundaries.
The CS-Sum benchmark addresses the critical lack of high-quality, human-annotated data for this task, focusing on three language pairs: Mandarin-English (EN-ZH), Tamil-English (EN-TA), and Malay-English (EN-MS).
Methodology and Datasets
The researchers developed the CS-Sum benchmark through a multi-stage process:
- Human-in-the-loop Annotation: Native speakers translated established English dialogue datasets (DialogSum and SAMSum) into natural code-switched versions, creating a test set of 900–1,300 pairs.
- Synthetic Data Generation: To support fine-tuning, the authors generated CS-Sum-Syn, a massive dataset of 19,014 synthetic CS dialogues using Gemini-2-flash.
- Evaluation Framework: Ten LLMs, ranging from GPT-4o to regional models like SEA-LION, were evaluated across three settings: Few-shot, Translate-Summarize, and Fine-tuned (via LoRA/QLoRA).
- Granular Error Analysis: Moving beyond standard metrics like ROUGE, the study employed GPT-4o to categorize failures into Code-Switching Loss (CSL), Meaning Shift (MST), and Speaker Misattribution (SMA).
The Performance Illusion
A key finding of the study is the "Metric Gap." Models often achieve high BERTScore or ROUGE values by matching the English portions of a dialogue while completely hallucinating or omitting the information contained in the non-English segments.
As shown in the figure above, LLMs frequently struggle with speaker attribution and capturing the full nuance of the conversation when code-switching occurs. The "Code-Switching Loss" (CSL) was the most frequent error, with models ignoring critical non-English information in over 50% of few-shot cases.
The Challenge of Synthetic Data
While synthetic data is often used to bridge the gap in low-resource settings, this study found that fine-tuning on synthetic CS data often increased error rates. This is attributed to the distributional mismatch between synthetic and human code-switching.
Human code-switching is characterized by specific "bursty" patterns and memory effects that synthetic generators struggle to replicate. For instance, in the EN-ZH pair, fine-tuning the SEA-LION model on synthetic data caused the CSL rate to spike from 53.73% to 83.94%, suggesting the model learned the structure of a summary without improving its underlying comprehension of the code-switching dynamics.
Conclusion
The CS-Sum benchmark highlights significant limitations in current LLMs' ability to process multilingual discourse. GPT-4o remains the top performer, yet it is not immune to critical errors. The results suggest that simply "bolting on" code-switching capabilities via fine-tuning on synthetic data is insufficient. To achieve true discourse-level proficiency, code-switching data likely needs to be integrated during the initial pre-training phases of model development. Future research will expand this benchmark to other long-context tasks such as question answering and machine translation.
Summary updated