[Paper Review] Fanar: An Arabic-Centric Multimodal Generative AI Platform
Fanar presents an Arabic-centric multimodal generative AI platform with two core LLMs (Fanar Star 7B from scratch and Fanar Prime 9B via continual pre-training), plus RAG, speech, image generation, and attribution for content verification.
We present Fanar, a platform for Arabic-centric multimodal generative AI systems, that supports language, speech and image generation tasks. At the heart of Fanar are Fanar Star and Fanar Prime, two highly capable Arabic Large Language Models (LLMs) that are best in the class on well established benchmarks for similar sized models. Fanar Star is a 7B (billion) parameter model that was trained from scratch on nearly 1 trillion clean and deduplicated Arabic, English and Code tokens. Fanar Prime is a 9B parameter model continually trained on the Gemma-2 9B base model on the same 1 trillion token set. Both models are concurrently deployed and designed to address different types of prompts transparently routed through a custom-built orchestrator. The Fanar platform provides many other capabilities including a customized Islamic Retrieval Augmented Generation (RAG) system for handling religious prompts, a Recency RAG for summarizing information about current or recent events that have occurred after the pre-training data cut-off date. The platform provides additional cognitive capabilities including in-house bilingual speech recognition that supports multiple Arabic dialects, voice and image generation that is fine-tuned to better reflect regional characteristics. Finally, Fanar provides an attribution service that can be used to verify the authenticity of fact based generated content. The design, development, and implementation of Fanar was entirely undertaken at Hamad Bin Khalifa University's Qatar Computing Research Institute (QCRI) and was sponsored by Qatar's Ministry of Communications and Information Technology to enable sovereign AI technology development.
Motivation & Objective
- Motivate the development of high-quality Arabic LLMs due to limited Arabic data on the web and unique linguistic features of Arabic.
- Present Fanar's two LLMs (Star and Prime) and how they are trained, deployed, and aligned for Arabic tasks across language, speech, and image generation.
- Describe the data collection, cleaning, and curation pipeline used to assemble ~1 trillion tokens of Arabic, English, and code.
- Introduce specialized Arabic tokenization and evaluation benchmarks for cultural and regional content.
Proposed method
- Two-stage curriculum pre-training for Fanar Star (7B) from scratch on ~1 trillion tokens (Arabic 40%, English 50%, code 10%), followed by a cooling-down stage.
- Continual pre-training of Fanar Prime (9B) on Gemma-2 base with vocabulary pruning to 128,256 tokens, plus SFT and DPO for safety and alignment.
- Orchestrated multimodal platform where prompts are routed through an Arabic-centric LLM stack, ASR/TTS, image generation, and RAG modules with safety filters.
- Data curation with multilingual cleaning, deduplication, syntactic/semantic/model-based filtering (perplexity, education classifier), and machine translation to expand Arabic coverage.
- RAG modules include Islamic RAG, Recency RAG, Biography RAG, and Attribution RAG to ground and verify content.
- Specialized Arabic tokenizer and benchmarks to reflect Arabic morphology and dialectal variation.
Experimental results
Research questions
- RQ1How can Arabic LLM performance be improved given limited high-quality Arabic data and dialectal variation?
- RQ2What are effective data filtering and augmentation strategies (syntactic, semantic, model-based) for Arabic pre-training?
- RQ3How do continual pre-training and post-training alignment techniques impact Arabic reasoning, safety, and domain-specific prompts (STEM, religion, biography)?
- RQ4How can Retrieval Augmented Generation improve factual accuracy and attribution for Arabic-generated content?
Key findings
- Fanar Star (7B) and Fanar Prime (9B) achieve state-of-the-art results among similarly sized models on established benchmarks for Arabic, English, and code data.
- A curated data pipeline yielding ~1 trillion tokens with Arabic emphasis, including robust syntactic/semantic filtering and deduplication, supports high-quality model training.
- Continual pre-training of Fanar Prime on a 9B base with targeted vocabulary pruning effectively aligns the model for STEM and reasoning prompts.
- RAG systems (Islamic, Recency, Biography, Attribution) provide grounded, up-to-date, and verifiable content for factual queries.
- Multimodal capabilities (speech, image) are tailored to Arabic dialects and regional cultural considerations.
- Post-training alignment via Supervised Fine-Tuning and Direct Preference Optimization enhances safety and ethical considerations.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.