Reproduce “Multilingual Large Language Models Are Not (Yet) Code-Switchers” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Ruochen Zhang, Samuel Cahyawijaya, Jan Christian Blaise Cruz, Genta Indra Winata, Alham Fikri Aji

Multilingual Large Language Models (LLMs) currently demonstrate limited proficiency in handling code-switched (CSW) texts across various NLP tasks. These models consistently underperform smaller, specialized fine-tuned models and struggle with both understanding and generating CSW content, indicating that broad multilingual pretraining does not inherently confer code-switching capability.

Key insights

  • The "multilingualism" of current LLMs does not equate to proficiency in code-switching; generic pretraining on predominantly monolingual corpora leads to significant performance gaps compared to fine-tuned models.
  • Scaling model size (from 560M to 13B parameters) yields less pronounced improvements for code-switched sources compared to monolingual sources, suggesting a lack of sufficient CSW data representation in pretraining.
  • Few-shot prompting can be detrimental or have negligible impact for some CSW tasks (sentiment analysis, summarization) due to LLMs potentially perceiving CSW as "low-quality" input, though it can benefit structured tasks like language identification.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.