Efficient Language Model Training through Cross-Lingual and Progressive Transfer Learning

Malte Ostendorff, Georg RehmarXiv 2023 · DOI

Training state-of-the-art Large Language Models (LLMs) is typically a privilege reserved for those with massive compute budgets and English-centric datasets. For researchers working on "lower-resource" languages—or even major languages like German that lack 100B+ parameter monolingual models—the barrier to entry is immense.

A new study introduces CLP-Transfer (Cross-Lingual and Progressive Transfer), a training strategy that initializes a large language model in a target language by recycling weights from a large pretrained model in a source language and a smaller model in the target language. This approach significantly slashes training requirements, reaching equivalent performance levels with only 20% to 50% of the usual training steps.

The Challenge of Monolingual Scaling

Most LLMs are pretrained primarily on English. While multilingual models exist, they often underperform on specific languages compared to dedicated monolingual models. However, training a massive monolingual model from scratch for a language like German or Finnish is prohibitively expensive.

Existing cross-lingual transfer methods, such as WECHSEL, allow for "porting" an English model to another language by re-initializing the vocabulary. However, these methods generally assume the model size remains constant. CLP-Transfer addresses the gap of efficiently moving across both languages and model scales simultaneously.

Methodology: The CLP-Transfer Recipe

The goal of CLP-Transfer is to produce a large target-language model ($M_t^{(large)}$) using three primary components:

  1. A large source model ($M_s^{(large)}$): A pretrained English model (e.g., GPT-2 XL or BLOOM 7B).
  2. A small target model ($M_t^{(small)}$): A much smaller model already trained in the target language.
  3. Transfer Logic: Internal Transformer layers (attention, feed-forward) are copied directly from the large English model. For token embeddings, shared tokens (like numbers) are copied, while new target-language tokens are initialized by using the small target model to calculate a weighted average of embeddings from the large source model.

Embedding Space Consistency

A core insight of this work is that relative positioning in embedding spaces remains remarkably consistent across different model sizes.

Consistency of nearest neighbors across different model scales.

As shown in the figure above, even between a 125M parameter model and a 13B parameter model, there is a significant overlap (up to 54%) in the "nearest neighbors" of tokens. This consistency justifies using a small model as a "map" to initialize a much larger one, suggesting that the structural logic of language processing is somewhat architecture-dependent rather than purely language-dependent.

Key Results and Efficiency Gains

The authors evaluated CLP-Transfer using German subsets of the OSCAR corpus and various downstream benchmarks. The results demonstrate a massive reduction in the compute required to reach state-of-the-art perplexity levels.

Validation perplexity for BLOOM 6.4B comparing CLP-Transfer to training from scratch.

For the BLOOM model (6.4B parameters), CLP-Transfer achieved the same results as from-scratch training after only 20% of the training steps—an 80% reduction in compute. Similarly, for GPT-2 (1.5B parameters), the method reached the same validation perplexity as a from-scratch model using only 50% of the training tokens.

Beyond efficiency, CLP-Transfer models consistently achieved lower final perplexity than both from-scratch models and those using standard transfer methods. In downstream tasks, the BLOOM-CLP 6.4B model achieved the best average score across six German benchmarks, including sentiment analysis and news classification.

Limitations and Future Outlook

While CLP-Transfer excels at language modeling, zero-shot performance on specific tasks remains a challenge, likely due to models being "under-trained" relative to Chinchilla scaling laws. Future work will explore the method's effectiveness on languages with different scripts (e.g., Arabic or Chinese) and the impact of instruction tuning to enhance utility for end-users.

Summary updated

BibTeX
@misc{ostendorff2023efficient,
  author = {Malte Ostendorff and Georg Rehm},
  title = {{Efficient Language Model Training through Cross-Lingual and Progressive Transfer Learning}},
  year = {2023},
  eprint = {2301.09626},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2301.09626},
}
Figure