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

Genta Indra Winata, David Anugraha, Patrick Amadeus Irawan, Anirban Das, Haneul Yoo +13 more
1/12/2026
cs.CLcs.AI

No confident code implementation found for this paper. 2 possible matches can be shown below.

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 2 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{winata2026large,
  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},
  year   = {2026},
  eprint = {2601.07153},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2601.07153v1}
}

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/2601.07153.svg)](https://codeofpaper.com/paper/2601.07153)

Discussion