Ahmed Heakl * Β
Sara Ghaboura * Β
Omkar Thawakar Β
Fahad Shahbaz Khan Β
Hisham Cholakkal Β
Rao M. Anwer Β
Salman Khan
*Equal Contribution
If you like our project, please give us a star β on GitHub for the latest update.
π₯ Jan 2025 AIN-7B model the first Arabic Inclusive LMM is released π€.
π Model weights will be released soon.
AIN, the First Arabic Inclusive Multimodal Model, bridges the gap in generative AI for Arabic by leveraging Modern Standard Arabic (MSA) data to achieve state-of-the-art performance across diverse tasks and specialized domains. AIN is a bilingual model (MSA and English) with broad applications from medical to agricultural domains, excelling in OCR and Document Understanding, and Remote Sensing Imaging. Trained on 3.6M samples, where 35% of its Arabic data comes from authentic sources. Built on Qwen-2-VL, AIN empowers Arabic speakers with advanced, inclusive AI capabilities, outperforming leading models in key benchmarks.
Figure 1. showcases a comprehensive performance analysis of AIN-7B across CAMEL-Bench domains, comparing it with prominent closed-source models as well as open-source counterparts. OCR: "OCR & Document Understanding", Video: "General Video & Multi-Image Understanding", RS: "Remote Sensing Understanding", CDT: "Chart, Diagram & Table Understanding", Agro.: "Agricultural Image Understanding", Cultural: "Cultural-Specific Understanding", Medical: "Medical Image Understanding".
AIN is a versatile LMM excelling in visual and contextual understanding across diverse domains, including VQA on complex topics, OCR for various fonts and handwriting, cultural insights (traditions, food, places), agricultural tasks (crop identification, fruit classification, disease detection), remote sensing (multi-scale objects), medical imaging (various modalities), and video analysis (animation, human activities).
- The first Arabic-centric inclusive Large Multimodal Model (LMM) trained on 3.6M samples.
- Includes 35% authentic Arabic data within its Arabic data subset.
- Achieves superior performance compared to open- and closed-source models (e.g., GPT-4o) and open-source models (e.g., Qwen2-VL-7B) across tasks such as OCR and specialized domains.
- Demonstrates robust bilingual capabilities (Arabic/English), validated through comprehensive testing and human evaluation across 17 Arab countries.
- Exhibits advanced cultural understanding and domain expertise in fields such as medical imaging, agriculture, and scientific visualization.
Figure 2. Comparative performance of AIN-7B against other models across key domains, including OCR & Document Understanding, Remote Sensing, Agricultural Understanding, and overall performance across all domains.
AIN demonstrates state-of-the-art performance across diverse domains, surpassing both open- and closed-source models. Notably, it achieves an aggregate performance score of 63.77%, with significant gains in OCR, remote sensing, and agricultural image understanding.
Table 1. Performance comparison of AIN and different closed- and open-source LMMs across CAMEL-Bench domains.
Best performance is marked with π₯; second-best is π₯.
OCR: "OCR & Document Understanding",
Video: "General Video & Multi-Image Understanding",
RS: "Remote Sensing Understanding",
CDT: "Chart, Diagram & Table Understanding",
Agro.: "Agricultural Image Understanding",
Cult.: "Cultural-Specific Understanding",
Med.: "Medical Image Understanding".
Models | VQA | OCR | Video | RS | CDT | Agro. | Cult. | Med. | Total |
---|---|---|---|---|---|---|---|---|---|
The qualitative evaluation showcases AIN's advanced capabilities in handling diverse, complex tasks, including OCR, medical imaging, remote sensing, and cultural-specific understanding, with remarkable precision and contextual relevance. Unlike GPT-4o and LLaVA, AIN demonstrates superior performance in identifying intricate details and maintaining accuracy across varied query formats and multi-domain challenges.
Figure 3. Left: Comparison of AIN-7Bβs qualitative performance against other models across multiple domains. Right: Qualitative examples showcasing AIN-7Bβs capabilities across various domains, including general VQA, OCR & Document Understanding, Remote Sensing, Medical Imaging, Agricultural Understanding, and Cultural-Specific tasks.
A multi-step verification pipeline was implemented to ensure high-quality translations and safe visual data. Translation accuracy was assessed through human evaluation, where native Arabic speakers rated outputs against reference translations, and semantic similarity checks were conducted using LaBSE. Additionally, translated samples were reverse-translated and validated using BLEU, METEOR, and ROUGE scores to measure correctness, correlation, and overlap. For visual data, toxicity filtering was applied using LLavaGuardβs safety policies and GPT-4o, identifying and removing unsafe content related to violence, substance abuse, and harmful imagery, ensuring compliance with ethical AI standards.
Figure 4. Data verification and filtering pipeline for textual and visual data, ensuring high-quality training data through semantic similarity checks, translation quality evaluations, and toxicity screening for safety compliance.
Figure 5. Distribution of visual data toxicity filtering results, showing that 95% of the data is classified as safe, while 5% is identified as unsafe due to categories like weapons or substance abuse, violence, and animal cruelty.
This project is licensed under the MIT License - see the LICENSE file for details.
For questions or suggestions, feel free to reach out to us on GitHub Discussions.
If you use AIN LMM in your research, please consider citing: