Franken-Adapter: Cross-Lingual Adaptation of LLMs by Embedding Surgery

Fan Jiang, Honglin Yu, Grace Chung, Trevor CohnarXiv 2025 · DOI

Abstract

Franken-Adapter is a modular framework designed to adapt English-centric Large Language Models (LLMs) to low-resource languages through a technique termed "embedding surgery." By decoupling language adaptation from instruction tuning, the method preserves core reasoning capabilities while significantly improving performance in target languages. Evaluation across 96 languages demonstrates up to 20% performance gains and a 14% improvement in multilingual mathematical reasoning, all while maintaining English proficiency and improving inference efficiency by up to 28%.

Introduction

While modern LLMs like Gemma and Llama exhibit remarkable capabilities, their training data is heavily biased toward English. This creates two primary hurdles for cross-lingual application: the Tokenizer Gap, where English-optimized tokenizers fragment non-Latin text into inefficient chunks (high "fertility"), and the Adaptation Paradox, where fine-tuning on new languages often leads to "catastrophic forgetting" of the model's original reasoning and instruction-following skills. Current solutions typically involve expensive full-parameter fine-tuning or model composition techniques that double computational costs. Franken-Adapter addresses these issues by treating embeddings as modular components that can be swapped and aligned without degrading the model's core "intelligence."

Methods: The Surgery Framework

The Franken-Adapter approach follows a modular pipeline designed to keep the transformer "body" intact while specializing its "eyes" (embeddings) for new languages.

  1. Customized Vocabulary (Prune-with-Extension): To avoid increasing model size, the authors prune rare or non-Latin tokens from the original tokenizer and replace them with tokens specific to a target language group (e.g., African or South East Asian languages). This maintains a constant, efficient vocabulary size.
  2. Parallel Training: The process bifurcates training into two streams. Language Adaptation freezes the transformer body and trains only the new embeddings on multilingual data. Simultaneously, Instruction Tuning tunes the transformer body on English alignment data to ensure robust instruction-following.
  3. The "Surgery": The independently trained multilingual embeddings are stitched onto the instruction-tuned body.
  4. LoRA-Adaptation: A final, lightweight pass using Low-Rank Adaptation (LoRA) is performed on a mixture of multilingual and instruction data to ensure the new components work harmoniously.
The Franken-Adapter workflow: decoupling language adaptation from instruction tuning followed by modular 'surgery' and LoRA alignment.

Key Insights and Results

Reasoning is Language-Agnostic

A pivotal finding of this work is that high-level reasoning—such as mathematical problem-solving—resides primarily within the transformer blocks rather than the embeddings. By swapping embeddings post-hoc, the authors successfully transferred math-solving abilities from English to low-resource languages, achieving a 14% improvement over math-optimized LLMs across 20 languages.

Performance and Efficiency

On Gemma2 models, Franken-Adapter showed performance improvements of up to 20% across 96 languages. Crucially, this method avoids the pitfalls of standard continued pre-training; English benchmark performance saw less than 1% regression. Furthermore, by reducing tokenizer fertility, the customized vocabularies improved inference latency by up to 28% for specific language groups.

Performance comparison of Franken-Adapter+LoRA against state-of-the-art multilingual models across various benchmarks.

Conclusion

Franken-Adapter demonstrates that modularity is a viable path for scaling LLMs to the "next thousand languages." By treating embeddings as swappable modules, researchers can develop specialized linguistic interfaces for a single high-performing model body. Future work will focus on creating more universal "plug-and-play" embeddings and ensuring that safety alignment remains robust across the diverse linguistic landscapes enabled by this surgery.

Summary updated

BibTeX
@misc{jiang2025franken,
  author = {Fan Jiang and Honglin Yu and Grace Chung and Trevor Cohn},
  title = {{Franken-Adapter: Cross-Lingual Adaptation of LLMs by Embedding Surgery}},
  year = {2025},
  eprint = {2502.08037},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.08037},
}
Figure