Lost in the Mix: Evaluating LLM Understanding of Code-Switched Text

Amr Mohamed, Yang Zhang, Michalis Vazirgiannis, Guokan Shang
6/16/2025
cs.CL

No official code found. Best implementation: amr-mohamedd/Lost-in-the-Mix (3 stars, last commit 2025-06-18).

Abstract

Code-switching (CSW) is the act of alternating between two or more languages within a single discourse. This phenomenon is widespread in multilingual communities, and increasingly prevalent in online content, where users naturally mix languages in everyday communication. As a result, Large Language Models (LLMs), now central to content processing and generation, are frequently exposed to code-switched inputs. Given their widespread use, it is crucial to understand how LLMs process and reason about such mixed-language text. This paper presents a systematic evaluation of LLM comprehension under code-switching by generating CSW variants of established reasoning and comprehension benchmarks. While degradation is evident when foreign tokens disrupt English text$\unicode{x2013}$even under linguistic constraints$\unicode{x2013}$embedding English into other languages often improves comprehension. Though prompting yields mixed results, fine-tuning offers a more stable path to degradation mitigation.

View on arXivView PDF

Code Implementations(1)

Code implementation for the "Lost in the Mix: Evaluating LLM Understanding of Code-Switched Text" paper.

30PythonJun 16, 20251 years ago
code-swillmsnlptransformers

Similar Papers

Cite this paper

@article{mohamed2025lost,
  title  = {Lost in the Mix: Evaluating LLM Understanding of Code-Switched Text},
  author = {Amr Mohamed and Yang Zhang and Michalis Vazirgiannis and Guokan Shang},
  year   = {2025},
  eprint = {2506.14012},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.14012v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.14012.svg)](https://codeofpaper.com/paper/2506.14012)

Discussion