TL;DR
This paper explores "tokenizer transfer" as an efficient method to adapt large language models (LLMs) to low-resource languages. By transferring a tokenizer from a high-resource language to a pre-trained model and then fine-tuning, they achieve competitive performance with significantly less computational cost compared to traditional methods.
What Problem Does This Paper Address?
Developing effective language models for low-resource languages is a significant challenge. The primary hurdles are the scarcity of training data and the high computational cost associated with training models from scratch. A key contributing factor to this inefficiency is tokenization: most existing tokenizers are optimized for high-resource languages like English. This means that when applied to other languages, they often require more tokens to represent the same text, leading to increased processing costs and reduced performance. While "tokenizer transfer" offers a promising solution by adapting existing tokenizers, a systematic evaluation of its effectiveness, especially on monolingually pre-trained models, has been lacking. This paper aims to fill that gap by providing a controlled evaluation of different tokenizer transfer methods.
Methods
The core of this research lies in evaluating two specific tokenizer transfer techniques:
- Orthogonal Matching Pursuit (OMP): This method approximates new token embeddings by representing them as a sparse linear combination of "anchor tokens" from the original model's embedding space. This allows for a more efficient reconstruction of embeddings for tokens not present in the original vocabulary.
- Fast Vocabulary Transfer (FVT): FVT initializes new token embeddings by taking the mean of the embeddings of its constituent sub-tokens from the source model's vocabulary. For identical tokens, it uses the source embedding directly.
The researchers compared these transfer methods against several baselines:
- A monolingual model trained on a smaller target language dataset (10MB).
- A larger pre-trained model (100MB) trained on a source language.
- The source language model fine-tuned on the target language data (both monolingual and mixed source+target data).
They evaluated these configurations across six languages and multiple fine-tuning regimes.
Datasets
The study utilized the Goldfish family of models, which are monolingually pre-trained language models trained on language-specific corpora. These models were available in various sizes, with the researchers focusing on 10MB and 100MB versions for their experiments. The training data for these models originated from the OSCAR corpus (for English, Swedish, Danish, Estonian, and Turkish) and a combination of MADLAD and NLLB data (for Scottish Gaelic).
For evaluation, the researchers used the FLORES dataset, a standard benchmark for evaluating cross-lingual performance. They also employed the MultiBlimp benchmark, which focuses on linguistic minimal pairs for subject-verb agreement.
Key Insights and Ideas
- Tokenizer transfer is a viable compute-efficient strategy: The research strongly suggests that tokenizer transfer, particularly when combined with target-language fine-tuning, offers a practical way to adapt LLMs to low-resource languages without the prohibitive cost of full retraining.
- OMP shines with monolingual fine-tuning: The OMP method, when fine-tuned solely on the target language data, achieved the best performance in terms of target-language adaptability.
- Adaptability vs. Retention trade-off: A significant finding is the inherent trade-off between improving performance on the target language and preserving the model's original capabilities on the source language. Tokenizer transfer methods, while boosting target performance, can degrade source-language performance.
- Source language choice matters, but less than expected: While the choice of source language can have some impact, its influence diminishes significantly after adaptation, especially for languages within the same script. This implies that readily available high-resource models can serve as effective sources even without strict linguistic similarity.
- Monolingual pre-training is key for controlled evaluation: By using monolingually pre-trained models, the study isolates the effect of tokenizer transfer from the potential benefits of prior multilingual pre-training, offering a cleaner evaluation.
Key Results
- OMP with monolingual fine-tuning achieved the lowest median normalized log-perplexity (1.684) and the highest median MultiBlimp accuracy (0.855) among all evaluated conditions. This outperformed both a smaller target-language model and a fine-tuned source-language model.
- Tokenizer transfer methods (OMP/FVT) without fine-tuning showed some promise in reducing target perplexity but significantly degraded MultiBlimp accuracy compared to baselines.
- Mixed fine-tuning (combining source and target data) for OMP/FVT partially mitigated the performance trade-off but still lagged behind traditional fine-tuning for combined source+target performance.
- Byte-normalized log-perplexity was used to account for tokenizers that might use more tokens for certain languages, providing a fairer comparison.
- The byte-per-token ratio was significantly lower for the fine-tuned transfer methods (4.57) compared to the baseline 10MB target model (2.44), indicating improved tokenization efficiency.
Limitations and Future Work
- Limited language scope: The study was confined to six Latin-script languages. Its applicability to languages with different scripts or significantly mismatched tokenizers (e.g., Greek, Arabic) requires further investigation.
- Model size: The experiments were conducted on relatively small models (Goldfish at 10MB/100MB). The generalizability of these findings to larger, more capable LLMs needs to be verified.
- Simulated low-resource scenario: The use of standardized datasets might not fully capture the nuances of true low-resource scenarios, which can involve data quality issues and unique interaction effects.
- Single run evaluation: Due to resource constraints, most evaluations were performed with a single run. Future work should include multiple random seeds to assess statistical significance.
- Evaluation metrics: While perplexity and MultiBlimp are standard, future work should explore downstream task performance and generation capabilities.
The authors suggest future research directions including:
- Transferring between distant language pairs.
- Investigating scaling behavior across different model sizes.
- Evaluating on reasoning and natural language understanding benchmarks with larger models.
Summary updated