Second Language (Arabic) Acquisition of LLMs via Progressive Vocabulary Expansion

Jianqing Zhu, Huang Huang, Zhihang Lin, Juhao Liang, Zhengyang Tang, Khalid Almubarak, Abdulmohsen Alharthik, Bang An, Juncai He, Xiangbo Wu, Fei Yu, Junying Chen, Zhuoheng Ma, Yuhao Du, He Zhang, Emad A. Alghamdi, Lian Zhang, Ruoyu Sun, Haizhou Li, Benyou Wang, Jinchao Xu

TL;DR

AraLLaMA introduces a human-inspired "Progressive Vocabulary Expansion" strategy to adapt English-centric LLMs to Arabic without degrading their original knowledge. By gradually doubling the number of new Arabic subwords during training, the model achieves a 3x decoding speedup and superior performance on Arabic benchmarks compared to larger models like Jais-30B.

What Problem Does This Paper Address?

Most state-of-the-art Large Language Models (LLMs) are heavily optimized for English and Chinese, leaving languages like Arabic with slower progress. A major technical hurdle in adapting these models is the tokenizer.

Standard models like LLaMA 2 "see" Arabic primarily as a sequence of individual characters rather than meaningful subwords. This makes decoding incredibly slow and computationally expensive. However, simply swapping in a new, large Arabic vocabulary at the start of training often leads to "catastrophic forgetting." Because so many words suddenly become Out-Of-Vocabulary (OOV) for the model's pre-trained embeddings, the linguistic knowledge it already possesses begins to degrade. The authors seek a way to expand the vocabulary for efficiency while maintaining the model's underlying intelligence.

Methods

The researchers propose a method inspired by human Second Language Acquisition (SLA), where learners gradually build their vocabulary rather than memorizing a dictionary overnight.

  • Incremental Byte Pair Encoding (I-BPE): Unlike standard BPE which uses a static vocabulary, I-BPE dynamically augments the vocabulary during the training process.
  • Exponential Expansion Strategy: The authors compared two ways to add tokens: adding a fixed amount (Uniform) versus doubling the number of new tokens at each stage (Exponential). They found that exponential expansion mimics human learning and provides much better training stability by preventing sudden shifts in the OOV ratio.
  • Embedding Initialization: When a new subword is added, its initial embedding is calculated by averaging the embeddings of the smaller subwords that already existed in the original LLaMA 2 vocabulary. This preserves semantic relationships from the start.
  • Staged Training: The model (AraLLaMA) was trained in 16 stages across 480 billion tokens. They used a cosine annealing schedule to shift the data mix from 30% Arabic / 65% English at the start to 90% Arabic / 5% English at the end.
Figure 1: Second Language Acquisition for human, an English-speaking child’s journey to Arabic fluency, from basic vocabulary to cultural roficiency

Datasets

  • Pre-training: A massive 480B token corpus combining Arabic sources (Common Crawl, WebText, Books, Newspapers, Wikipedia) and English sources (SlimPajama, Proof-Pile-2).
  • Instruction Tuning (ALAN): The authors introduced ALAN (Arabic Instruction Tuning for Language Models), a synthetic dataset generated by GPT-4 based on a structured syllabus of 127 topics in Arabic culture, science, and engineering.
  • Evaluation: The models were tested on a battery of benchmarks including MMLU (English and Arabic versions), ArabicMMLU, RACE, EXAMS, and ACVA (for Arabic cultural and value alignment).

Key Insights and Ideas

  • Stability is Key: Figure 2 (below) shows that uniform expansion causes abrupt, unstable improvements in compression. The exponential approach provides a smooth "learning curve," which is vital for maintaining the model's internal representation space.
  • Efficiency through Granularity: By moving from character-level to subword-level processing, the model achieves much higher "Word Integrity." It treats words as units rather than fragments, which is crucial for morphologically rich languages like Arabic.
  • Cross-Lingual Transfer: The progressive approach allows the model to retain its English proficiency while gaining Arabic mastery, proving that language adaptation doesn't have to be a zero-sum game.
Figure 2: Compression ratio comparison between uni- form and exponential vocabulary expansion strategies.

Key Results

AraLLaMA (available in 7B and 13B versions) sets a new standard for open-source Arabic models:

  • Decoding Speed: AraLLaMA generates Arabic text 3x faster than its predecessor, AceGPT, and generates words 4.5x faster than the original LLaMA 2.
  • Tokenizer Efficiency: The model achieved a 63.23% Word Integrity score, vastly outperforming LLaMA 2 (1.8%) and even Arabic-optimized models like Jais (38.95%).
  • Benchmark Performance: AraLLaMA-13B-base outperformed the much larger Jais-30B-base on Arabic MMLU tasks. In chat evaluations, AraLLaMA-13B-chat achieved an average score of 67.61, surpassing GPT-3.5 Turbo (67.45) on the combined benchmark suite.
Table 1: Comprehensive tokenizer evaluation showing AraLLaMA's superior fertility and word integrity.
Table 2: Evaluation of base models across Arabic-translated MMLU and ArabicMMLU.

Limitations and Future Work

The authors acknowledge a few key limitations:

  • Human Evaluation: Due to budget constraints, the models have not yet been evaluated by native Arabic speakers, which is the gold standard for linguistic nuance.
  • Deployment: The model is currently intended for academic research rather than immediate commercial online deployment.
  • Future Directions: The team aims to further democratize access by continuing to open-source their code, data, and model weights to encourage community-driven improvements in Arabic NLP.

Summary updated

Abstract

This paper addresses the critical need for democratizing large language models (LLM) in the Arab world, a region that has seen slower progress in developing models comparable to state-of-the-art offerings like GPT-4 or ChatGPT 3.5, due to a predominant focus on mainstream languages (e.g., English and Chinese). One practical objective for an Arabic LLM is to utilize an Arabic-specific vocabulary for the tokenizer that could speed up decoding. However, using a different vocabulary often leads to a degradation of learned knowledge since many words are initially out-of-vocabulary (OOV) when training starts. Inspired by the vocabulary learning during Second Language (Arabic) Acquisition for humans, the released AraLLaMA employs progressive vocabulary expansion, which is implemented by a modified BPE algorithm that progressively extends the Arabic subwords in its dynamic vocabulary during training, thereby balancing the OOV ratio at every stage. The ablation study demonstrated the effectiveness of Progressive Vocabulary Expansion. Moreover, AraLLaMA achieves decent performance comparable to the best Arabic LLMs across a variety of Arabic benchmarks. Models, training data, benchmarks, and codes will be all open-sourced.
BibTeX
@inproceedings{zhu2025second,
  author = {Jianqing Zhu and Huang Huang and Zhihang Lin and Juhao Liang and Zhengyang Tang and Khalid Almubarak and Abdulmohsen Alharthik and Bang An and Juncai He and Xiangbo Wu and Fei Yu and Junying Chen and Zhuoheng Ma and Yuhao Du and He Zhang and Emad A. Alghamdi and Lian Zhang and Ruoyu Sun and Haizhou Li and Benyou Wang and Jinchao Xu},
  title = {{Second Language (Arabic) Acquisition of LLMs via Progressive Vocabulary Expansion}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure