LLaMAX: Scaling Linguistic Horizons of LLM by Enhancing Translation Capabilities Beyond 100 Languages

Yinquan Lu, Wenhao Zhu, Lei Li, Yu Qiao, Fei Yuan

Abstract

Large Language Models (LLMs) demonstrate remarkable translation capabilities in high-resource language tasks, yet their performance in low-resource languages is hindered by insufficient multilingual data during pre-training. To address this, we conduct extensive multilingual continual pre-training on the LLaMA series models, enabling translation support across more than 100 languages. Through a comprehensive analysis of training strategies, such as vocabulary expansion and data augmentation, we develop LLaMAX. Remarkably, without sacrificing its generalization ability, LLaMAX achieves significantly higher translation performance compared to existing open-source LLMs (by more than 10 spBLEU points) and performs on-par with specialized translation model (M2M-100-12B) on the Flores-101 benchmark. Extensive experiments indicate that LLaMAX can serve as a robust multilingual foundation model. The code and the models are publicly available.

Introduction

While Large Language Models (LLMs) like LLaMA and GPT-4 are incredibly capable, they suffer from a "resource gap." They perform brilliantly in high-resource languages like English or French but struggle significantly with low-resource languages (e.g., Cebuano or Amharic) because they weren't exposed to enough diverse data during their initial training. Most existing solutions try to fix this by either training a model from scratch or fine-tuning on a specific language, which often leads to "catastrophic forgetting" of general reasoning abilities. LLaMAX addresses this by scaling an LLM's linguistic horizons to over 100 languages through massive multilingual continual pre-training without compromising its core intelligence.

Methods and Datasets

The LLaMAX framework utilizes a "continual pre-training" approach, starting with base LLaMA models and further training them on a massive multilingual corpus. The strategy is built on three pillars:

  1. Vocabulary Stability: Contrary to common practice, the authors found that adding language-specific tokens degraded performance. By sticking to the original Byte-level Byte Pair Encoding (BBPE) vocabulary, the model maintains English as an "internal pivot," facilitating better mapping of new languages.
  2. Massive Continual Pre-training: LLaMAX2 was trained for 60 days on 24 A100 GPUs using a dataset spanning 102 languages and over 64 billion tokens.
  3. Data Augmentation: Dictionary-based augmentation (using MUSE and PanLex) created "pseudo-parallel" data to help the model learn word-to-word correspondences in low-resource settings.

The training data includes a mix of MC4, MADLAD-400, and Lego-MT. Evaluation was conducted on benchmarks like Flores-101/200, WMT23, and general reasoning tasks via OpenCompass (MMLU, GSM8K, HumanEval).

Key Insights and Ideas

A core finding of this work is the Vocabulary Paradox: expanding vocabulary is counterproductive as it shifts the model's focus too much. Keeping the original English-centric vocabulary helps the model map new languages onto existing internal representations more effectively.

Furthermore, LLaMAX demonstrates remarkable Generalization to the Unseen. Training on 102 languages improved performance even on languages not included in the training set, suggesting the model learns universal linguistic patterns.

spBLEU performance of LLaMAX2-Alpaca vs. LLaMA2-Alpaca on seen and unseen languages, demonstrating strong generalization.

Key Results

LLaMAX2-7B achieves massive gains, improving translation scores by more than 10 spBLEU points over the base LLaMA2 model in low-resource tasks. It rivals specialized models like M2M-100-12B and even outperforms GPT-4 in specific low-resource translation scenarios.

Comparison of the number of languages achieving spBLEU > 10 across various open-source LLMs, highlighting LLaMAX's superior coverage.

Importantly, these gains do not come at the cost of general intelligence; LLaMAX performs almost identically to original LLaMA models on standard English reasoning and logic benchmarks.

Conclusion

LLaMAX successfully bridges the gap for low-resource languages in the LLM era. While it still trails specialized systems in high-resource scenarios, it establishes a robust multilingual foundation. Future work will focus on improving data quality and releasing instruction-tuned models to further close the performance gap with specialized translation systems.

Summary updated

BibTeX
@inproceedings{lu2024llamax,
  author = {Yinquan Lu and Wenhao Zhu and Lei Li and Yu Qiao and Fei Yuan},
  title = {{LLaMAX: Scaling Linguistic Horizons of LLM by Enhancing Translation Capabilities Beyond 100 Languages}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  url = {https://openreview.net/forum?id=YxfXSjXiCC},
}
Figure