English

Can Large Language Models Understand, Reason About, and Generate Code-Switched Text?

Computation and Language 2026-01-13 v1 Artificial Intelligence

Abstract

Code-switching is a pervasive phenomenon in multilingual communication, yet the robustness of large language models (LLMs) in mixed-language settings remains insufficiently understood. In this work, we present a comprehensive evaluation of LLM capabilities in understanding, reasoning over, and generating code-switched text. We introduce CodeMixQA a novel benchmark with high-quality human annotations, comprising 16 diverse parallel code-switched language-pair variants that span multiple geographic regions and code-switching patterns, and include both original scripts and their transliterated forms. Using this benchmark, we analyze the reasoning behavior of LLMs on code-switched question-answering tasks, shedding light on how models process and reason over mixed-language inputs. We further conduct a systematic evaluation of LLM-generated synthetic code-switched text, focusing on both naturalness and semantic fidelity, and uncover key limitations in current generation capabilities. Our findings reveal persistent challenges in both reasoning and generation under code-switching conditions and provide actionable insights for building more robust multilingual LLMs. We release the dataset and code as open source.

Keywords

Cite

@article{arxiv.2601.07153,
  title  = {Can Large Language Models Understand, Reason About, and Generate Code-Switched Text?},
  author = {Genta Indra Winata and David Anugraha and Patrick Amadeus Irawan and Anirban Das and Haneul Yoo and Paresh Dashore and Shreyas Kulkarni and Ruochen Zhang and Haruki Sakajo and Frederikus Hudi and Anaelia Ovalle and Syrielle Montariol and Felix Gaschi and Michael Anugraha and Rutuj Ravindra Puranik and Zawad Hayat Ahmed and Adril Putra Merin and Emmanuele Chersoni},
  journal= {arXiv preprint arXiv:2601.07153},
  year   = {2026}
}

Comments

Preprint

R2 v1 2026-07-01T08:59:58.275Z