[论文解读] Fanar: An Arabic-Centric Multimodal Generative AI Platform
Fanar 提供一个以阿拉伯语为核心的多模态生成式 AI 平台,包含两个核心 LLM(Fanar Star 7B from scratch 与 Fanar Prime 9B 通过持续预训练)、再检索增强(RAG)、语音、图像生成以及用于内容核验的出处与署名。
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.
研究动机与目标
- 由于网络上的阿拉伯语数据有限且阿拉伯语具有独特的语言特征,推动高质量阿拉伯语 LLM 的发展。
- 介绍 Fanar 的两种 LLM(Star 与 Prime)以及它们如何针对阿拉伯任务在语言、语音和图像生成方面进行训练、部署与对齐。
- 描述用于组装约 1 万亿词的阿拉伯语、英语和代码数据的收集、清洗与整理管线。
- 介绍专门的阿拉伯语分词与面向文化及区域内容的评估基准。
提出的方法
- 为 Fanar Star(7B)从头开始在 ~1 万亿词上进行两阶段课程式预训练(阿拉伯语 40%、英语 50%、代码 10%),随后进入降温阶段。
- 在 Gemma-2 基础上对 Fanar Prime(9B)进行持续预训练,进行词汇裁剪至 128,256 个标记,并结合 SFT 与 DPO 以提升安全性与对齐。
- 编排式多模态平台,将提示通过以阿拉伯语为中心的 LLM 堆栈、ASR/TTS、图像生成与带安全过滤的 RAG 模块进行路由。
- 通过多语言清洗、去重、句法/语义/模型基础过滤(困惑度、教育分类器)以及机器翻译扩展阿拉伯覆盖范围的数据整理流程。
- RAG 模块包括 Islamic RAG、Recency RAG、Biography RAG 与 Attribution RAG,用于 grounding 与内容核验。
- 专门的阿拉伯分词器与评估基准,反映阿拉伯形态学和方言变体。
实验结果
研究问题
- RQ1在高质量阿拉伯数据有限和方言差异存在的情况下,如何提升阿拉伯 LLM 的性能?
- RQ2对于阿拉伯预训练,哪些数据过滤与扩充策略(句法、语义、模型基础)最有效?
- RQ3持续预训练与后期对齐技术如何影响阿拉伯推理能力、安全性和领域提示( STEM、宗教、传记)?
- RQ4检索增强生成(Retrieval Augmented Generation)如何提升阿拉伯生成内容的事实准确性与署名?
主要发现
- Fanar Star(7B)与 Fanar Prime(9B)在同等规模模型中,在阿拉伯语、英语和代码数据的既定基准上实现了最先进的结果。
- 一个以阿拉伯语为重点的数据管线,产出约 1 万亿词,包含强健的句法/语义过滤与去重,支撑高质量的模型训练。
- 针对 STEM 与推理提示,通过在 9B 基础上进行持续预训练并进行目标词汇裁剪,有效实现对齐。
- RAG 系统(Islamic、Recency、Biography、Attribution)为事实查询提供有 grounding、最新且可核验的内容。
- 多模态能力(语音、图像)针对阿拉伯方言与区域文化考虑进行了定制。
- 通过监督微调(Supervised Fine-Tuning)与直接偏好优化(Direct Preference Optimization)实现后训练对齐,提升安全性与伦理性。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。