Atlas-Chat: Adapting Large Language Models for Low-Resource Moroccan Arabic Dialect

Guokan Shang, Hadi Abdine, Yousef Khoubrane, Amr Mohamed, Yassine Abbahaddou, Sofiane Ennadir, Imane Momayiz, Xuguang Ren, Eric Moulines, Preslav Nakov, Michalis Vazirgiannis, Eric P. Xing · DOI

Abstract

Moroccan Arabic (Darija) is a low-resource dialect spoken by 40 million people, yet it remains underserved by current Large Language Models (LLMs) which primarily focus on Modern Standard Arabic (MSA). We present Atlas-Chat, a suite of models adapted for Darija through instruction-tuning on a novel 458K-sample dataset. Our results demonstrate that Atlas-Chat significantly outperforms larger, general-purpose Arabic models on dialect-specific tasks, establishing a new state-of-the-art for Moroccan Arabic.

Introduction

Most current LLMs suffer from a "data-rich language" bias. While models like GPT-4 or specialized Arabic models such as Jais and AceGPT perform well on Modern Standard Arabic (MSA), they struggle with vernacular dialects. Darija, the Moroccan dialect, is a unique blend of MSA, Amazigh, French, and Spanish. Despite its large speaker base, it lacks standardized written forms and massive digital corpora, making it a "low-resource" language. Atlas-Chat addresses this gap by providing the first collection of LLMs specifically optimized for the nuances of Darija.

Methodology

Instead of training a model from the ground up, the researchers utilized a Darija-centric instruction-tuning approach.

  1. Base Model Selection: The Gemma 2 family (2B, 9B, and 27B) was chosen as the foundation, as these models provided a stronger starting point for this task than existing Arabic-specific models.
  2. Fine-Tuning Strategy: The team employed Low-Rank Adaptation (LoRA) with a high rank (256) and alpha (128). This approach was found to be more effective than full fine-tuning, as it prevented "catastrophic forgetting," allowing the model to learn Darija without losing its underlying reasoning capabilities.
  3. Synthetic "Pre-training": To bridge the gap caused by the lack of a massive pre-training phase, a "Story Completion" task was designed. This forced the model to predict the next segment of long Darija stories, effectively mimicking the next-token prediction objective within an instruction-following framework.

The Darija-SFT-Mixture Dataset

The primary contribution of this work is the Darija-SFT-Mixture, a comprehensive dataset comprising 458,000 instruction samples. This mixture integrates native resources with newly generated synthetic data to cover a wide range of linguistic tasks.

Overview of the subsets within the Darija-SFT-Mixture dataset, including sample counts and sources.

As detailed in the table above, the dataset includes:

  • Native Resources: Consolidated existing Darija datasets for translation, sentiment analysis, and summarization.
  • MoroccanWikipedia-QA (MW-QA): Synthetic Q&A pairs derived from Moroccan Wikipedia pages using Claude 3.5 Sonnet.
  • MoroccanSocialMedia-MultiGen (MSM-MG): Social media posts (Tweets/YouTube) paired with synthetic rephrasings and explanations.
  • TÜLU-Darija: A large-scale translation of the TÜLU-V2-mix into Darija, with rigorous filters to ensure cultural relevance and linguistic accuracy.

Evaluation and Results

Atlas-Chat sets a new benchmark for Moroccan Arabic performance across several evaluation suites, including DarijaMMLU, DarijaHellaSwag, and DarijaAlpacaEval.

  • State-of-the-Art Performance: The Atlas-Chat-27B model is currently the state-of-the-art for Moroccan Arabic.
  • Efficiency and Quality: A key finding was that the Atlas-Chat-9B model outperformed much larger models like Jais-13B and AceGPT-13B. This suggests that for dialects, high-quality, targeted instruction data is more critical than raw parameter count.
  • Zero-Shot Dominance: In zero-shot evaluations, Atlas-Chat-2B outperformed the Jais-family-6.7B by over 5% on DarijaMMLU and a staggering 27% on DarijaAlpacaEval.
  • Human-Like Preference: In "LLM-as-a-Judge" summarization tests, Atlas-Chat's responses were preferred over reference summaries 60.7% of the time, significantly surpassing Llama-3.1-8B-Instruct.

Conclusion

Atlas-Chat demonstrates the power of culturally-aware, dialect-specific instruction tuning. While challenges like hallucinations and subtle Western biases (inherited from synthetic data generation) remain, the project provides a robust framework for adapting LLMs to other underrepresented dialects. Future work will focus on Reinforcement Learning from Human Feedback (RLHF) to further align the models with specific user preferences.

Summary updated

BibTeX
@inproceedings{shang2025atlas,
  author = {Guokan Shang and Hadi Abdine and Yousef Khoubrane and Amr Mohamed and Yassine Abbahaddou and Sofiane Ennadir and Imane Momayiz and Xuguang Ren and Eric Moulines and Preslav Nakov and Michalis Vazirgiannis and Eric P. Xing},
  title = {{Atlas-Chat: Adapting Large Language Models for Low-Resource Moroccan Arabic Dialect}},
  booktitle = {Workshops @ COLING},
  year = {2025},
  url = {https://openreview.net/forum?id=KGu8TVzLPn},
}
Figure