Evaluating LLMs' Language Confusion in Code-switching Context

Juhyun Oh, Haneul Yoo, Alice OhLLM Evaluation @ NeurIPS 2025

Abstract

This paper tackles the language confusion of large language models (LLMs) within code-switching contexts, a common scenario for bilingual users. We evaluate leading LLMs on English-Korean prompts designed to probe their language selection capabilities, analyzing responses to both simple matrix-language cues and complex tasks where the user prompt contains an instruction and content in different languages. Our findings reveal that even top-performing models are highly inconsistent, frequently failing to generate responses in the expected language. This work confirms that code-switching significantly exacerbates language confusion, highlighting a critical vulnerability in current models' ability to process natural, mixed-language inputs.
BibTeX
@inproceedings{oh2025evaluating,
  author = {Juhyun Oh and Haneul Yoo and Alice Oh},
  title = {{Evaluating LLMs' Language Confusion in Code-switching Context}},
  booktitle = {LLM Evaluation @ NeurIPS},
  year = {2025},
  url = {https://openreview.net/forum?id=AeF3mMb8cu},
}

Loading related content...

Figure