Abstract
Recent large language models (LLMs) demonstrate multilingual abilities, yet they are English-centric due to the dominance of English in training corpora. The limited resource for low-resource languages remains a crucial challenge. Code-switching (CS), a phenomenon where multilingual speakers alternate between languages in a discourse, can convey subtle cultural and linguistic nuances that can be otherwise lost in translation and elicits language-specific knowledge in human communications. In light of this, we investigate whether code-switching can activate, or identify and leverage knowledge for reasoning when LLMs solve low-resource language tasks. To facilitate the research, we first present ENKOQA, a synthetic English-Korean CS question-answering dataset. We provide comprehensive analysis on a variety of multilingual LLMs by subdividing activation process into knowledge identification and knowledge leveraging. Our results demonstrate that compared to English text, CS can faithfully activate knowledge inside LLMs especially on language-specific domains, suggesting the potential of code-switching on low-resource language tasks.
Introduction
Despite their impressive multilingual capabilities, Large Language Models (LLMs) often exhibit a "skewed" performance. Because English dominates their training corpora, models frequently default to Western-centric perspectives or lose subtle cultural nuances when queries are translated into English. Conversely, performance in low-resource languages is often hampered by the model's weaker reasoning capabilities in those languages.
This research investigates Code-Switching (CS) as a potential solution. In human communication, bilinguals often swap between languages to express concepts that are "more familiar" in one tongue than another. The researchers ask: Can code-switched prompts trigger better knowledge retrieval in LLMs? Specifically, can an English-structured sentence with embedded Korean keywords help a model "remember" Korean-specific facts it might otherwise ignore?
Methodology
The study subdivides the "knowledge activation" process into two distinct tasks:
- Knowledge Identification: Can the model identify the specific factual prerequisites needed to answer a question?
- Knowledge Leveraging: Can the model actually use those identified facts to reason its way to the correct answer?
To generate test data, the researchers used the Matrix Language Frame (MLF) model. This linguistic theory posits that in code-switching, one language provides the grammatical "matrix" (English), while the other provides "embedded" content (Korean nouns and phrases). GPT-3.5 was used to synthesize these questions at varying ratios of Korean-to-English, followed by rigorous human verification.
The ENKOQA Dataset
The authors introduced ENKOQA, a new synthetic English-Korean code-switching QA dataset:
- Size: 2,372 multiple-choice question-answer pairs.
- Source: Derived from two existing Korean-centric benchmarks: CLIcK (cultural/linguistic intelligence) and HAE-RAE (cultural nuances).
- Domains: Nine categories including History, Tradition, Law, and Geography.
Results and Discussion
The most striking insight is that language acts as a retrieval key. Using a Korean term like ‘정월대보름’ (Jeongwol Daeboreum) instead of its English translation helps the model "index" into the specific part of its weights trained on Korean text, where that cultural concept is more densely represented.
Key Findings:
- The "Matrix" Matters: Models generally performed better with an English grammatical structure (the matrix) than with pure Korean. This suggests that while knowledge is distributed across languages, reasoning capabilities remain strongest in English.
- Superior Performance: Across almost all models (GPT-4o, Claude 3.5, Solar, etc.), code-switched queries outperformed both English and translated Korean. GPT-4o achieved 78.23% accuracy on CS compared to 73.33% on English.
- Hallucination Mitigation: English queries frequently led to hallucinations or "None of the above" errors. Code-switching acted as a grounding mechanism, significantly reducing these errors.
Conclusion
Code-switching serves as a powerful "knowledge switch" for LLMs, particularly in culture-intensive domains like History and Tradition. While the study is currently limited to English-Korean, it suggests that leveraging the linguistic habits of bilinguals can unlock latent knowledge in multilingual models. Future work may explore how code-switching can be integrated into pre-training or instruction-tuning to create more robustly multilingual models that don't require English "crutches" for reasoning.
Summary updated