Introduction
Large Language Models (LLMs) have demonstrated remarkable capabilities, yet they remain predominantly English-centric. When adapting these models to new languages, researchers typically rely on continual pre-training with massive monolingual corpora. However, this approach often leads to "catastrophic forgetting" of the model's original English knowledge and fails to establish strong cross-lingual semantic alignments.
Inspired by the way humans acquire a second language, this paper introduces Code-Switching Curriculum Learning (CSCL). CSCL is a structured training strategy that progressively introduces a target language through a curriculum of increasing complexity: starting with token-level mixing, moving to sentence-level mixing, and concluding with pure monolingual text. This method significantly enhances target-language proficiency while preserving the model's core reasoning capabilities in English.
The Challenge of Multilingual Adaptation
Adapting an open-source LLM (such as Llama or Qwen) to a non-English language via standard monolingual pre-training presents three primary hurdles:
- Catastrophic Forgetting: The model's weights are overwritten by new linguistic patterns, causing it to lose the reasoning and knowledge acquired during its initial English training.
- Alignment Gaps: Monolingual data does not explicitly teach the model how concepts in English map to concepts in the target language.
- Data Scarcity: High-quality, large-scale monolingual data is often unavailable for low-resource languages.
CSCL addresses these issues by using code-switching—the practice of alternating between two or more languages—as a temporary scaffold to bridge the gap between English and the new language.
The CSCL Framework
The CSCL strategy structures the adaptation process into three distinct phases, mimicking the human learning curve from basic vocabulary to full fluency.
Phase 1: Token-Level Code-Switching (Easy)
In the initial phase, the model is exposed to sentences where specific English words are replaced with their target-language equivalents. This forces the model to learn word-level cross-lingual alignments within a familiar English syntactic structure. This data can be synthesized efficiently using dictionary-based swapping or advanced LLMs like GPT-4o.
Phase 2: Sentence-Level Code-Switching (Medium)
The second phase utilizes paragraphs where sentences alternate between English and the target language while maintaining the same semantic context. This phase, built from parallel translation corpora, helps the model understand sentence-level structures and transitions between the two languages.
Phase 3: Monolingual Texts (Hard)
The final phase involves training on pure monolingual text in both English and the target language. This solidifies the model's fluency in the new language while reinforcing its original English capabilities to prevent forgetting.
Experimental Results and Insights
The authors evaluated CSCL using Qwen 2 (7B) adapted for Korean, Japanese, and Indonesian. The results demonstrate that the curriculum-based approach is highly effective and data-efficient, requiring only 3 billion tokens (1B per phase) to achieve superior results.
- Performance Gains: In Korean adaptation, CSCL yielded a +4.3%p improvement on K-MMLU and a +9.5%p improvement on CLIcK (Cultural and Linguistic Intelligence) compared to standard monolingual training.
- Mitigating Forgetting: CSCL limited the performance drop on English MMLU to just 4.2%p, a significant improvement over baseline adaptation methods that often see much steeper declines.
- Cross-Lingual Safety Transfer: One of the most striking findings is that CSCL helps transfer English safety guardrails to the target language. By tightly aligning the two languages, the model becomes more robust against multilingual jailbreak attempts.
- Efficiency and Generalizability: The strategy proved effective across different model architectures (Gemma 2, Phi 3.5) and varying resource levels, suggesting it is a robust solution for diverse linguistic needs.
Conclusion and Future Work
Code-Switching Curriculum Learning provides a powerful, human-inspired framework for multilingual LLM adaptation. By treating language acquisition as a progressive journey rather than a sudden immersion, CSCL achieves better performance, stronger cross-lingual alignment, and reduced knowledge loss.
Future research directions include exploring tokenizer expansion to improve inference speed in the target language and testing the framework on extremely low-resource languages where even parallel corpora are scarce. Nonetheless, CSCL represents a significant step toward more capable and safer multilingual AI.
Summary updated