English

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

Computation and Language 2025-06-18 v1

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\unicodex2013\unicode{x2013}even under linguistic constraints\unicodex2013\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.

Keywords

Cite

@article{arxiv.2506.14012,
  title  = {Lost in the Mix: Evaluating LLM Understanding of Code-Switched Text},
  author = {Amr Mohamed and Yang Zhang and Michalis Vazirgiannis and Guokan Shang},
  journal= {arXiv preprint arXiv:2506.14012},
  year   = {2025}
}
R2 v1 2026-07-01T03:20:45.102Z