Introduction
Adapting Large Language Models (LLMs) to low-resource languages is frequently hindered by "unfair" tokenization and a scarcity of training data. Most state-of-the-art models are linguistically biased toward high-resource Western languages. Their tokenizers are optimized for English, meaning a single word in English might be represented as one token, while the same word in a low-resource language like Tatar is fragmented into multiple meaningless sub-units. This fragmentation makes models inefficient and significantly harder to train.
Existing adaptation strategies often rely on character-based vocabulary transfer, assuming that words with similar spellings should have similar embeddings. However, this approach fails when moving between languages with different scripts (e.g., English to Armenian) or unrelated linguistic families (e.g., English to Tatar). This paper introduces trans-tokenization, a method that uses translation-based statistical mapping to transfer vocabulary from a high-resource model to a new language, enabling efficient adaptation with minimal compute.
Methodology: Trans-Tokenization and Hydra LLMs
The core innovation of this work is moving away from orthographic (spelling) similarity toward semantic (meaning) similarity. The process consists of several key steps:
- Token Alignment: Using a Statistical Machine Translation (SMT) tool, FastAlign, on a parallel corpus (such as NLLB), the authors create a probabilistic map between tokens in the source and target languages. For instance, the system learns that a specific Dutch token matches an English counterpart with a certain probability.
- Embedding Mapping: The target language's embedding table is initialized by taking a weighted average of the source language's embeddings based on these SMT probabilities. This ensures that the new tokens inherit the semantic space of the original model.
- Hydra LLMs: The authors introduce "Hydra" models—LLMs with multiple swappable "legs" (embedding tables) and "heads" (language modeling heads). This architecture allows a model to preserve its shared "brain" (hidden layers) while switching input/output modules to handle different languages.
To maintain resource efficiency, the authors employ a specific fine-tuning strategy: they only unfreeze the embedding table, the LM head, and the top and bottom two layers of the Transformer, leaving the middle 28 layers frozen. This allows for high-quality adaptation in fewer than 10 hours on a single A100 GPU.
Evaluation and Results
The researchers evaluated their approach using the "Tweeties" series of models across several benchmarks, including the SART word analogy dataset for Tatar and a new Tatar Summarization dataset.
Performance in Low-Resource Settings
In Tatar, the Tweety-7b-tatar model achieved a perplexity of 10.96, significantly outperforming standard continual pre-training (11.43) and character-based initialization methods like WECHSEL (11.67).
Key Insights
- Meaning Over Spelling: For unrelated languages, translation-based evidence is far more effective than character-based methods. On the SART word analogy task, the trans-tokenized model scored 49.34% accuracy, nearly doubling the performance of the Mistral+FT baseline (25.42%).
- Zero-Shot Capabilities: By utilizing the Hydra architecture, the authors developed a state-of-the-art English-to-Tatar translation model in a zero-shot manner, bypassing the need for high-quality parallel data during fine-tuning.
- Human Preference: In pairwise translation rankings by native speakers, the HydraTower model was preferred over Microsoft Translator and performed competitively with Google Translate for English-to-Tatar.
Limitations and Future Work
While effective, the method has limitations. Initializing target embeddings from English may inadvertently transfer Western cultural biases. Additionally, the current method assumes a left-to-right alignment between tokens, which may not be optimal for all language pairs. Future work will explore integrating token mapping directly into the training loss function and using Parameter-Efficient Fine-Tuning (PEFT) to reduce the VRAM overhead of maintaining multiple embedding tables.
Summary updated