1. Introduction
Deep learning for image captioning is a popular and multidisciplinary field that combines natural language processing and computer vision to automatically generate textual descriptions for images. At its core, image captioning involves identifying salient visual elements within an image and translating them into linguistically coherent and contextually appropriate sentences. This technology holds immense potential for a wide range of applications, from assistive tools for the visually impaired to automated content creation, image indexing, and human–computer interaction [
1,
2].
Early deep learning approaches established foundational encoder–decoder frameworks, typically using Convolutional Neural Networks (CNNs) like VGG or ResNet to encode visual information and Recurrent Neural Networks (RNNs) such as LSTMs to sequentially generate captions [
3,
4,
5]. While effective, these models often struggled with capturing fine-grained visual details and maintaining long-range linguistic dependencies [
6]. The field was revolutionized by the advent of attention mechanisms and, more recently, transformer-based architectures [
7]. Models like CLIP [
8], BLIP [
9], and BLIP-2 [
10] have set new benchmarks by learning powerful joint representations of vision and language, enabling more accurate and context-aware caption generation. For instance, BLIP-2’s efficient use of frozen pre-trained models has shown remarkable performance in zero-shot and fine-tuned settings, significantly reducing computational costs [
10,
11]. More recently, diffusion models have also emerged as a powerful alternative, demonstrating superior ability to generate high-quality and diverse captions through iterative refinement processes [
12,
13,
14].
Despite its rapid progress in English, the field of image captioning for Arabic remains significantly under-explored [
15,
16,
17]. This disparity stems from a confluence of challenges unique to the Arabic language. First, Arabic’s rich morphological complexity, where words are constructed from root-based patterns, results in a vast vocabulary and makes standard tokenization and embedding techniques less effective. Second, its right-to-left script and context-sensitive letter shaping require specialized preprocessing. Third, Arabic exhibits diglossia, with Modern Standard Arabic used in formal settings coexisting alongside numerous diverse dialectal variants for everyday communication. Finally, and most critically, there is a pronounced scarcity of large-scale, high-quality annotated datasets for vision–language tasks in Arabic [
18,
19,
20]. This combination of linguistic intricacies and data poverty has hindered the development of robust captioning systems that can generate accurate and contextually relevant descriptions for the over 400 million Arabic speakers the world.
Recent initiatives have begun to address these gaps, marking a crucial step forward for Arabic vision–language research. Some studies have explored the use of machine translation to create Arabic versions of existing English datasets like Flickr 8k and MS COCO, employing architectures such as VGG16 with LSTMs [
21], VGG19 with Inception-ResNet-v2 [
22], or more advanced models like AraBERT [
23] and hybrid CNN-Transformer models with CamelBERT [
24]. Others have focused on developing specialized resources, such as the ArabicFashionData dataset for clothing [
25], the JEEM dataset for dialectal understanding [
20], models like AraCLIP [
26] for image retrieval, and AraCap [
19] for captioning. However, these efforts, while valuable, are often limited in scale, rely on older architectural paradigms, or are tailored to specific domains. The challenge of creating a generalizable, state-of-the-art Arabic captioning model using a resource-efficient framework on a large-scale dataset remains largely unaddressed.
The BLIP-2 (Bootstrapping Language–Image Pre-training) model [
10] offers a particularly compelling architecture to tackle this challenge. Unlike traditional end-to-end methods, BLIP-2 introduces a lightweight Querying Transformer (Q-Former) that acts as a bridge between a frozen pre-trained image encoder and a frozen large language model (LLM). This design offers significant advantages for low-resource languages like Arabic. The frozen components preserve powerful, general-purpose representations learned from massive English dominated datasets, while the trainable Q-Former can be efficiently adapted to a new language and domain with limited paired data. Its two-stage pre-training process first aligns vision and language representations through contrastive learning and then facilitates generative vision to language learning to provide a structured and data-efficient framework for cross-modal adaptation [
27]. This modularity makes BLIP-2 an ideal candidate for bootstrapping Arabic captioning capabilities.
In this paper, we propose the first adaptation of the BLIP-2 model for Arabic image captioning. Our approach leverages a frozen Vision Transformer (ViT) for robust image encoding and replaces BLIP-2’s original English-centric LLM with the powerful, pre-trained Arabic LLM, CamelBERT (bert-base-arabic-camelbert-mix) [
28]. CamelBERT’s pre-training on a diverse corpus of 167 GB of Arabic text, including both Modern Standard Arabic and dialectal content, provides a sophisticated linguistic foundation for generating authentic and morphologically correct captions. To overcome the data scarcity problem, we constructed a new large-scale Arabic dataset by translating the entire English Flickr30k benchmark [
29,
30] using the Google Cloud Translation API, a methodology successfully employed for other low-resource languages [
31,
32]. This yielded a dataset of 31,783 images, each with five Arabic captions.
This paper makes three primary contributions:
First Arabic Adaptation of BLIP-2: We present the first successful adaptation of the BLIP-2 architecture for Arabic, integrating a frozen ViT with the CamelBERT LLM via a trainable Q-Former, demonstrating a resource-efficient pathway for multilingual vision–language modeling.
A New Large-Scale Arabic Dataset: We construct and will release a new Arabic image-captioning dataset derived from Flickr30k, providing a substantial resource of over 158,000 image–caption pairs to facilitate future research.
State-of-the-Art Performance and Analysis: Through comprehensive experiments, we demonstrate that our fine-tuned model dramatically outperforms unadapted baselines, achieving a mean retrieval score of 89.2% and a BLEU-4 score of 36.8. We provide an in-depth analysis of the model’s learning dynamics, retrieval performance, and generation quality, establishing new benchmarks for Arabic image captioning and validating the efficacy of our approach.
The rest of the paper is organized as follows.
Section 2 introduces the literature review in image captioning using deep learning, especially showing contributions in Arabic image captioning. The proposed methodology and the experimental data used are introduced in
Section 3.
Section 4 discusses our research proposal from different perspectives.
Section 5 shows the results of applying the BLIP-2 model in Arabic image captioning. Finally,
Section 6 summarizes our work and proposes future research.
3. Methodology and Dataset
Adapting BLIP-2 [
10] to produce accurate Arabic image captions requires a carefully designed approach that addresses the unique challenges of the Arabic language while leveraging the strengths of modern vision–language architectures. Our methodology employs a Vision Transformer (ViT) to encode images and the CamelBERT large language model (LLM) for text generation, connected through a lightweight Querying Transformer (Q-Former) that facilitates cross-modal alignment. By fine-tuning only the Q-Former while keeping both the vision encoder and language model frozen, our design maximizes computational efficiency and data economy—critical advantages when working with low-resource languages like Arabic.
The design of our approach is motivated by three key considerations specific to Arabic image captioning: linguistic complexity, data scarcity, and computational efficiency. To address Arabic-rich morphology, right-to-left script, and diglossia, we employ CamelBERT [
28], a language model pre-trained on 167 GB of diverse Arabic text (17.3 B tokens) to provide deep linguistic knowledge. To address the scarcity of high-quality Arabic image–text pairs, we leverage BLIP-2’s modular architecture, which freezes pre-trained components and trains only a lightweight Q-Former, thereby enabling effective adaptation with limited data by leveraging representations learned from large-scale English pre-training. For computational efficiency, our design trains just 188 M parameters (the Q-Former) while leveraging 1.13 B vision parameters and 340 M language parameters from frozen models, within a suitable training time. This approach follows the established principle that modular adaptation of pre-trained models is more effective for low-resource languages than end-to-end training from scratch, as demonstrated in recent multilingual vision-language research [
4,
14,
31].
3.1. Algorithm
BLIP-2 presents an efficient vision–language pre-training method that leverages frozen pre-trained image encoders and LLMs [
10]. A compact Q-Former acts as a bridge between the two modalities, and it is trained in two key stages. First, it aligns vision and language representations using a frozen image encoder (ViT-L/14 from CLIP, ViT-g/14 from EVA-CLIP), and second, it facilitates generative vision-to-language learning with a frozen LLM (OPT/FlanT5).
Despite having fewer trainable parameters, BLIP-2 achieves state-of-the-art performance on various vision–language tasks. Our work focuses on adapting BLIP-2 using ViT, as an efficient vision–language transformer, and CamelBERT (bert-base-arabic-camelbert-mix with 167 GB, 17.3 B words), as an Arabic LLM, by modifying BLIP-2’s architecture to integrate CamelBERT and ensuring tokenizer compatibility. The dataset was obtained by translating the Flickr 30k dataset from English to Arabic using the Google API translation service, as explained in
Section 3.2. The model employs a frozen vision encoder (ViT pre-trained on ImageNet-21k and CLIP) and a frozen language model (CamelBERT, pre-trained on 167 GB/17.3 B Arabic tokens). Only the Q-Former module (~188 M parameters) is trained from scratch in two stages (Pre-train stage 1, Pre-train stage 2) to learn cross-modal alignment. This design maximizes the reuse of strong pre-trained representations while efficiently adapting to Arabic captioning. The stages are described as follows:
Pre-train stage 1: In the first stage, ViT encodes images into high level visual features without updating its weights. The goal is to align these visual features with the corresponding text, creating a shared vision language embedding space. The output is a checkpoint for these aligned representations, which is used to seed Pre-train stage 2.
Pre-train stage 2: In the second stage, the model learns to generate coherent text from visual inputs using the pre-aligned embeddings from Pre-train Stage 1. For this generative task, the LLM CamelBERT is employed. While CamelBERT’s weights remain fixed, the rest of the model learns to translate visual information into textual descriptions. Training is optimized with a cosine learning rate scheduler, starting with an extremely low warmup Learning Rate (LR) of for stability, transitioning to a moderate training LR of for effective weight updates, and gradually decaying to a minimum of to ensure fine convergence while maintaining training momentum through the final epochs.
Lastly, the result is query embeddings that enable tasks like image captioning by efficiently connecting visual inputs with natural language. This two-step process guarantees that the model learns robust cross-modal representations (vision + text) before focusing on text creation, resulting in outputs that are more cohesive and context-aware by combining the following:
A frozen ViT for high-quality visual feature extraction.
A frozen CamelBERT for Arabic language understanding and generation.
A trainable Q-Former to bridge the modality gap between vision and text.
Algorithm 1 and
Figure 1 illustrates the step-by-step process of the BLIP-2 model flow using ViT, as the vision encoder, and the LLM CamemBERT. Below is a detailed breakdown of each component and its role in the workflow:
- 1.
Input Image: The process begins with an input image that needs to be captioned in Arabic.
- 2.
Vision Encoding with ViT: The input image is processed using ViT, which encodes the image into a set of visual features. The ViT breaks the image into patches and processes them to extract high-level features.
- 3.
Extracted Image Features: The ViT outputs a set of extracted image features that represent the visual content of the input image in a structured format.
- 4.
Q-Former Bridging Modalities: The Querying Transformer acts as a bridge between the visual features and the language model. It is designed to align visual and textual representations:
| Algorithm 1 BLIP-2 training process for Arabic image captioning |
- 1:
Input: Arabic-translated Flickr 30k dataset - 2:
Output: Trained BLIP-2 model for Arabic captioning - 3:
procedure
Stage1-Pretraining - 4:
Initialize ViT encoder (frozen) - 5:
Initialize Q-Former (trainable) - 6:
for each epoch do - 7:
Extract image features using ViT - 8:
Align visual features with Arabic text embeddings - 9:
Train Q-Former to bridge modalities - 10:
end for - 11:
Save checkpoint for aligned representations - 12:
end procedure - 13:
procedure
Stage2-Pretraining - 14:
Load checkpoint from Stage 1 - 15:
Initialize CamelBERT (frozen) - 16:
for each epoch do - 17:
Use aligned embeddings from Q-Former - 18:
Generate Arabic text using CamelBERT - 19:
Optimize with cosine LR scheduler: - 20:
Warmup LR: - 21:
Training LR: - 22:
Min LR: - 23:
end for - 24:
Save final model checkpoint - 25:
end procedure
|
It uses learnable query vectors to interact with the image embeddings from the vision encoder.
It also uses learnable query vectors to interact with the text tokens, if provided.
The Q-Former is trained to extract the most semantically meaningful features for cross-modal alignment.
- 5.
BLIP-2 Two Stage Pre-Training: The Q-Former undergoes a two-stage pre-training process as part of the BLIP-2 framework:
Stage 1: The Q-Former learns to extract and represent visual information from the ViT outputs. This stage focuses on understanding the visual content.
Stage 2: The Q-Former learns to interact with a frozen LLM to generate text conditioned on the visual input. This stage aligns the visual features with the language model’s capabilities.
- 6.
The frozen Arabic LLM, CamelBERT, is employed for text generation. Leveraging its pre-existing language understanding, it takes the aligned visual–textual features as input to produce coherent and context-aware text, all while its weights remain fixed to ensure training stability.
- 7.
Arabic Image Caption Generation: The final output is an Arabic caption generated by the system, describing the content of the input image based on the visual features and the language model’s text generation capabilities.
Figure 1.
BLIP-2 model flow using ViT as vision encoder and CamelBERT.
Figure 1.
BLIP-2 model flow using ViT as vision encoder and CamelBERT.
3.2. Dataset
The Flickr 30k dataset is a widely used benchmark in vision–language research, serving as a key resource for tasks like image captioning and visual question answering (VQA) [
18,
27,
30,
40]. It was selected for our Arabic adaptation due to its properties:
Scale: Contains 31,783 images with 5 captions each (158,915 total)
Diversity: Everyday scenes, activities, objects, and people.
Established benchmark status: Enables comparison with prior work [
10,
27,
40]
Pre-Processed Dataset
To create an Arabic dataset, we employed Google Cloud Translation API with Google Neural Machine Translation (available at
https://cloud.google.com/translate/docs/reference/rest, accessed on 15 August 2025), following methodologies successfully validated for other low-resource languages, including Bangla [
31] and Hindi [
32]. This design choice was motivated by:
Scalability: Automated translation enables rapid dataset creation at low cost.
Quality: Neural machine translation produces fluent, grammatically correct Arabic text.
Reproducibility: The methodology can be easily replicated for other languages or datasets.
During the translation process, the dataset was split into 6 chunks, each divided into 5 sub-chunks of 1000 images (5000 captions per sub-chunk). This chunking strategy prevents API timeout issues from long responses, enables parallel processing, and facilitates quality validation at each stage.
The translated captions are returned in UTF-8 encoding, preserving right-to-left (RTL) script formatting and handling Arabic-specific features, including contextual letter shaping, punctuation, and idiomatic expressions.
To ensure translation quality, we did the following:
Validated fluency: Random samples checked for grammatical correctness.
Verified semantic preservation: Captions checked for meaning preservation.
Ensured script handling: Confirmed proper RTL rendering and character shaping.
Table 2 presents examples demonstrating the quality of translated Arabic captions based on Algorithm 2, where in we can see two images taken from the Flickr 30k dataset with the five original English captions and the five translated into Arabic captions, using Google Cloud Translation API.
Table 2.
Two samples from the Flickr 30k dataset with Arabic translation after using Google Cloud Translation API.
Table 2.
Two samples from the Flickr 30k dataset with Arabic translation after using Google Cloud Translation API.
| Flickr Image Sample 1 | Flickr Image Sample 2 |
|---|
![Applsci 16 03226 i001 Applsci 16 03226 i001]() | ![Applsci 16 03226 i002 Applsci 16 03226 i002]() |
| English Caption | Arabic Caption | English Caption | Arabic Caption |
| Someone in a blue shirt and hat is standing on the stairs and leaning against a window. | يقف شخص ما فى قميص وقبعة زرقاء على درج و يميل على نافذة | Five ballet dancers caught mid jump in a dancing studio with sunlight coming through a window. |
اشتعلت خمسة راقصات باليه فى منتصف القفز فى استوديو رقص مع ضوء الشمس القادم من خلال النافذة |
| A man in a blue shirt is standing on a ladder cleaning a window. |
رجل يرتدى قميص ازرق يقف على سلم يقوم بتنظيف النافذة | Ballet dancers in a studio practice jumping with wonderful form. |
راقصات الباليه فى ممارسة الاستوديو القفز مع شكل رائح |
| A man on a ladder cleans the window of a tall building. |
رجل على سلم ينظف نافذة مبنى طويل القامة | Five girls are leaping simultaneously in a dance practice room. |
خمس فتيات يقفزن فى وقت واحد فى غرفة ممارسات الرقص |
| Man in blue shirt and jeans on ladder cleaning windows. |
رجل يرتدى القميص الازرق و الجينز على نوافذ تنظيف السلم | Five girls dancing and bending feet in ballet class. |
خمس فتيات يرقصن و ينحنين فى فئة الباليه |
| A man on a ladder cleans a window. |
رجل على سلم ينظف نافذة | A ballet class of five girls jumping in sequence. |
فئة باليه من خمس فتيات يقفزن بتسلسل |
| Algorithm 2 Dataset translation process |
- 1:
Input: Flickr 30k dataset with English captions - 2:
Output: Arabic-translated Flickr 30k dataset - 3:
procedure
SplitDataset - 4:
Split dataset into 6 chunks - 5:
for each chunk do - 6:
Divide into 5 sub-chunks (1000 images each) - 7:
for each sub-chunk do - 8:
Extract 5000 English captions (5 per image) - 9:
Translate to Arabic using Google Cloud Translation API - 10:
Save translated Arabic captions - 11:
end for - 12:
end for - 13:
Merge all translated chunks - 14:
Validate translation quality - 15:
end procedure
|
3.3. Experimental Setup
The experiments were performed on Google Colab Pro using a high-performance GPU instance with an NVIDIA L4 GPU accelerator (24 GB VRAM), ensuring efficient training of large vision–language models. The setup included 64 GB of RAM and 253 GB of disk storage, which was sufficient to meet the substantial memory requirements of pre-trained model weights (e.g., BLIP-2’s 1.5B parameters) and multimodal datasets. For model implementation, we used PyTorch 2.0+ and the Hugging Face Transformers library, leveraging BLIP-2’s cutting-edge image-to-text generation capabilities. To optimize memory efficiency, we applied mixed-precision training (FP16/FP32) via PyTorch’s Autocast, which reduced GPU memory consumption by approximately while preserving model accuracy with fixed random seeds (42 across Python v3.8.20, NumPy v1.24.4, torch v2.4.1, torchvision v0.19.1, tokenizers v0.13.3 and transformers v4.30.0). Additionally, we standardized image preprocessing by translating all captions from English to Arabic using Google Translation API and resizing all images to 224 × 224 pixels. To establish a fair comparison and demonstrate the effectiveness of our adaptation. We evaluated two model configurations:
- 1.
Original BLIP-2: The pre-trained BLIP-2 model with ViT-g/14 vision encoder (1.13 B parameters) and OPT/FlanT5 language model in its original form, without any fine-tuning on Arabic data. This configuration served as our baseline to assess zero-shot Arabic captioning capability.
- 2.
Our Fine-Tuned Model: BLIP-2 adapted with the same ViT-g/14 vision encoder (frozen) and CamelBERT Arabic language model (340 M parameters, frozen), with the Q-Former module (188 M parameters) trained from scratch on our Arabic-translated Flickr 30k dataset. The training process encompassed both pre-training stages: Stage 1 was completed in approximately 8 h (7 h, 57 min, and 45 s), and Stage 2 in approximately 7.5 h (7 h, 24 min, and 30 s) on an NVIDIA L4 GPU with 24 GB VRAM.
Both stages in each model were trained for 5 epochs. Our fine-tuned model presents the training and validation loss curves (
Figure 2). Both pre-training stages were trained for 5 epochs with batch sizes 25 (train) and 16 (eval) using the AdamW optimizer (
= 0.9,
= 0.999, weight decay 0.05) and a cosine learning rate schedule with warmup (warmup LR
, initial LR
, minimum LR
, warmup steps 1000), demonstrating stable convergence by epoch 4–5 with no evidence of overfitting (validation loss consistently decreased or plateaued without upward trends).
3.4. Evaluation Metrics
The main metrics computed are Recall@K (R@K), which measures the percentage of queries where the correct item is found in the top-K results, as shown in Equation (
1). We have also added the BLEU (Bilingual Evaluation Understudy) metric, as it is the most used metric of automated, quantitative evaluation in text generation, such as image captioning.
3.4.1. Image-to-Text (I2T) Retrieval
The goal is to measure how well the model retrieves the correct text descriptions (captions) given an image as a query. The evaluation process involves the following key steps:
Retrieve Similarity Scores: For each image (i), the model computes a similarity score between the image and every text caption in the dataset. These scores are stored in a vector score_i2t[i], where each entry represents how well a text matches the image.
Sort Texts by Similarity: All text captions are sorted in descending order based on their similarity scores. This is done by:
inds = np.argsort(score_i2t[i])[::-1]
where np.argsort() returns the indices that would sort the array in ascending order, and [::−1] reverses the order to get descending ranks (highest similarity first). The resulting inds array contains the indices of text captions ranked from most to least relevant to image (i).
Find the Highest-Ranked Correct Caption: Since an image may have multiple correct captions (stored in img2txt[i]), the evaluation checks the rank of each correct caption and selects the best (highest-ranked) one, as in Algorithm 3.
| Algorithm 3 Image-to-text retrieval rank calculation |
- Require:
() similarity scores matrix, : image-to-text mapping - Ensure:
() array containing best rank positions for each query - 1:
- 2:
- 3:
for to do - 4:
- 5:
- 6:
▹ Initialize with infinity - 7:
for each j in do - 8:
- 9:
if then - 10:
▹ Keep best (smallest) rank - 11:
end if - 12:
end for - 13:
- 14:
end for - 15:
return
|
3.4.2. Text-to-Image (T2I) Retrieval
The goal is to evaluate how accurately the model retrieves the correct image when given a text query (caption). The process, similar to the one discussed in previous
Section 3.4.1, is as follows:
Retrieve Similarity Scores: For each text caption (j), the model computes a similarity score between the text and every image in the dataset. These scores are stored in a vector score_t2i[j], where each entry represents how well an image matches the text description.
Sort Images by Similarity: This step ranks all images in descending order based on their similarity scores. This is done by:
inds = np.argsort(score_t2i[j])[::-1]
where np.argsort() returns the indices that would sort the array in ascending order, and [::−1] ensures the most relevant images appear first. The resulting inds array contains the indices of images sorted from best to worst match for text (j).
Find the Highest-Ranked Correct Image: Unlike image-to-text retrieval (where multiple correct captions may match to image), each text query typically has one correct corresponding image (stored in txt2img[j]). The evaluation checks the position of this correct image in the ranked list and the rank of the correct image, as in Algorithm 4.
Compute Recall@K Metrics:
- 1.
Recall@1 (R@1): Percentage of text queries where the correct image is the top-ranked result.
- 2.
Recall@5 (R@5): Percentage of text queries where the correct image appears in the top-5 results.
- 3.
Recall@10 (R@10): Percentage of text queries where the correct image appears in the top-10 results.
| Algorithm 4 Text-to-image retrieval rank calculation |
- Require:
() similarity scores matrix, : text-to-image mapping - Ensure:
() array containing rank positions for each query - 1:
- 2:
- 3:
for to do - 4:
- 5:
- 6:
- 7:
- 8:
- 9:
end for - 10:
return
|
3.4.3. Bilingual Evaluation Understudy Metrics
Another metric computed is BLEU, which is used to assess our image captioning model’s performance. It calculates the similarity between a machine-generated caption and one or more human-written reference captions.
In our work, it calculates the similarity between a machine-generated caption and the translated reference captions, as mentioned above.
For these calculations, the candidate and reference texts’ n-grams (contiguous word sequences of varying lengths) are compared to determine the BLEU score. In particular:
BLEU-1 measures the precision of single-word matches by evaluating the correctness of individual words (unigrams).
BLEU-2 evaluates the fluency of two-word sequences by taking into account word pairings, or bigrams.
BLEU-3 and BLEU-4 assess the model’s capacity to produce structurally cohesive phrases by looking at larger sequences of three (trigrams) and four words, respectively.
6. Conclusions
Arabic image captioning remains an under-explored challenge in computer vision and natural language processing due to the language’s rich morphology, right-to-left script, diglossia, and the scarcity of high-quality annotated datasets [
15,
16,
17]. These factors have hindered the development of robust captioning systems capable of generating accurate and contextually relevant descriptions for over 400 million Arabic speakers worldwide, despite significant progress in English-based models [
9,
10,
12]. This paper addressed this gap by presenting the first adaptation of the BLIP-2 architecture [
10] for Arabic image captioning, replacing its original English-centric language model with the Arabic large language model CamelBERT [
28] while retaining a frozen ViT image encoder. The key innovation—the Q-Former—bridges visual and linguistic modalities through a two-stage pre-training process, enabling strong performance in Arabic image captioning and retrieval tasks with minimal trainable parameters (188 M). To overcome data scarcity, we constructed and released a new Arabic dataset by translating the entire Flickr 30k benchmark [
30] using the Google Cloud Translation API, following methodologies successfully employed for other low-resource languages [
31,
32], yielding 31,783 images with five Arabic captions each (158,915 total pairs).
Our comprehensive experiments demonstrate the transformative impact of this adaptation. The original BLIP-2 model, without any fine-tuning on Arabic data, exhibited near-zero capability for Arabic caption generation, achieving a mean retrieval score (r_mean) of only 26.4% (
Table 3), confirming that unadapted English-centric vision–language models fail to generalize to morphologically rich languages [
15,
16]. In contrast, our fine-tuned model achieved exceptional performance, with a mean retrieval score of 89.2%—a substantial improvement of +62.8 percentage points (
Table 3,
Figure 3). Specifically, it attained 93.0% text retrieval accuracy (txt_R_mean) and 85.3% image retrieval accuracy (img_R_mean), demonstrating robust cross-modal alignment (
Section 5.1). Using BLEU metrics for quantitative assessment (
Table 4), our model achieved a BLEU-1 of 75.5, a BLEU-2 of 58.5, a BLEU-3 of 46.2, and a BLEU-4 of 36.8—dramatically outperforming the original BLIP-2 across all metrics and establishing a new state-of-the-art standard for Arabic image captioning on translated benchmarks (
Table 8). Loss analysis (
Figure 2) validates our two-stage strategy: Language Modeling loss decreased from 3.001 to 2.681 despite frozen CamelBERT, proving the Q-Former’s effectiveness in bridging vision and language, while stable Image–Text Contrastive loss (0.693–0.694) confirms preserved alignment from Stage 1 [
10,
11,
27].
While these results confirm that our approach successfully handles Arabic’s linguistic complexities, some limitations persist, including omitted fine details, occasional syntactic awkwardness that reflects Arabic’s complex morphology, and translation artifacts from the machine-translated dataset [
6,
15,
23]. Future work will focus on refining linguistic precision through additional fine-tuning on native Arabic datasets [
20], expanding the training data with diverse dialectal examples [
25], enhancing visual understanding for nuanced inputs through improved attention mechanisms [
41] or diffusion-based approaches [
12,
13], and extending our modular approach to other low-resource languages [
4,
14,
31]. This work represents a significant step toward enhancing accessibility for Arabic-speaking communities and bridging the gap in multilingual vision–language research, demonstrating that resource-efficient adaptation of English-centric models can achieve strong performance in morphologically complex languages, with applications in assistive tools, education, and content creation.