Abstract
We introduce Atlas-Chat, the first-ever collection of LLMs specifically developed for dialectal Arabic. Focusing on Moroccan Arabic, also known as Darija, we construct our instruction dataset by consolidating existing Darija language resources, creating novel datasets both manually and synthetically, and translating English instructions with stringent quality control. Atlas-Chat-2B, 9B, and 27B models, fine-tuned on the dataset, exhibit superior ability in following Darija instructions and performing standard NLP tasks. Notably, our models outperform both state-of-the-art and Arabic-specialized LLMs like LLaMa, Jais, and AceGPT, e.g., our 9B model gains a 13% performance boost over a larger 13B model on DarijaMMLU, in our newly introduced evaluation suite for Darija covering both discriminative and generative tasks. Furthermore, we perform an experimental analysis of various fine-tuning strategies and base model choices to determine optimal configurations. All our resources are publicly accessible, and we believe our work offers comprehensive design methodologies of instruction-tuning for low-resource languages, which are often neglected in favor of data-rich languages by contemporary LLMs.
Introduction
While Large Language Models (LLMs) have achieved remarkable success in high-resource languages, Dialectal Arabic (DA) remains a significant frontier. Most existing Arabic-specialized models prioritize Modern Standard Arabic (MSA), the formal register used in literature and news. However, MSA differs substantially from the daily spoken dialects of hundreds of millions in terms of morphology, syntax, and vocabulary.
Moroccan Arabic, or Darija, is spoken by over 40 million people but remains a low-resource "linguistic entity" characterized by a blend of MSA, Amazigh, French, and Spanish. It lacks standardization and extensive digital corpora, causing existing models to struggle with its nuances or default to MSA. Atlas-Chat addresses this gap by providing the first dedicated instruction-tuned models and evaluation benchmarks for Darija.
Methodology
The researchers adopted a "Darija-centric" approach, focusing on instruction-tuning to adapt existing high-performing models to the dialect.
- Base Model Selection: The Gemma 2 family (2B, 9B, and 27B) was selected as the foundation. Preliminary experiments indicated that starting from instruction-tuned versions provided a more robust baseline for dialectal adaptation than base versions.
- Fine-Tuning Strategy: To inject dialectal knowledge while preserving general reasoning, the models were fine-tuned using LoRA (Low-Rank Adaptation) with a high rank (256) and alpha (128).
- Synthetic Pre-training Mimicry: To bridge the gap left by the absence of a continual pre-training phase, a "Story Completion" task was introduced. By training the model to predict the continuation of long Darija stories, the researchers mimicked the next-token prediction objective of pre-training over extended contexts.
Datasets
The core of the project is the Darija-SFT-Mixture, a 458K-sample dataset designed to cover a wide range of linguistic tasks.
The mixture includes:
- Native Datasets: Consolidated resources for translation (MADAR, FLORES+), sentiment analysis (MSDA), and summarization (MArSum).
- DODa-10K: A new dataset of 10,000 parallel sentences across Darija (Arabic/Latin scripts), MSA, English, and French.
- Synthetic Data: High-quality synthetic data generated via Claude 3.5 Sonnet, including MW-QA (Moroccan Wikipedia QA) and MSM-MG (social media interactions).
- Translated Instructions: A filtered version of the TÜLU-V2-mix, translated into Darija with "cultural adaptation" prompts to ensure naturalness and local relevance.
Key Results
Atlas-Chat models demonstrate significant improvements over existing baselines across a variety of benchmarks, including the newly introduced DarijaMMLU, DarijaHellaSwag, and DarijaBench.
Performance Highlights
- Zero-Shot Dominance: Atlas-Chat-27B established new state-of-the-art records, outperforming Jais-30B by 10% on DarijaMMLU and 12.7% on DarijaHellaSwag.
- Scaling Efficiency: The 9B Atlas-Chat model outperformed the 13B Jais model by 13% on DarijaMMLU, highlighting that high-quality, dialect-specific data is more critical than raw parameter count for low-resource tasks.
- Human-Like Preference: In
LLM-as-a-judgeevaluations for summarization, Atlas-Chat’s outputs were preferred 60.7% of the time over reference summaries, significantly beating Llama-3.1-8B-Instruct. - Cross-Script Capability: The models exhibit robust performance in both Arabic script and Latin-script (Arabizi) Darija, which is essential for social media applications.
Discussion and Limitations
Despite its success, Atlas-Chat faces several challenges common to LLMs. The models are prone to hallucinations and may inherit cultural biases from the "teacher" models (e.g., Claude 3.5 Sonnet) used for data generation. Currently, the models are trained via Supervised Fine-Tuning (SFT) only; future work will explore preference tuning (RLHF/DPO) to better align with native speaker expectations. Additionally, while safety tasks were included, more rigorous red-teaming for dialect-specific harms is necessary for deployment.
The release of Atlas-Chat and its associated benchmarks provides a comprehensive methodology for adapting LLMs to other low-resource languages and dialects globally.
Summary updated