AceGPT

AceGPT

A model that tackles the "Localization" of large models for Arabic: it is not enough for the model to speak Arabic; its answers must also match Arab values and cultural context. It introduced the ACVA benchmark to measure this.

2024Arabic modelsPublished weights
DeveloperThe Chinese University of Hong Kong (Shenzhen) and the Shenzhen Research Institute of Big Data, with researchers from King Abdullah University of Science and Technology (KAUST)
Year of publication2024
Number of parameters7 and 13 billion parameters (built on Llama 2)
LayersAs in Llama 2
Context length4096 tokens
Training dataContinued pre-training on Arabic text, then instructions with native Arabic questions, then reinforcement learning with preferences drawn from Arab culture
Training objectiveContinued pre-training + supervised fine-tuning + RLAIF (reinforcement learning from AI feedback) with a local reward model
LicenceLlama 2 Community License
ArabicTargeted at Arabic, with a focus on cultural and value alignment.
Decoder-only model (GPT family) Decoder-only (GPT family)
Languagep(·|≤1)Arabicp(·|≤2)غنيةp(·|≤3)بـp(·|≤4)Token + Position embeddingsN×masked (causal) self-attention+ feed-forwardVocabularycausal maskrow i attends to j ≤ i

A causal mask stops each token from seeing what comes after it, so the model learns to predict the next token. Generation repeats this token by token.

Page contents
  1. The localization problem
  2. The three steps
  3. A critical question for the student

The localization problem

A model trained mainly on English may answer in Arabic but from an unsuitable cultural perspective: examples, holidays, customs and legal norms foreign to the person asking. Researchers call this the localization gap.

The three steps

  1. Continued pre-training on Arabic text to improve the language.
  2. Supervised fine-tuning with native Arabic questions (asked by Arab users) and answers from a strong model.
  3. RLAIF: a reward model learns culturally appropriate preferences, then the policy is optimized.

A critical question for the student

When "cultural alignment" is measured by a single benchmark, what is lost? Arab societies are diverse in religion, dialect and politics. So the ACVA score should be read as an indicator of direction, not a final verdict on how "suitable" the model is for all users.

The three stages of RLHF Reinforcement Learning from Human Feedback
1. SFTprompts + humandemonstrationssupervisedfine-tuning2. Reward modelrank 4–9 outputsper promptr_θ(x, y)3. PPOmaximise r_θ− β·KL(π ‖ π_SFT)aligned policy

Supervised fine-tuning on human responses, then a reward model from raters' comparisons, then policy optimization with PPO and a KL-divergence penalty from the SFT model.

Key contributions

  • Native Arabic instruction questions instead of only translated English instructions.
  • A reward model trained on preferences that take Arab culture into account.
  • The ACVA benchmark for alignment with Arab cultural values.

Limitations and caveats

  • It inherits the limits of Llama 2 and its tokenizer, which was not designed for Arabic.
  • "Arab values" are not a single block; the benchmark represents one particular view of them.

Original references

  1. Huang, H. et al. (2024). AceGPT, Localizing Large Language Models in Arabic. NAACL 2024 aclanthology.org/2024.naacl-long.450/

The figures are taken from the papers and official cards cited in the references. When the developer does not disclose a figure we write "not disclosed" and do not estimate it. Check the model card before any commercial use, because license terms may change.