Abstract
Large Language Models (LLMs) often struggle with low-resource languages (LRLs) due to the English-centric nature of their training data. This paper investigates "Multilingual In-Context Learning" (ICL), a technique where providing few-shot examples in a mix of high-resource languages (HRLs) significantly improves performance on LRL tasks. Our systematic analysis reveals that multilingual prompts act as a signal to activate cross-lingual capabilities, often outperforming English-only prompts and approaching the performance of native-language examples.
Introduction
While LLMs excel in high-resource languages like English, Spanish, or Chinese, their performance typically degrades for low-resource languages such as Swahili or Telugu. Standard mitigation strategies, such as translation or native few-shot prompting, face challenges like loss of nuance or lack of high-quality data. Researchers from the University of Waterloo and the Vector Institute explore a "middle way": using examples from various high-resource languages to solve problems in a target low-resource language.
Methodology
The study systematically evaluates four ICL modes to understand the impact of language diversity on model performance:
- English Mode: Examples are exclusively in English.
- Monolingual Mode: Examples are in a single non-English HRL (e.g., Chinese).
- Multilingual Mode: Examples are randomly sampled from multiple HRLs.
- Native Mode: Examples are in the target LRL (the gold standard).
The researchers also conducted ablation studies using Context-Irrelevant Sentences (CIS)—random Wikipedia snippets in various languages—to determine if the mere presence of a non-English language triggers better cross-lingual reasoning.
Datasets and Models
The evaluation spanned 8 models (including Llama 3.1, Qwen 2.5, and GPT-4o-mini) across four diverse benchmarks:
- MGSM: Grade-school math word problems.
- XCOPA: Commonsense causal reasoning.
- XL-WiC: Word-in-context disambiguation.
- XQuAD: Extractive question answering.
The researchers categorized 29 languages into HRLs and LRLs based on their prevalence in the models' training data.
Key Insights
The "Multilingual Switch"
A primary finding is that introducing any non-English language—even irrelevant text—improves LRL task performance. This suggests that non-English prompts serve as a signal to the model to transition from English-centric processing to a more generalized multilingual state.
Script and Diversity
Languages with non-Latin scripts (e.g., Chinese, Japanese) were found to be particularly effective "teachers" for LRLs, likely providing a stronger signal to move away from English defaults. Furthermore, the Multilingual Mode (mixing multiple HRLs) proved to be the most robust strategy, consistently providing gains across various tasks and models by averaging the strengths of different monolingual prompts.
Neuron-Level Activation
Analysis showed that Multilingual ICL activates a set of neurons that significantly overlaps with those used in Native mode. This indicates that multilingual prompting effectively shifts the model's internal state toward the target language's processing pathways.
Results
Multilingual ICL outperformed English-only ICL in 23 out of 30 experimental scenarios. For example, on the MGSM math dataset with Llama 3.1-8B, accuracy for LRLs rose from 57.1% to 66.0% when switching to Multilingual mode.
On the XCOPA reasoning task, Multilingual mode often rivaled the performance of Native mode, demonstrating its effectiveness in complex cognitive tasks. Statistical testing confirmed these improvements are significant across nearly all evaluated multilingual LLMs.
Conclusion
The "blessing of multilinguality" offers a practical way to boost LLM performance in low-resource settings without requiring target-language data. While Native mode remains the ideal, Multilingual ICL provides a powerful alternative that leverages the model's existing cross-lingual knowledge. Future research will focus on optimizing the selection of HRLs based on linguistic proximity to the target language.
Summary updated