TL;DR
Researchers have developed LayRA (Layer-Selective LoRA), a surgical approach to adding new languages to Large Language Models (LLMs) without causing them to forget the languages they already know. By applying parameter-efficient fine-tuning only to the "input" and "output" layers of a model while freezing the "reasoning" core, they achieved a superior balance of new language acquisition and old language retention—even enabling instruction-following in new languages without any specific instruction-tuning data.
What Problem Does This Paper Address?
Most state-of-the-art LLMs are "multilingual," but they are usually pre-trained on a fixed set of high-resource languages. If you want to add a low-resource language like Swahili or Galician later, you face two major hurdles:
- Catastrophic Forgetting: Standard "continued pre-training" (CPT) on new data often causes the model to lose its proficiency in its original languages.
- Data Scarcity: The standard fix for forgetting is "experience replay" (mixing in old data), but most model developers (like Meta or Google) don't release their original pre-training corpora.
The authors seek a "replay-free" way to expand an LLM's linguistic repertoire while keeping its core capabilities—like logic and instruction-following—intact.
Methods
The core innovation is LayRA (Layer-Selective LoRA). It builds on two key observations:
- LoRA (Low-Rank Adaptation): Instead of updating billions of parameters, LoRA adds small, trainable matrices to the model, which reduces forgetting but often results in "underlearning" the new language.
- The "English Sandwich" Hypothesis: Recent research suggests multilingual LLMs process text in three stages: the first layers encode the source language, the middle layers perform abstract reasoning (often in an internal "English-like" space), and the final layers translate that reasoning back into the target language for output.
LayRA applies LoRA adapters only to the first 10 and last 2 layers of the model, freezing everything in between. This protects the "reasoning engine" while adapting the "interface" to the new language.
The authors also explore Model Arithmetic to enable instruction-following. They calculate a "language vector" (the difference between the new language-adapted model and the base model) and add it to an existing instruction-tuned model. This allows the model to follow commands in a new language without ever seeing a single "instruction/response" pair in that language.
Datasets
- Pre-training: The authors used FineWeb 2 to extract data for three target languages: Galician (Latin script, related to Spanish), Swahili (Latin script, unrelated to Llama’s base languages), and Urdu (Perso-Arabic script, related to Hindi).
- Evaluation: Models were tested across a battery of multilingual benchmarks:
- XNLI (Natural Language Inference)
- PAWS-X (Paraphrasing)
- XCOPA & XStoryCloze (Commonsense Reasoning)
- MGSM (Math word problems)
- MMLU-Lite (General knowledge)
Key Insights and Ideas
- The Reasoning Core is Universal: The fact that freezing middle layers works so well supports the idea that LLMs develop a language-agnostic "thought" space. You don't need to retrain the brain to speak a new language; you just need to update the ears and the mouth.
- Script is the Ultimate Gatekeeper: The model’s ability to learn Urdu on Llama 3.1 was severely hampered because Llama’s tokenizer wasn't designed for the Perso-Arabic script. This led to "over-fragmentation," where the model had to process Urdu as a series of nonsensical bytes rather than coherent sub-words.
- Positive Transfer: Interestingly, adding Galician actually improved the model's performance in English on some tasks. This suggests that learning a related language can reinforce the model's underlying logic.
Key Results
- Better Trade-offs: LayRA outperformed standard LoRA and full CPT, achieving an average improvement of over 1 point across 12 of the 19 experimental groups.
- Superior Retention: LayRA showed the least amount of forgetting in English (the "anchor" language) compared to all other methods.
- Zero-Shot Instructions: Using model arithmetic, the researchers successfully "injected" instruction-following into the adapted models. For example, on the XNLI task, the adapted Qwen model's accuracy in Swahili jumped from ~35% to ~41% simply by adding the instruction residual, despite having no Swahili instruction training.
Limitations and Future Work
- Tokenizer Constraints: The method struggles when the new language uses a script not well-represented in the original model's tokenizer (like Urdu in Llama 3.1). The authors suggest that "tokenizer-free" models might be a necessary future step.
- Complexity Ceiling: While LayRA excels at linguistic tasks, the "model arithmetic" approach for instruction-following showed some performance declines in complex reasoning tasks like math (MGSM) for certain languages.
- Scaling: The study focused on 7B and 8B parameter models; it remains to be seen if these layer-selective insights hold true for "frontier" models at the 70B+ or 400B+ scale.
Summary updated