Skip to content

AIN - The First Arabic Inclusive Large Multimodal Model. It is a versatile bilingual LMM excelling in visual and contextual understanding across diverse domains.

Notifications You must be signed in to change notification settings

mbzuai-oryx/AIN

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation


The Arabic INclusive Multimodal Model

Ahmed Heakl * Β  Sara Ghaboura * Β  Omkar Thawakar Β  Fahad Shahbaz Khan Β  Hisham Cholakkal Β  Rao M. Anwer Β  Salman Khan

arXiv Our Page GitHub issues GitHub stars GitHub license
*Equal Contribution


⭐ ⭐ ⭐ ⭐ ⭐ ⭐ ⭐ ⭐ ⭐ ⭐ Try Our AIN Model ⭐ ⭐ ⭐ ⭐ ⭐ ⭐ ⭐ ⭐ ⭐ ⭐

      chatbot   AIN Chatbot     telegram   AIN Telegram     WhatsApp   AIN WhatsApp

⭐ ⭐ ⭐ ⭐ ⭐ ⭐ ⭐ ⭐ ⭐ ⭐ ⭐ ⭐ ⭐ ⭐ ⭐ ⭐ ⭐ ⭐ ⭐ ⭐ ⭐ ⭐ ⭐ ⭐ ⭐ ⭐ ⭐ ⭐


If you like our project, please give us a star ⭐ on GitHub for the latest update.




πŸ“’ Latest Updates

πŸ”₯ Jan 2025 AIN-7B model the first Arabic Inclusive LMM is released πŸ€—.
πŸš€ Model weights will be released soon.

AIN Logo Overview

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.


radar_chart

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).

🌟 Key Features

  • 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.

intro_bar

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.



βš–οΈ Quantitative Evaluation and Results

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
GPT-4o
πŸ₯‡57.91
πŸ₯ˆ54.68
πŸ₯‡74.28
πŸ₯ˆ22.85
62.12
πŸ₯ˆ81.79
πŸ₯‡79.92
πŸ₯‡49.26
πŸ₯ˆ60.35
GPT-4o-mini
48.83
39.38
πŸ₯ˆ68.12
16.93
πŸ₯‡70.16
79.58
65.92
πŸ₯ˆ47.37
54.54
Gemini-1.5-Pro
46.68
28.68
42.95
17.07
47.06
72.14
56.24
33.78
52.38
Gemini-1.5-flash
45.59
27.58
53.31
14.95
48.26
76.07
46.54
42.87
44.40
InternVL-8B
30.41
15.91
51.42
5.36
30.27
44.47
20.88
29.48
28.52
InternVL2.5-1B
27.22
19.45
38.20
3.39
30.75
39.53
35.68
21.27
26.94
Qwen-VL-2B
41.02
22.93
38.90
12.56
27.83
52.02
34.28
29.12
32.33
AIN-7B (ours)
πŸ₯ˆ56.78
πŸ₯‡72.35
64.09
πŸ₯‡45.92
πŸ₯ˆ64.10
πŸ₯‡85.05
πŸ₯ˆ78.09
43.77
πŸ†63.77


🎯 Qualitative Evaluation

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.

contre qualitative

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.



🧐 Data Verification and Toxicity Filtering

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.

verify

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.



verify

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.




License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ’¬ Contact us

For questions or suggestions, feel free to reach out to us on GitHub Discussions.


πŸ“š Citation

If you use AIN LMM in your research, please consider citing:



About

AIN - The First Arabic Inclusive Large Multimodal Model. It is a versatile bilingual LMM excelling in visual and contextual understanding across diverse domains.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages