Next Article in Journal
HSE-GNN-CP: Spatiotemporal Teleconnection Modeling and Conformalized Uncertainty Quantification for Global Crop Yield Forecasting
Next Article in Special Issue
Automating Systematic Reviews in Clinical Psychiatry: Comparing Domain Experts and NLP-Based Text Mining
Previous Article in Journal
FusionGraphRAG: An Adaptive Retrieval-Augmented Generation Framework for Complex Disease Management in the Elderly
Previous Article in Special Issue
Validating the Use of Natural Language Processing and Text Mining for Hospital-Based Violence Intervention Programs and Criminal Justice Articles
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Generalised Cross-Dialectal Arabic Question Answering Through Adaptive Code-Mixed Data Augmentation

by
Maha Jarallah Althobaiti
Department of Computer Science, College of Computers and Information Technology, Taif University, Taif 21944, Saudi Arabia
Information 2026, 17(2), 139; https://doi.org/10.3390/info17020139
Submission received: 24 December 2025 / Revised: 26 January 2026 / Accepted: 27 January 2026 / Published: 1 February 2026

Abstract

Modern Standard Arabic (MSA) and the many regional dialects differ substantially in vocabulary, morphology, and pragmatic usage. Most available annotated resources are in MSA, and zero-shot transfer from MSA to dialectal tasks suffers a large performance drop. This paper addresses generalised cross-dialectal Arabic question answering (QA), where the context and the question are written in different Arabic varieties. We propose a training-free augmentation framework that generates code-mixed questions to bridge lexical gaps across Arabic varieties. The method produces semantically faithful, balanced code-mixed questions through the following two-stage procedure: lexicon-based partial substitution with semantic similarity and substitution-rate constraints, followed by fallback neural machine translation with word-level alignment when needed. We also introduce automated multidialectal lexicon construction using machine translation, embedding-based alignment, and semantic checks. We carry out our evaluation in a zero-shot setting, where the model is fine-tuned only on MSA and then tested on dialectal inputs using ArDQA, covering five Arabic varieties and three domains (SQuAD, Vlogs, and Narratives). Experiments show consistent improvements under context-question dialect mismatch as follows: +1.09 F1/+0.87 EM on SQuAD, +1.54/+1.25 on Vlogs, and +2.75/+2.27 on Narratives, with the largest gains for Maghrebi questions in Narratives (+12.13 F1/+8.45 EM). These results show that our method improves zero-shot cross-dialectal transfer without fine-tuning or retraining.

Graphical Abstract

1. Introduction

Arabic comprises multiple varieties, including Modern Standard Arabic (MSA) and numerous regional dialects that differ in phonology, morphology, vocabulary, and pragmatics [1,2,3]. In contrast to Arabic dialects, MSA has received considerable attention in natural language processing (NLP). Several labelled resources and large language models (LLMs) developed for Arabic primarily target MSA texts [4,5,6,7]. While MSA dominates most labelled resources, downstream applications frequently operate on dialectal Arabic inputs [8,9,10,11]. As most annotated resources are in MSA, models trained on MSA often generalise poorly to dialectal inputs [12,13]. Therefore, robust cross-dialectal Arabic understanding remains a central challenge for Arabic NLP. Moreover, zero-shot transfer from MSA to dialectal tasks typically suffers a substantial performance drop [8,12,14]. Recent work on cross-dialectal translation has also shown that large language models struggle with dialects that lack publicly available data [15]. These findings highlight the need for methods that bridge lexical and semantic gaps between Arabic varieties in various NLP tasks.
Extractive question answering (QA) models identify and extract exact answer spans from a given context. The context may take the form of a text passage, a table, or even an HTML page [16,17,18]. In generalised cross-dialectal QA, where the context is written in one Arabic variety while the question is posed in another variety, such mismatches introduce lexical and semantic gaps that degrade answer span extraction. Models trained on MSA often misinterpret dialectal questions and frequently fail to align them with the context [12]. A practical challenge is that dialect-specific QA training data are often unavailable, especially for lower-resource varieties, making additional supervised adaptation infeasible. In such settings, an attractive alternative is to reduce mismatch at test timeby rewriting the input question to better match the context variety without retraining the QA model. However, naive rewriting risks changing the question meaning and can introduce incorrect lexical cues. This motivates a controlled code-mixing strategy that injects limited context-dialect signal while explicitly preserving semantic fidelity. To address this setting, we propose a test time code-mixed augmentation method that rewrites questions into balanced code-mixed forms closer to the context variety, while preserving semantic fidelity. Our key idea is to inject only the minimal context-dialect signal required for alignment, using controlled lexical substitution with explicit fidelity constraints. We can summarise our contributions as follows:
  • We proposed a novel two-stage code-mixed augmentation framework. It first attempts lexicon-based partial substitution with balanced substitution and semantic similarity constraints, and it then falls back to neural machine with embedding-based word alignment when needed.
  • We introduce an automated pipeline for building multidialectal Arabic lexicons using forward/back translation, embedding-based alignment, and SBERT-based fidelity/consistency checks.
  • We provide a comprehensive evaluation of generalised zero-shot cross-dialectal transfer in Arabic QA by applying our proposed code-mixed data augmentation method and comparing it with an MSA-only QA baseline on ArDQA [12], a parallel QA dataset that covers five Arabic varieties and three domains (SQuAD, Vlogs, and Narratives)
The remainder of this paper is organised as follows. Section 2 reviews prior work on Arabic extractive QA and code-mixed data augmentation, and Section 3 presents our two-stage augmentation framework and lexicon construction pipeline. Section 4 and Section 5 describe the experimental setup and results, while Section 6 analyses findings and errors before we conclude in Section 7.

2. Related Work

2.1. Arabic Extractive QA Models

The field of Arabic extractive QA has undergone significant transformation over the past decade. It has evolved from classical rule-based approaches to advanced neural architectures. This section provides a comprehensive overview of the progress in Arabic extractive QA systems.
The early development of Arabic extractive QA systems relied primarily on rule-based methods and traditional information retrieval techniques. These systems depended on retrieval strategies and predefined linguistic rules to perform key tasks such as question analysis, passage retrieval, and answer extraction [19,20]. A key characteristic of these early systems was their focus on factoid questions. They were typically evaluated on small test sets developed by individual research groups, without standardised benchmarks. Additionally, these systems were limited by their inability to process complex linguistic phenomena and their reliance on handcrafted rules [19,20,21]. In [22], the authors provided one of the first comprehensive surveys of Arabic question answering systems.
The transition from classical to neural approaches began with the adoption of attention-based models. The Bidirectional Attention Flow (BiDAF) [23] was among the first neural architectures applied to Arabic extractive QA [24]. The BiDAF architecture followed a hierarchical, multi-stage process consisting of character embedding, word embedding, contextual embedding, attention flow, modelling, and output layers. In [24], the BiDAF model achieved 32% exact match (EM) and 32% F1 on the AQAD dataset.
Sequence-to-sequence (Seq2Seq) models were also explored as baseline approaches [25]. The experiments evaluated different recurrent neural networks such as long short-term memory (LSTM) and gated recurrent unit (GRU) architectures. However, these models consistently underperformed compared to attention-based architectures such as BiDAF. Seq2Seq models exhibited a substantial performance gap relative to human performance, with human annotators achieving 42% EM on the ASER dataset [25], while the best Seq2Seq model achieved only 3.6% EM. In contrast, BiDAF nearly matched human performance at 38% EM.
The emergence of transformer-based models marked a major shift in Arabic extractive QA. The Bidirectional Encoder Representations from Transformers (BERT) architecture emerged as the dominant framework, achieving state-of-the-art performance across multiple Arabic extractive QA datasets [16,26,27,28]. The development of pretrained models specifically designed for Arabic significantly advanced the field. AraBERT [4], developed for Arabic text processing, became a foundational architecture for Arabic extractive QA in numerous studies [6,24,28,29,30]. For example, AraBERTv0.2-large achieved the best performance on ArQuAD [31], with an EM of 68.95% and an F1 of 87.15%. Nevertheless, this performance remained below human levels (86.0% EM and 95.5% F1). Several comparative studies have evaluated different Arabic transformer-based models across various extractive QA datasets. In [32], AraBERTv1 achieved the highest overall performance, with EM and F1 scores of 76.50% and 81.77%, respectively, on the Arabic WikiReading test set. AraBERTv1 outperformed multilingual BERT due to its domain-specific pretraining on a large Arabic corpus. This dedicated training allowed the model to capture the linguistic nuances of Arabic more effectively. Recent developments in Arabic NLP have leveraged more advanced pretraining strategies. AraELECTRA [33], based on the ELECTRA pretraining approach [34], replaces the traditional masked language modelling objective with replaced token detection. Rather than predicting masked tokens, the model learns to distinguish between original and artificially replaced tokens in the input sequence. This strategy allows the model to learn from all tokens instead of only the masked ones, leading to more efficient and effective training. AraELECTRA has been successfully applied to Arabic QA tasks, achieving competitive performance [31,35].

2.2. Code-Mixed Augmentation for NLP

Code-mixing refers to switching from one language to another within a single utterance or within the same spoken or written text [36]. It presents distinct difficulties for various NLP tasks including QA [37,38,39]. For example, Chandu et al. [37] created a crowd-sourced factoid QA dataset in three mixed-language pairs (Hindi–English “Hinglish”, Telugu–English “Tenglish”, and Tamil–English “Tamlish”), resulting in, 1694 Hinglish, 2848 Tamlish, and 1391 Tenglish QA pairs. Although this manual construction yields naturally code-switched questions, it is highly labour-intensive. This has motivated a range of automatic code-mixed data augmentation methods to enrich training data for numerous languages, including those that are low-resource and morphologically rich [40,41,42].
One line of research uses lexical substitution and hand-crafted linguistic rules to produce mixed-language text. Sabty et al. [43] introduced a straightforward Arabic–English code-switching augmentation method for Arabic named entity recognition, achieving a modest F-score gain of 1.51% [42]. Pratapa et al. [44] leveraged linguistic theory (e.g., constraints on where switches may occur) to generate code-mixed sentences from parallel English–Spanish corpora.
More recent work explores learning-based code-mixing augmentation, often to improve cross-lingual transfer. Qin et al. [45] proposed CoSDA-ML, a framework that fine-tunes a multilingual BERT on dynamically generated code-switched data across many languages. By mixing languages within sentences (without relying on parallel corpora), this approach encourages the model to align representations across languages. CoSDA-ML achieved significant gains on zero-shot cross-lingual tasks including sentiment classification and natural language inference (NLI). Similarly, Khanuja et al. [46] showed that fine-tuning multilingual models on synthetic code-mixed examples yields the best performance on code-switched QA and NLI in their GLUECoS benchmark, outperforming both zero-shot and monolingual-trained baselines. These studies demonstrate that introducing code-mixed training instances can substantially boost cross-lingual understanding in NLP systems.
Another direction is generating code-mixed text using model-based algorithms. Hamed et al. [41] investigated Arabic–English code-switching data augmentation through lexical substitutions. They contrasted random switching strategies with learned switching strategies. Their results show that using a seq2seq model to predict optimal switch points yields more natural mixed sentences than random token replacement, as verified by human evaluations. Incorporating these synthetic code-switched samples into training data delivers substantial downstream improvements, including a 34% decrease in language-model perplexity, gains of +4.0–5.1 BLEU points for machine translation, and a 5.2% relative reduction in word-error rate (WER) for speech recognition.

Differences with Existing Studies

Despite significant progress, Arabic extractive QA continues to face several challenges. The scarcity of large-scale annotated datasets suitable for low-resource settings remains a key limitation. The coexistence of multiple Arabic varieties, including Classical Arabic, MSA, and various dialects, adds further complexity to model development. Moreover, the rich morphological structure of Arabic continues to provide difficulties for neural models, particularly when handling dialectal or noisy text.
Existing cross-dialectal Arabic QA work is limited. Our investigation revealed that only a few studies [12,47] have investigated cross-dialectal Arabic QA. However, the TyDiQA-WANA dataset, in [47], includes four Arabic dialects (Algerian, Egyptian, Iraqi, and Jordanian) but deliberately pairs these dialectal questions with passages from Arabic Wikipedia, which are written in MSA. Therefore, it only supports “dialect-to-MSA” scenarios and cannot investigate the more general case where both the question and context come from different dialects. The focus of the study was on the situations where users may pose questions in dialectal Arabic while seeking information from MSA sources. The constructed dataset benchmark cannot be utilised effectively for investigating cross-dialectal Arabic QA, where contexts can be in other Arabic varieties, not only MSA. The recently proposed ArDQA benchmark [12] provides the first parallel QA dataset across five Arabic varieties (Egyptian, Gulf, Levantine, Maghrebi, and MSA) and three domains (SQuAD-style text, vlogs, and narratives). Native speakers translated contexts and questions into each variety and aligned answer spans. To establish baselines, the author of [12] fine-tuned three MSA-trained transformers (AraELECTRA, CAMeLBERT-MSA, and AraBERT) on an MSA QA corpus and then tested them in zero-shot and generalised cross-dialectal settings. Their results revealed substantial performance drops, especially when the context and question belong to different dialects. Therefore, the study highlights the need for methods that bridge lexical and semantic gaps across various Arabic varieties.
Our work differs from both of these studies in two key ways. First, we handle the fully generalised cross-dialectal scenario, where both the question and context may belong to any pair of Arabic varieties, not just dialect-to-MSA. Second, and most importantly, we propose a code-mixed data-augmentation framework that actively bridges lexical and semantic gaps between dialects to enhance the generalisation in zero-shot transfer. It automatically constructs multidialect lexicons and injects controlled amounts of context-dialect vocabulary into questions, validated via semantic fidelity checks and using neural machine translation and embedding-based embeddings when needed. Our method yields balanced code-mixed questions that align more closely with the target context.

3. Methodology

This section describes our proposed method for enhancing generalised cross-dialectal transfer performance in Arabic question answering. Specifically, our approach addresses scenarios where the context is in one Arabic variety, while the question is in a different variety. Generally, the approach relies on partially substituting words in the question with their counterparts in the Arabic dialect of the context. It systematically augments Arabic questions by generating diverse high-quality code-mixed questions. The approach helps bridge the lexical and semantic gaps between Arabic dialects, facilitating better alignment between questions and context. To this end, it integrates the following two primary methods: lexicon-based partial substitution, and neural machine translation with word-level alignment in an adaptive workflow. Figure 1 shows the general framework of the proposed method.
Initially, multidialectal Arabic lexicons are developed, and then these lexicons are used to perform lexicon-based partial substitution on the original Arabic questions. Following this, the method employs semantic validation measures to assess how well the modified questions maintain their original meaning and remain logically coherent and understandable after modification. In addition, a balanced-substitution constraint is enforced, requiring that the proportion of replaced tokens remain between 20% and 60%. Candidates with fewer than 20% substitutions are too close to the original question to provide meaningful additional lexical overlap with the context, whereas candidates with more than 60% substitutions tend to behave more like full translations and are more vulnerable to lexicon and alignment noise. Therefore, the 20–60% band aims to preserve enough of the original wording of the question variety while injecting enough tokens from the context variety to be useful at test time. In SQuAD-style domains, where the context variety is MSA and the question variety is already very close to MSA, the rewritten question may occasionally become almost fully MSA-like. We consider this acceptable, since the primary goal is to improve lexical alignment between the question and the MSA context variety rather than to enforce a fixed degree of mixing in every individual question. Questions that meet both criteria are accepted as final code-mixed questions. If a question fails the validation, the lexicon-substituted version is discarded and the original question is passed to the neural machine translation with word-level alignment phase. Further details regarding each phase are provided in the subsections below.
Although our proposed code-mixed data augmentation method was developed to improve generalised cross-dialectal transfer in Arabic question answering, the procedure itself is inherently task-agnostic. Its ability to automatically generate balanced code-mixed versions of any text dataset makes it adaptable for diverse applications within NLP.

3.1. Lexicon Construction

This section explains the novel approach used in order to create an initial multidialectal Arabic lexicon between five Arabic varieties, namely, Egyptian, Gulf, Levantine, Maghrebi, and MSA. The proposed method involves a systematic and automated pipeline that integrates various translation models, embedding-based alignments, and semantic validation procedures to ensure the reliability of lexical mappings between MSA and various Arabic dialects. Figure 2 summarises the steps followed to create the lexicons.
MSA serves as the central Arabic variety, used to gather initial words which are then translated into four other Arabic dialects. Wikipedia serves as the source for collecting these words due to its broad coverage of diverse topics and domains. The process of creating the initial lexicon was conducted on the 20 March 2025 Arabic version of the Wikipedia dump (https://dumps.wikimedia.org/arwiki/, accessed on 10 August 2025). Then, we use WikiExtractor [48] in order to discards markup/templates and extract plain text. Arabic text extracted from Wikipedia articles undergoes preprocessing steps, including diacritics stripping which involves removing the short vowel marks. The preprocessing steps also include orthographic normalisation where Arabic letters written in interchangeable orthographic forms are converted into a single consistent form. For example, converting all forms of Alif to a simple bare Alif. The aforementioned two preprocessing steps are important to standardise the text and reduce sparsity in the vocabulary. Then, we remove punctuation and non-Arabic characters. Finally, we apply simple tokenisation, the process of splitting the text into individual words based on whitespaces.
Following preprocessing, tokens undergo frequency-based selection to ensure lexicon construction is initially based on common lexical tokens and their associated sentences. Specifically, all tokens resulted from the preprocessed text are ranked based on their frequency of occurrence and only the top 500 most frequent tokens are selected. This initial list serves as a foundational resource. However, later, during the process of generating code-mixed augmented questions, the lexicon dynamically expands as additional tokens within contexts are identified, thus progressively enhancing the lexicon’s coverage.
For each identified top word, we select its associated sentence from the Wikipedia corpus by adopting the following steps:
  • Gathering candidate sentences: All sentences containing the identified top word within the corpus are initially collected.
  • Filtering candidate sentences: Short sentences (fewer than five words) are discarded. Short sentences usually lack sufficient context for accurate translation and alignment.
  • Selecting optimal sentence: From the remaining candidate sentences, the shortest sentence is chosen. This choice provides enough context for accurate machine translation without introducing unnecessary complexity or ambiguity.
The aforementioned steps ensure that each word selected for the lexicon is associated with a specific example sentence. This helps in accurate translation and semantic verification later on. That is, the translation process begins with two key inputs for each lexical entry as follows:
  • A source token, representing the word for which dialectal Arabic mapping is desired.
  • A corresponding source sentence, providing contextual information to facilitate accurate translation and alignment.
Forward translation: The source sentence in MSA undergoes forward translation into the target dialect (e.g., Gulf) using a neural translation model. The resulting translated sentence, referred to as the target sentence, provides a contextualised counterpart of the source sentence in the target Arabic dialect.
After translation, an embedding-based alignment algorithm is conducted on the pair of source and target sentences. The primary purpose of this step is to precisely identify the target token in the target sentence that semantically corresponds to the original source token. Accurate token-level alignment is crucial to establish reliable lexical mappings. The alignment algorithm exploits transformer-based contextual embeddings obtained from models trained on texts in MSA and various Arabic dialects. A detailed description of the algorithm is provided in Section 3.2 and outlined in Algorithm 1.
Algorithm 1: Embedding-based alignment
Information 17 00139 i001
Back translation: The target sentence is translated back into the original Arabic variety of the source sentence, generating a back-translated sentence. This step helps evaluate the consistency and reliability of the initial forward translation.
The embedding-based alignment algorithm (see Section 3.2, Algorithm 1) is applied again, this time to align the source sentence with the back-translated sentence. This alignment identifies the back-translated token (referred to in the figure as “back_token” for brevity) aligned to the original source token, providing additional confirmation of lexical consistency throughout the translation process.
Semantic validation: Semantic validation involves two complementary assessments to ensure the semantic quality and reliability of the lexicon entries as follows:
  • Semantic fidelity ( S i m f i d ): Semantic fidelity measures the semantic closeness between the original source sentence and the forward-translated (target) sentence. It evaluates how well the forward-translated (target) sentence preserves the meaning of the original source sentence [49,50].
  • Round-trip consistency ( S i m c o n s ): Round-trip consistency measures the semantic closeness between the original source sentence and the back-translated sentence. It evaluates whether meaning is preserved through a two-step transformation (i.e., translating a sentence from a source dialect to a target dialect and then back to a source dialect) [51,52].
Both semantic validation measures (i.e., semantic fidelity and round-trip consistency) are computed using cosine similarity between sentence-level embeddings produced by the Sentence-BERT (SBERT) model [53]. In general, given two sentence embeddings a and b, cosine similarity is computed as follows:
Cosine   Similarity ( a , b ) = a · b a b = i = 1 d a i b i i = 1 d a i 2 i = 1 d b i 2 .
where d represents the dimensionality of the sentence embeddings produced by the Sentence-BERT model.
Although both semantic validation measures share the same mathematical formulation, they differ in the pairs of sentences they evaluate. For semantic fidelity ( S i m f i d ), embeddings from the original source sentence and the forward-translated target sentence are compared. For round-trip consistency ( S i m c o n s ), embeddings from the original source sentence and the back-translated sentence are compared. The use of both semantic validation measures helps in checking different dimensions of semantic integrity in the lexicon creation process.
A higher semantic fidelity score (close to 1.0) indicates excellent semantic preservation, indicating a reliable translation for lexicon inclusion. Similarly, a high round-trip consistency score indicates that the source and its back-translation are semantically aligned, providing evidence of cycle-consistency.
Validation criteria: Lexicon entries undergo strict validation based on semantic thresholds to determine their acceptance into the final multidialectal Arabic lexicons.
  • Entries (i.e., source token and target token) are automatically accepted if they fulfil either of the following conditions:
    High semantic fidelity: S i m f i d 0.9 .
    Moderately high scores in both round-trip consistency and semantic fidelity: S i m c o n s 0.85 and S i m f i d 0.85 .
  • Entries that do not meet these conditions are marked for human review in order to ensure human oversight for uncertain cases.

3.2. Embedding-Based Alignment Algorithm

Embedding-based alignment is used to identify corresponding words between sentence pairs by comparing their contextual embeddings produced by a transformer-based model trained on texts from various Arabic varieties.
Below, the embedding-based alignment algorithm is described in detail using general notation. For simplicity and clarity, the sentences involved are referred to as the source sentence (S) and the translated sentence (T).
Algorithm 1 illustrates the embedding-based alignment, an unsupervised word-alignment technique that leverages contextual embeddings.
Implementation details for reproducibility (word-level alignment): We use MARBERT to obtain contextual representations, extracting embeddings from the 8th hidden layer (0-indexed). Since MARBERT applies subword tokenisation, we perform alignment at the word level by aggregating subword embeddings that belong to the same original word as follows: for each word, we compute the mean of its subword vectors to obtain one word embedding. We exclude special tokens (e.g., [CLS] and [SEP]) and padding tokens using the attention mask. Alignment is computed in the direction S T (many-to-one is allowed) by selecting, for each source word, the target word with maximum cosine similarity, while ties are broken by choosing the smallest target index. We keep an aligned pair only if its similarity is ≥ θ (we set θ = 0.45 , see experimental settings in Section 4.5).
The inputs, in addition to the source sentence (S) and translated sentence (T), are layer , which is the transformer layer selected for extracting hidden states, and threshold θ , which is a similarity cutoff value specifying acceptable alignments. The output is a set P containing pairs of aligned token indices, where each pair represents a mapping from a source token to translated token. For example, [ ( 0 ,   0 ) ,   ( 1 ,   2 ) ,   ( 2 ,   3 ) ] indicate that source token index 0 aligned to translated index 0 and source index 1 aligned to translated index 2 and so on.
The sentences S and T are first encoded using a transformer-based model. The model produces hidden states (embeddings capturing contextual meaning) at multiple layers. We specifically extracted the hidden states from the selected layer . The resulting matrices are H S , the hidden states matrix for sentence S with dimensions | S | × d , and H T , the hidden states matrix for sentence T with dimensions | T | × d , where | S | and | T | represent the token counts for each sentence, and d is the dimensionality of the hidden state embeddings. By specifying output_hidden_states = True, we are asking the model to return all of its layer-by-layer representations, not just the final output. This is necessary because our alignment algorithm requires extracting embeddings from an intermediate layer. Lower layers lack sufficient context, while top layers are too specialised. Therefore, using lower layers or only the final layer is insufficient [54].
The special tokens introduced by the transformer such as [ C L S ] and [ S E P ] are removed from H S and H T in order to ensure that only meaningful and context-relevant tokens remain for accurate alignment. Then, each embedding vector (i.e., each row in matrices H S and H T ) is normalised to have unit length in order to ensure that comparisons via cosine similarity are not affected by magnitude differences as follows:
H ^ S [ i ] = H S [ i ] H S [ i ] , H ^ T [ j ] = H T [ j ] H T [ j ]
The normalised embeddings are then used to compute a similarity matrix S i m , where each entry Sim i , j represents the cosine similarity between token i from the source sentence and token j from the translated sentence as follows:
Sim = H ^ S × H ^ T
The algorithm iterates over each source token (row in S i m ). For each source token i, the algorithm identifies the most similar translated token j * , having the highest similarity score, as follows: j * arg max j Sim i , j
If the similarity score exceeds the predefined threshold θ , the pair ( i ,   j * ) is added to the alignment set P .

3.3. Proposed Code-Mixed Augmentation for QA

This section details the proposed two-stage pipeline for Arabic code-mixed data augmentation, which produces questions containing words from two Arabic varieties while preserving the original intent and meaning. Given an input question written in some Arabic variety, called the source variety V s , the pipeline generates a code-mixed version by partially substituting tokens with counterparts drawn from a different mixing variety ( V m ). We use source variety ( V s ) to refer to the variety of the original question. The mixing variety ( V m ) is the other variety from which replacements are drawn. Figure 3 illustrates how our code-mixed data augmentation method works. It takes original questions and transforms them into code-mixed questions.
Lexicon-Based Partial Substitution: We begin with an original question written in the source variety ( V s ) and a second variety, called the mixing variety ( V m ), from which we will draw replacements. The algorithm starts by applying preprocessing steps to remove all Arabic diacritics and punctuation marks. It also applies orthographic normalisation, standardizing word formats to prevent missed lexicon matches. Then, the original question is split into tokens, and each word is looked up in a V s V m lexicon. When a mapping exists, the V s word is replaced by its V m counterpart. When no mapping is found, the original word is kept. The method intentionally performs only a partial substitution, ensuring the number of replaced words does not exceed approximately 60% of the total tokens in the original question as the method’s goal is to mix varieties, not to fully convert the question.
After substitution, the algorithm computes two important measures to validate the candidate code-mixed question (i.e., modified question) produced by lexicon partial substitution. The first measure is lexical change percentage (LSP), which measures the proportion of substituted words relative to the total original words. The second is semantic similarity (SemSim), which assesses how closely the candidate code-mixed question aligns semantically with the original. We then apply the validation criteria that the candidate is accepted only if 20 %     L S P     60 % and S e m S i m     0.65 . We provide extended, step-by-step examples of accepted/rejected code-mixed candidates and how LSP/SemSim preserve semantic fidelity in Appendix B (Figure A1). The semantic similarity is computed using the cosine similarity between sentence embeddings of the original and candidate questions (see Section 3.1 for a detailed explanation and formulas regarding semantic validation). This explicit limitation of substituting no more than approximately 60% of the total tokens specifically intended to produce code-mixed questions with balanced Arabic dialect representation and semantic coherence. If the candidate passes, it is released as a final code-mixed question. If it fails, the modified question is discarded and the original question is sent to an alternative phase, which is neural machine translation with word-level alignment.
Neural Machine Translation and Word-Level Alignment: When the initial lexicon-based partial substitution does not produce an acceptable code-mixed text (i.e., fails to satisfy the lexical substitution and semantic similarity criteria), the algorithm employs a fallback approach involving neural machine translation (NMT) to obtain a full translation of the original question V s V m . The algorithm uses a transformer-based translation model to obtain a full translation of the original question. Translation here is instrumental as it provides a parallel sentence that allows to identify reliable word-level alignments between V s and V m .
After obtaining the fully translated question, the algorithm establishes a word-level alignment between words in the original question and their corresponding translated counterparts. To extract these alignments, we apply a specialised Arabic transformer model and reuse the embedding-based alignment algorithm described in Section 3.2 (see Algorithm 1). In brief, the alignment algorithm runs a specialised Arabic transformer model which generates contextualised numeric representations (embeddings) for each word in both questions. These embeddings capture semantic information of words based on their context. Then the algorithm removes special markers, normalises those embeddings, and computes a similarity matrix between every source word and every translated word. For each source word it selects the best-matching translated word after checking if the similarity exceeds a predefined threshold. Finally, the pair is recorded as an aligned word pair.
Code-Mixed Sentence Generation: After alignment between source and translated questions, the algorithm proceeds to generate a code-mixed question through partial substitution of words, guided by the established word alignments. To ensure the generation of balanced sentences, the algorithm randomly selects approximately half and never exceeding 60% of the total words from the source question for replacement. Each randomly selected source word is replaced by its aligned translated counterpart as identified previously through the alignment process. This creates a new question composed of both original words and substituted translated words, resulting in a candidate code-mixed question. The process repeats iteratively, creating multiple candidate code-mixed questions, each time randomly choosing a different subset of source words for substitution. This process of random sampling promotes lexical diversity in the augmented data, while the alignments ensure substitutions remain context-appropriate. After each iteration, the candidate code-mixed question is evaluated according to the following two predefined criteria: percentage of substituted words (LSP) and cosine-based semantic similarity to the original question (SemSim). The pipeline accepts the first candidate that satisfies LSP = 20–60% and SemSim ≥ 0.65, and the iterative process stops immediately.

4. Experimental Setup

In this section, we present the evaluation metrics, experimental settings, and datasets used in our generalised zero-shot cross-dialectal experiments to evaluate our proposed method (code-mixed data augmentation) and compare it against the baseline on the ArDQA benchmark [12].

4.1. Evaluation Metrics

Following the SQuAD machine reading comprehension benchmark [55], evaluation for extractive QA is typically based on lexical matching between the predicted answer span and the gold answer. We therefore report two standard metrics as follows:
Exact Match (EM). A strict, binary metric that assigns a score of 1 if the predicted answer exactly matches the gold answer and 0 otherwise. EM thus measures the proportion of questions for which the model recovers the gold answer span exactly.
EM i = 1 , if a ^ i = a i 0 , otherwise
Aggregated over a dataset of N questions, EM is the mean of these indicator values, typically reported as a percentage as follows:
EM = 1 N q = 1 N EM q
F1 Score. A more forgiving metric that gives partial credit for overlapping tokens between the prediction and the gold answer. Following [55], both prediction and gold answer are treated as bags of tokens, and F1 is computed as the harmonic mean of token-level precision and recall. This metric captures how well the predicted span overlaps with the gold span even when they are not identical.
Let P denote the bag of tokens in the prediction and G the bag of tokens in the gold answer. The number of overlapping tokens between P and G is computed as follows:
M = w ( P G ) min ( count P ( w ) , count G ( w ) ) .
At the token level, we compute Precision as the fraction of predicted tokens that are correct and Recall as the fraction of gold tokens that are recovered as follows:
Precision = M | P | , Recall = M | G | .
where | P | and | G | represent the sizes (total token counts) of P and G, respectively. The token-level F1 score is then calculated as the harmonic mean of precision and recall:
F 1 = 2 · Precision · Recall Precision + Recall .
The official, widely used evaluation script for SQuAD v2.0 includes preprocessing operations such as stripping ASCII punctuation and removing extra spaces. For Arabic, we used a slightly modified version of the SQuAD v2.0 evaluation script to better handle Arabic text (https://huggingface.co/ZeyadAhmed/AraElectra-Arabic-SQuADv2-QA accessed on 10 August 2025; https://github.com/zeyadahmed10/Arabic-MRC/blob/main/evaluatev2.py accessed on 10 August 2025). A brief inspection showed that the modifications mainly involve the addition of an Arabic text preprocessor (AraBERT Preprocessor). This preprocessor performs standard Arabic text normalisation, including removing diacritical and elongation marks, normalising letter variants (e.g., different forms of Alif), and preserving Arabic punctuation marks such as the Arabic comma and the Arabic question mark while separating them with spaces. In our setup, we retained all these preprocessing steps except that we removed Arabic punctuation marks entirely.

4.2. Datasets

In our experiments, we use ArDQA, a parallel, multi-domain benchmark for cross-dialectal Arabic extractive QA [12]. ArDQA provides contexts, questions, and answer spans in five Arabic varieties (Egyptian (EGY), Gulf (GLF), Levantine (LEV), Maghrebi (MGR), and MSA), spanning three domains: SQuAD-style texts, lifestyle vlogs, and cultural narratives. Because ArDQA is parallel across five varieties, we distinguish between (i) parallel QA triples (unique underlying items shared across varieties) and (ii) individual QA triples (parallel × 5). In total, ArDQA contains 8150 individual QA examples: 499 parallel triples from a revised Arabic-SQuAD sample (2495 individual triples), 607 parallel triples from lifestyle vlogs (3035 individual triples), and 524 parallel triples from narrative transcripts (2620 individual triples). Each domain is split into development and test sets as follows: ArDQA-SQuAD uses 655/1840 individual triples (dev/test), ArDQA-Vlogs uses 855/2180, and ArDQA-Narratives uses 800/1820. To clarify the scale of the experimental pipeline, Table 1 summarises the training and evaluation set sizes.
We first fine-tune the MSA QA baseline on the training split only of Arabic-SQuADv2.0 [35] (76,840 QA triples). We then evaluate both the baseline and the proposed inference-time question adaptation method on the ArDQA test sets under generalised zero-shot cross-dialectal transfer. The ArDQA development sets are used only for hyperparameter tuning of the MSA QA model (i.e., they are not used as additional supervised training data). Table 2 reports the corresponding development (validation) performance per domain.

4.3. Dataset Preprocessing

The data were preprocessed before carrying out experiments and training models in order to standardise the text and reduce vocabulary sparsity. This normalisation is applied to the text used in our pipeline (training/inference), while EM/F1 are computed using the evaluation-script preprocessing described in Section 4.1. The preprocessing pipeline involved removing diacritics and normalising letter variants, such that Arabic letters that can be written in interchangeable orthographic forms were mapped to a single form. For example, all forms of Alif (throughout the paper, Arabic words appearing in the text are represented using Buckwalter transliteration [56]) were normalised to a bare Alif, Alif maqSwrah was mapped to dotted yA’, and tA’ mrbwTh was converted to hA’. The AraNLP library [57] was used to preprocess the data.

4.4. Baseline

To evaluate the effect of our proposed code-mixed data augmentation method on generalised zero-shot cross-dialectal Arabic QA, we compared it against the generalised zero-shot baseline introduced by Althobaiti [12]. To the best of our knowledge, this is the only existing work that systematically investigates cross-dialectal Arabic QA. In their study, Althobaiti evaluated three transformer-based MSA QA models fine-tuned on the Arabic-SQuADv2.0 dataset [35], and they found that an AraELECTRA-based model achieved the best overall performance on ArDQA. AraELECTRA is an Arabic adaptation of the ELECTRA architecture, pretrained using a discriminator-based replaced-token detection objective [33]. When fine-tuned on Arabic-SQuADv2.0 for extractive QA, this model is referred to as AraELECTRA-MSA-QA. On ArDQA, AraELECTRA-MSA-QA constitutes the strongest MSA QA system reported by Althobaiti, and we therefore adopted it as our baseline. We re-implemented their generalised zero-shot cross-dialectal evaluation setting for AraELECTRA-MSA-QA and treated this reproduction as the baseline model in our experiments.

4.5. Experimental Settings

For sentence-level semantic similarity, we used the paraphrase-multilingual-MiniLM-L12-v2 model, a multilingual sentence-embedding model from the Sentence-Transformers family. It maps sentences from more than 50 languages into a shared vector space, such that semantically similar texts are embedded close to each other [53]. The model is trained in the Sentence-BERT (SBERT) framework with knowledge distillation to obtain a compact encoder that preserves the semantic geometry learned by a larger teacher model across many languages [53,58,59].
For neural machine translation, we used the nllb-200-distilled-600M model, a compact sequence-to-sequence Transformer for machine translation across 200 languages, released by Meta’s No Language Left Behind (NLLB) project [60,61]. The “distilled-600M” variant is a dense student model (approximately 600M parameters) trained via knowledge distillation from larger NLLB teachers to provide strong translation quality with substantially lower latency and memory requirements than the largest models [62].
For token-level alignment between the original source sentence and its translation, we used MARBERT [63], a BERT-based masked language model pretrained specifically for Arabic, with a heavy focus on dialectal Arabic from Twitter in addition to MSA. MARBERT follows the BERT-base architecture with 12 Transformer layers and 12 attention heads. When inducing source–target token alignments, we extracted token embeddings from the 8th hidden layer (0-indexed) before computing the similarity matrix. This mid-layer offered a good balance as follows: lower layers overemphasised surface form and lacked sufficient contextual understanding, whereas upper layers were more task-specialised and less stable for word matching. In brief development experiments across layers 6 to 11, layer 8 consistently yielded the best trade-off between alignment precision and coverage. A source–target token pair was accepted only if its cosine similarity exceeded a predefined threshold. We set the token-level acceptance threshold to θ   =   0.45 in the alignment algorithm (see Algorithm 1). This value was selected based on preliminary development experiments aimed at balancing precision and coverage as follows: lower values (below 0.45) produced aligned pairs but increased the risk of incorrect alignments, whereas values at or above 0.45 resulted in fewer aligned pairs and more missing correspondences.
Efficiency and Scalability. In our setting, the augmentation pipeline is applied as a preprocessing step to generate augmented questions prior to evaluation, and therefore it does not add overhead to QA inference. In deployment, Stage 1 (lexicon-based partial substitution with semantic-fidelity validation) can be used as a low-latency online preprocessing step, while the more expensive Stage 2 (NMT + embedding-based alignment) can be invoked selectively (e.g., only when Stage 1 fails to produce a valid candidate), enabling a cost–latency trade-off. Computationally, Stage 1 is lightweight (linear in question length with constant-time lexicon lookups), whereas Stage 2 is dominated by NMT decoding. The alignment step adds a similarity matrix computation that remains small in practice because questions are short. Finally, the augmentation procedure is independent per question, enabling straightforward parallelisation. Neural computations (SemSim/NMT/alignment embeddings) can be executed in batches for efficiency.

5. Results

5.1. Baseline Performance

Table 3, Table 4 and Table 5 report the generalised zero-shot cross-dialectal results of the AraELECTRA-MSA-QA baseline model on the three ArDQA domains (ArDQA-SQuAD, ArDQA-Vlogs, and ArDQA-Narratives). Each table shows F1/EM scores for all combinations of context (rows) and question (columns) varieties. Our re-implementation reproduces the results of Althobaiti [12] on all three domains.
Overall, the baseline model performs best on the ArDQA-SQuAD domain, where the formal, edited texts are structurally close to MSA. Dialect-matched settings (diagonal entries) yield the highest scores, whereas generalised cross-dialectal conditions (off-diagonal entries) show moderate but consistent drops. In line with [12], MSA behaves as the most stable “bridge” variety as follows: when used either as context or as question, it produces comparatively strong performance across other dialects, while Maghrebi questions tend to be the most challenging.
Performance decreases noticeably on ArDQA-Vlogs and is lowest on ArDQA-Narratives. These results reflect the increasing difficulty of spontaneous, conversational, and narrative discourse. Across these domains, MSA remains the most robust variety in both context and question roles, whereas Maghrebi questions again yield the weakest results. These results are consistent with the analysis reported by [12]. In the following subsections, we therefore focus on how our proposed code-mixed data augmentation method handles these patterns and improves over this baseline.

5.2. Performance of the Proposed Method

In this subsection, we analyse how our proposed code-mixed data augmentation method affects generalised zero-shot cross-dialectal performance on ArDQA. For consistency and comparability, we use the same AraELECTRA-MSA-QA model and experimental settings as the baseline model.
Table 6, Table 7 and Table 8 report the results of the proposed method on the three ArDQA domains, and we compare these scores directly with the baseline to quantify the gains from code-mixed training data. To avoid heuristic effect-size categorisation (e.g., labelling Δ > 1 as “notable”), we report all Δ entries in Table 6, Table 7 and Table 8 without threshold-based formatting. Statistical evidence for each off-diagonal pair is provided via paired-bootstrap 95% confidence intervals and Holm–Bonferroni-corrected one-sided p-values in Appendix A (Table A1, Table A2 and Table A3), with an aggregated domain-level summary in Table 9.
Overall, our proposed code-mixed question augmentation method improves performance across the three domains (Table 9), with gains concentrated in dialect-mismatched settings. This improvement is achieved by code-mixing the question with lexical cues from the context dialect, which reduces lexical divergence between the question and context.
In the SQuAD domain, gains are generally modest, with statistical support appearing more often for EM than for F1 after Holm correction (Appendix A). Several dialect-mismatched pairs achieve significant improvements in both metrics, particularly for Maghrebi questions, as follows: Gulf context with Maghrebi questions improves by +2.59 F1 and +1.53 EM, and Levantine context with Maghrebi questions improves by +3.34 F1 and +2.29 EM. Additional pairs show significant EM gains without a corresponding significant F1 gain, such as Egyptian context with MSA questions (+1.53 EM) and Gulf context with Levantine questions (+1.53 EM). We also observe settings where F1 improves significantly but EM does not, for example, MSA context with Gulf questions (+1.24 F1). Overall, the proposed method yields consistent positive trends across many off-diagonal pairs, with the strongest and most statistically supported improvements concentrated in specific dialect-mismatch settings.
In the Vlogs domain, the proposed method yields clear gains in many dialect-mismatched settings, with statistical support more frequently observed for EM than for F1 after Holm correction (Appendix A). For example, Egyptian context with Maghrebi questions improves by +2.14 F1 and +2.23 EM and remains significant for both metrics. Levantine context with Maghrebi questions shows similarly strong gains (+3.23 F1, +1.67 EM), also significant for both metrics. In contrast, some pairs show improvements primarily in EM as follows: Gulf context with MSA questions increases by +2.66 F1 and +1.74 EM, but only the EM gain remains significant after correction. Likewise, Maghrebi context with Gulf questions improves by +1.82 F1 and +1.34 EM, but neither metric remains significant after Holm correction. However, Maghrebi context with Levantine questions yields a significant EM gain (+2.36 EM). Overall, these results indicate that, in Vlogs, code-mixed question augmentation more consistently improves exact span matching (EM), while F1 gains are less uniformly significant across dialect pairs.
The Narratives domain shows the largest relative increases, which is consistent with its being the most challenging domain. Several context–question dialect-mismatched combinations show large gains, and many remain statistically significant after Holm correction (Appendix A). In particular, settings with Maghrebi questions exhibit strong and statistically supported gains as follows: Egyptian context with Maghrebi questions improves by +6.50 F1 and +5.00 EM, Gulf context with Maghrebi questions improves by +6.33 F1 and +5.63 EM, and Levantine context with Maghrebi questions increases by +7.38 F1 and +3.44 EM. Notably, MSA context with Maghrebi questions yields the largest gain, reaching +12.13 F1 and +8.45 EM. In contrast, improvements are generally smaller when Maghrebi serves as the context, reflecting the difficulty of Maghrebi narrative contexts.
The overall results confirm that our proposed method of code-mixed question augmentation consistently improves performance, with the largest improvement in generalised zero-shot cross-dialectal transfer involving Maghrebi questions, and with substantial gains in more difficult domains like narratives.

6. Discussion

The baseline generalised cross-dialectal results across context–question variety combinations reveal systematic weaknesses under dialect mismatch and domain shift. Performance is particularly sensitive to lexical divergence between question and context varieties, and it degrades further when moving from the more formal SQuAD texts to the more informal Vlogs and Narratives domains. These trends motivate explicitly addressing question–context lexical mismatch in a lightweight manner.
Table 3, Table 4 and Table 5 highlight three recurring limitations. First, performance drops substantially under domain shift from SQuAD to Vlogs and Narratives: for instance, the MSA/MSA diagonal decreases from 76.19/61.96 (SQuAD) to 67.01/42.20 (Vlogs) to 43.83/14.05 (Narratives). Second, Maghrebi questions tend to yield the lowest scores in dialect-mismatched settings, as follows: for non-Maghrebi contexts, the MGR question column is typically the lowest (e.g., in Narratives, EGY/MGR = 28.50/7.97 and LEV/MGR = 27.05/6.35 in Table 5. Similar patterns appear in Vlogs and SQuAD in Table 3 and Table 4). Third, Levantine contexts tend to underperform relative to other context varieties, particularly in SQuAD and Narratives (e.g., the LEV context row is generally lower than the EGY/GLF/MSA rows in Table 3 and Table 5).
From a domain perspective, Table 9 shows that aggregate gains are largest in Narratives, followed by Vlogs and SQuAD. This aligns with increasing informality and dialectal variability in the source material, and with the added difficulty of spontaneous conversational and narrative discourse. Appendix A reports per-pair paired-bootstrap confidence intervals and Holm–Bonferroni-corrected p-values (Table A1, Table A2 and Table A3), clarifying which dialect-mismatched settings drive these domain-level trends. Notably, after correction, statistically significant improvements are much more frequent for EM than for F1 across domains, suggesting that the method more consistently helps recover exact spans than uniformly improving partial token overlap.
Our proposed method mitigates these issues by introducing simple lexical adaptation. Specifically, it reduces lexical divergence between dialects, especially in interrogative forms. This interpretation is consistent with Appendix A, where the most robust gains are concentrated in dialect-mismatched pairs with higher lexical mismatch. Figure 4 illustrates four representative test examples in which the baseline fails to extract the correct span, while the proposed code-mixed augmentation succeeds.
In the first example, given that the model used in our experiments was pretrained primarily on MSA and fine-tuned on the MSA Arabic-SQuADv2.0 corpus, the baseline model appears to prefer the most salient, SQuAD-like descriptive pattern in the local neighbourhood of the target mention. When the Maghrebi question asks about fAkhp bAkwry “bacuri fruit”, the model’s attention moves to the region around AlfAkhp AltAnyp bAkwry “The second fruit is bacuri”, where two competing descriptions occur: TEmhA zy Allwz mE AlEsl “It tastes like almonds with honey” (for fAkhp mAry mAry“mari-mari fruit”) and zy Aldhb Al>byD “like white gold” (for fAkhp bAkwry “bacuri fruit”). The baseline consistently prefers the familiar pattern TEmhA zy “tastes like” over the more colloquial hy zy “is like”. Therefore, the baseline incorrectly returns the description of “mari-mari fruit” rather than the correct description zy Aldhb Al>byD “like white gold” for bAkwry “bacuri fruit”.
In the second example (see Figure 4), for duration questions in Maghrebi over MSA contexts, the baseline frequently misinterprets the construction as a “who?” question and returns the name (e.g., Pedro) rather than the correct temporal span (e.g., mn* 20 EAmA “for 20 years”). This reflects a lack of robustness to dialectal time expressions such as mn $HAl hAdy “How long has it been”.
Our proposed code-mixed data augmentation method addresses these issues by partially substituting dialectal tokens in the questions with context-dialect or MSA equivalents while enforcing semantic fidelity and balanced substitution. This produces questions where dialect words are explicitly linked to their MSA or context-dialect forms and share more words with the context sentences. This makes it easier for the model to interpret the question type and select the correct answer span. As a result, the model learns to associate dialectal ways of asking “how is X?” and “how long has Y been…?” with the appropriate answer types (short descriptive phrases or time expressions) and to focus on the right sentences, allowing it to recover the correct gold spans in many cases where the baseline fails.
These improvements largely arise from reducing lexical divergence in short question sentences, particularly in interrogative forms. This is done by randomly replacing a subset of the question’s tokens with counterparts in the context’s dialect. Because question sentences are short and interrogatives carry high syntactic and semantic weight (e.g., what/when/where/why/how…etc.), substituting a few tokens, including interrogatives, can significantly improve the model’s ability to map the question to the context. The effect is strongest in high-mismatch settings (especially when the question is Maghrebi), although Appendix A shows that many non-Maghrebi question varieties also exhibit significant EM gains across multiple pairs. For example, the question ($HAl, “How much/How many”) in Maghrebi is replaced with the MSA interrogative form (km). This substitution makes the interrogative directly recognisable by the MSA QA model and helps in aligning it with dialects that also use this near-MSA form. This pattern is also reflected in the per-pair significance analysis (Appendix A), where the strongest and most consistently significant gains tend to occur in settings involving higher lexical mismatch.
Changing other tokens in the question, rather than interrogatives, also harmonises the question wording with the context’s dialect and enhances the indicators used to locate answer spans. This is illustrated in Example 3 in Figure 4. In Egyptian context with Gulf question w$ EaTt AlEjwz llwld? “What did the old woman give to the boy?”, replacing the Gulf verb EaTt “gave” by the Egyptian equivalent Adt refines the matching evidence for answer spans.
In the generalised cross-dialectal baselines, we observe that Levantine contexts underperform because their long colloquial passages, which contain clitics and discourse particles, may be underrepresented in pretraining. We observed once the questions are code-mixed (e.g., by randomly replacing some tokens in the question with tokens from the context’s dialect), the model no longer has to handle both context noise and question divergence simultaneously (see Example 4 in Figure 4).
In terms of domains, the Narratives domain, where contexts are loosely structured, shows the largest improvements. This is consistent with Table 9, which shows higher mean and median Δ improvements in Narratives compared to Vlogs and SQuAD when aggregating across the 20 dialect-mismatched pairs. This can be partially attributed to the fact that questions in Narratives often contain more dialectal interrogatives and function words that the model does not recognise well. Replacing these forms with those from the context’s variety makes the question intent explicit. By contrast, the SQuAD domain is formal and closer to MSA. As a result, there is less lexical divergence, so code-mixing helps, but only moderately. The Vlogs domain consists of spontaneous speech with fillers and colloquial forms. Therefore, code-mixing helps more than in SQuAD, but the contexts are shorter and more topical, so the gains remain moderate. This demonstrates that even minimal lexical adaptation can substantially reduce the cumulative effects of domain shift and dialect divergence. Appendix A further shows that statistically significant improvements are more frequent for EM than for F1 across many dialect pairs, suggesting that the method more consistently helps the model recover exact spans than uniformly improving partial token overlap.

Qualitative Error Analysis

A qualitative error analysis is performed to better understand the limitations of our proposed code-mixed question augmentation. We manually inspect a set of test examples spanning the three ArDQA domains (SQuAD-style texts, Vlogs, and Narratives) and multiple context-question variety pairs. This analysis allows us to move beyond simple EM/F1 scores and to identify systematic patterns such as answer-type confusion, shallow temporal reasoning, weak use of location cues in narratives, confusion between lexical forms and their meta-descriptions, and discourse-level anaphora resolution errors. Figure 5 presents four representative error cases.
Time Reasoning Failures. In some cases, our proposed method does not help because the error arises from temporal reasoning rather than dialect mismatch. As in example 1 in Figure 5, when the context states that the story spans l ^ AŝnwAt (1933–1935) “three years (1933–1935)” and the question asks “For how many years does To Kill a Mockingbird take place?”, the model selects the start year “1933” instead of the duration l ^ AŝnwAt “three years”. In this example, lexical alignment is already good after code-mixed question augmentation, but the MSA QA model misinterprets the answer type (year vs duration). Also, the model exhibits shallow temporal reasoning. It seems to pick the first important temporal mention (1933). It does not perform basic temporal reasoning over the interval “1933–1935” as three years or connect this interval to the explicitly stated duration “three years”.
Spatial and Narrative Grounding Failures. In example 2 in Figure 5 about the shepherd story, the Levantine question is asked over an Egyptian context. After our proposed code-mixed question augmentation, the Levantine interrogative $w “what” is changed to its Egyptian equivalent Ayh “what”. The remaining three words in the question are largely shared between the two Arabic dialects. However, the model incorrectly predicts “he sat watching the flock”, taken from an earlier sentence. Here, the model focuses on the visual verb “watching the flock” and fails to combine the object and location constraints (“What did the shepherd see in the pit?”). Therefore, dialectal alignment is no longer the main bottleneck. Indeed, such an error highlights a limitation in how the model links questions to specific locations within the narrative context.
Lexical-form Extraction Failures (Form vs. Description). In some cases, our proposed code-mixed questions help the MSA QA model correctly align the question with the relevant sentence in the context. Nevertheless, the model fails to extract the intended lexical form. In example 3 in Figure 5 from the Tuvalu vlog, the Egyptian context states that wdh Ally byqwlwh lmA yrHbwA blgthm: tAlwfA “and this is what they say when they welcome you in their language: talofa”, while the Maghrebi question asks kyfA$ kAyqwlw mrHbA ftwfAlw? “How do they say welcome in Tuvalu?”. After applying our code-mixing algorithm to adapt the Maghrebi question to the Egyptian context, the model correctly focuses on the relevant sentence but predicts the phrase blgthm “in their language” instead of the greeting word tAlwfA “talofa” itself. In this example, the dialectal mismatch between the Egyptian context and the Maghrebi question is resolved by code-mixing. However, the model still prefers a meta-descriptive fragment “in their language” over the actual lexical form required by the question. This indicates that the model is not distinguishing between the target lexical item requested by the question and its surrounding descriptive context, and instead selects a semantically related descriptor.
Discourse-level Anaphora Failures. For example 4 in Figure 5, the Maghrebi question b$nw ky$bhw hAd AlEmlyp? “What does this process resemble?” contains a demonstrative noun phrase hAd AlEmlyp “this process”, which should be resolved to the immediately preceding description ltwsyE sTH Al>rD mlwA>jzA’ mn sTH AlmyAh bAlrmAl “To extend the land area, they fill parts of the water surface with sand”. The comparative phrase zy jzr Alnxyl fy dby “like the Palm Islands in Dubai” is the correct answer to the question. After applying the code-mixing to the question, we resolve the problem of dialect mismatch between Maghrebi and Egyptian by replacing some Maghrebi words in the question with their equivalents in the Egyptian context. This involves changing the Maghrebi word hAd “this” to the Egyptian word dy “this”. Although the dialectal mismatch is removed, the model selects the noun nZArAt “glasses”, taken from the earlier clause HtY Endhm nZArAt mktwb ElyhA ’tgyr AlmnAx fy twfAlw’ “They even have glasses with ’Climate Change in Tuvalu’ written on them”. This span is semantically unrelated to the process being queried and ignores the anaphoric link between hAd AlEmlyp “this process” and the land-filling description. The error thus reflects a failure to track discourse structure and resolve anaphora. The model prefers a salient noun over the event referred to by the demonstrative. Therefore, it seems that this error is not due to dialectal Arabic mismatch.
Error-driven Implications. The error analysis shows that the main challenges for the MSA QA model when applied on informal domains or dialectal Arabic are not only restricted to surface-level token matching. The challenges involve deeper semantic and discourse situations. The model often struggles to align the question with the appropriate answer type (e.g., duration vs. date) to exploit explicit spatial or comparative cues and to correctly resolve references to events or processes within multi-sentence narratives. These findings motivate future improvements focusing on stronger modelling of temporal and spatial reasoning and more explicitly handling the distinction between the required word form and its descriptive explanation in the answer spans. Incorporating such insights into model design, training objectives, or data augmentation strategies is likely to yield more robust cross-dialectal Arabic QA performance than relying on additional data or larger architectures alone.

7. Conclusions and Future Work

This paper introduces a test time code-mixed data augmentation method for generalised zero-shot cross-dialectal Arabic question answering. Starting from an MSA-only QA backbone (AraELECTRA-MSA-QA trained on Arabic-SQuADv2.0), we address the setting where the context and the question come from different Arabic varieties and no additional training data are available. We build multidialectal lexicons via neural machine translation and embedding-based alignment with semantic validation, and we use these lexicons (with an NMT–alignment fallback) to rewrite test questions into balanced code-mixed forms closer to the context variety.
On the ArDQA benchmark, our approach improves on the strongest available generalised zero-shot baseline across all three domains (SQuAD-style texts, Vlogs, and Narratives), with the largest gains under challenging conditions such as Maghrebi questions over non-MSA contexts and in the noisy Vlogs and Narratives domains. These results show that controlled code-mixed question rewriting can mitigate cross-dialectal lexical gaps at test time without retraining or modifying the QA model architecture.
Limitations and Future Directions. Performance remains bounded by the underlying MSA QA model. As discussed in the qualitative error analysis (Qualitative Error Analysis Section), several residual errors are driven by reasoning and discourse phenomena rather than dialect mismatch, including answer-type confusion and shallow temporal reasoning (e.g., duration vs. year), weak use of location/temporal cues in narratives, and imprecise span selection in lexical-form or comparison questions. Future work can address these limitations by incorporating discourse-conscious and temporal/spatial-aware modelling (e.g., coreference-aware representations and answer-type constraints).
A second limitation concerns lexicon coverage. Our lexicon is primarily token-level, which may miss dialectal idioms and multiword expressions and may not fully capture morphology and cliticisation. Coverage can also be uneven across dialects, as follows: lower-resource varieties exhibit fewer standardised written resources and noisier orthographic variation, which reduces the availability and reliability of lexical mappings and may omit region-specific terms. Future work could expand the lexicon with multiword expressions and clitic-aware segmentation, and it could explore adaptive substitution strategies beyond fixed 20–60% substitution bands.
Finally, while we evaluate on extractive QA, the proposed code-mixed augmentation framework is not QA-specific. Similar controlled rewriting (with semantic-fidelity validation and alignment-based projection when labels/spans are required) can be explored for other tasks affected by dialect mismatch, such as text classification, sequence labelling (e.g., named entity recognition), retrieval, and dialogue or generative QA.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The ArDQA dataset used in this study is publicly available through the author’s GitHub repository (https://github.com/Maha-J-Althobaiti, accessed on 20 October 2025). We used release v1.0. The dataset is released with predefined development and test splits.

Conflicts of Interest

The author declares no conflicts of interest.

Appendix A. Significance Analysis for Cross-Dialectal Arabic Extractive QA Transfer

Table A1Table A3 report the paired-bootstrap 95% confidence intervals and Holm–Bonferroni-corrected one-sided p-values for the mean improvement Δ (proposed−baseline) over the 20 off-diagonal dialect pairs (context ≠ question) within each domain, using B = 10,000 bootstrap resamples over questions. We treat results as statistically significant only when p holm < 0.05 .
Table A1. Paired bootstrap significance for off-diagonal dialect pairs on ArDQA-SQuAD. We report the mean improvements Δ (proposed−baseline) in percentage points and Holm–Bonferroni-corrected one-sided p-values across the 20 off-diagonal pairs. In the Sig. column, the left marker refers to ΔF1 and the right marker refers to ΔEM, using (**) for p holm < 0.01 , (*) for p holm < 0.05 , and (.) otherwise. C indicates the context variety and Q the question variety.
Table A1. Paired bootstrap significance for off-diagonal dialect pairs on ArDQA-SQuAD. We report the mean improvements Δ (proposed−baseline) in percentage points and Holm–Bonferroni-corrected one-sided p-values across the 20 off-diagonal pairs. In the Sig. column, the left marker refers to ΔF1 and the right marker refers to ΔEM, using (**) for p holm < 0.01 , (*) for p holm < 0.05 , and (.) otherwise. C indicates the context variety and Q the question variety.
CQnΔF195% CI p holm ΔEM95% CI p holm Sig.
EGYGLF368+0.31[−1.86, 3.05]0.323+0.82[0.00, 1.90]0.049./*
EGYLEV368+0.25[−2.00, 2.80]0.384+0.58[0.00, 1.36]0.136./.
EGYMGR368+0.17[−3.11, 2.70]0.566+0.06[0.00, 0.11]0.760./.
EGYMSA368+1.63[−1.55, 3.65]0.219+1.53[0.54, 2.99]0.002./**
GLFEGY368+1.84[0.36, 4.68]0.046+1.53[0.53, 2.78]0.002*/**
GLFLEV368+1.66[−1.13, 3.97]0.136+1.53[0.55, 2.86]0.002./**
GLFMGR368+2.59[0.33, 3.32]0.04+1.53[0.56, 3.01]0.002*/**
GLFMSA368+1.43[−2.64, 2.19]0.581+0.77[0.00, 1.90]0.047./*
LEVEGY3680.00[0.00, 0.00]1.00+0.05[0.00, 0.15]0.356./.
LEVGLF368+1.43[−1.05, 3.77]0.277+1.30[0.27, 2.71]0.007./**
LEVMGR368+3.34[0.67, 3.43]0.03+2.29[0.82, 3.80]0.006*/**
LEVMSA368+1.39[−1.84, 3.86]0.2480.00[0.00, 0.00]1.00./.
MGREGY368+0.05[−1.94, 3.15]0.330+0.88[0.00, 1.90]0.051./.
MGRGLF368+0.68[−1.47, 3.62]0.19+0.35[0.00, 0.82]0.12./.
MGRLEV368+0.20[−1.41, 3.45]0.17+1.12[0.27, 2.16]0.017./*
MGRMSA368+1.11[−1.66, 3.11]0.273+1.24[0.29, 2.71]0.006./**
MSAEGY368+1.29[−2.15, 2.91]0.40+1.32[0.26, 2.65]0.005./**
MSAGLF368+1.24[0.04, 4.57]0.047+0.24[0.00, 0.81]0.16*/.
MSALEV368+0.16[−1.98, 2.87]0.230+0.28[0.00, 0.79]0.226./.
MSAMGR368+1.01[−2.32, 3.02]0.3470.00[0.00, 0.00]1.00./.
Table A2. Paired bootstrap significance for off-diagonal dialect pairs on ArDQA-Vlogs. We report the mean improvements Δ (proposed−baseline) in percentage points and Holm–Bonferroni-corrected one-sided p-values across the 20 off-diagonal pairs. In the Sig. column, the left marker refers to ΔF1 and the right marker refers to ΔEM, using (**) for p holm < 0.01 , (*) for p holm < 0.05 , and (.) otherwise. C indicates the context variety and Q the question variety.
Table A2. Paired bootstrap significance for off-diagonal dialect pairs on ArDQA-Vlogs. We report the mean improvements Δ (proposed−baseline) in percentage points and Holm–Bonferroni-corrected one-sided p-values across the 20 off-diagonal pairs. In the Sig. column, the left marker refers to ΔF1 and the right marker refers to ΔEM, using (**) for p holm < 0.01 , (*) for p holm < 0.05 , and (.) otherwise. C indicates the context variety and Q the question variety.
CQnΔF195% CI p holm ΔEM95% CI p holm Sig.
EGYGLF436+1.38[−2.31, 5.20]0.230+2.65[1.38, 4.36]<0.001./**
EGYLEV436+1.13[−2.58, 4.88]0.2770.00[0.00, 0.00]1.00./.
EGYMGR436+2.14[0.42, 5.07]0.047+2.23[0.92, 3.90]0.002*/**
EGYMSA436+1.67[−2.44, 4.23]0.301+1.59[0.46, 2.98]0.006./**
GLFEGY436+1.72[−0.91, 6.01]0.067+1.34[0.41, 2.52]0.025./*
GLFLEV436+1.57[−0.38, 5.21]0.0970.00[0.00, 0.00]1.00./.
GLFMGR436+1.93[0.89, 4.68]0.044+1.17[0.32, 2.29]0.007*/**
GLFMSA436+2.66[0.28, 4.20]0.058+1.74[0.69, 3.21]0.009./**
LEVEGY436+1.39[−1.49, 5.06]0.143+1.10[0.23, 2.29]0.045./*
LEVGLF436+2.73[−0.33, 4.31]0.0950.00[0.00, 0.00]1.00./.
LEVMGR436+3.23[0.23, 3.95]0.039+1.67[0.67, 2.66]0.008*/**
LEVMSA436+1.00[−2.27, 4.32]0.279+1.33[0.54, 2.53]0.03./*
MGREGY436+1.45[−3.55, 4.27]0.425+1.12[0.23, 2.29]0.007./**
MGRGLF436+1.82[−3.22, 4.05]0.399+1.34[0.45, 2.52]0.006./**
MGRLEV436+1.18[−2.72, 5.06]0.273+2.36[0.92, 3.67]<0.001./**
MGRMSA436+1.00[−2.25, 5.07]0.214+0.89[0.23, 1.84]0.034./*
MSAEGY436+0.01[−1.89, 5.43]0.168+1.34[0.78, 2.52]0.030./*
MSAGLF436+0.19[−2.51, 4.38]0.292+1.34[0.46, 2.23]0.028./*
MSALEV436+0.88[−1.17, 5.63]0.095+1.75[0.68, 3.21]0.003./**
MSAMGR436+1.63[−1.38, 4.93]0.2510.00[0.00, 0.00]1.00./.
Table A3. Paired bootstrap significance for off-diagonal dialect pairs on ArDQA-Narratives. We report the mean improvements Δ (proposed−baseline) in percentage points and Holm–Bonferroni-corrected one-sided p-values across the 20 off-diagonal pairs. In the Sig. column, the left marker refers to ΔF1 and the right marker refers to ΔEM, using (**) for p holm < 0.01 , (*) for p holm < 0.05 , and (.) otherwise. C indicates the context variety and Q the question variety.
Table A3. Paired bootstrap significance for off-diagonal dialect pairs on ArDQA-Narratives. We report the mean improvements Δ (proposed−baseline) in percentage points and Holm–Bonferroni-corrected one-sided p-values across the 20 off-diagonal pairs. In the Sig. column, the left marker refers to ΔF1 and the right marker refers to ΔEM, using (**) for p holm < 0.01 , (*) for p holm < 0.05 , and (.) otherwise. C indicates the context variety and Q the question variety.
CQnΔF195% CI p holm ΔEM95% CI p holm Sig.
EGYGLF364+5.33[1.51, 9.13]0.061+1.63[0.55, 3.02]0.028./*
EGYLEV364+1.50[−1.27, 6.02]0.190+1.63[0.92, 3.24]0.019./*
EGYMGR364+6.50[2.45, 10.66]0.002+5.00[2.75, 7.14]<0.001**/**
EGYMSA364+0.79[−3.17, 5.25]0.321+1.15[0.28, 2.20]0.043./*
GLFEGY364+1.02[−1.80, 5.26]0.285+1.62[0.66, 3.12]0.022./*
GLFLEV364+1.29[−2.01, 4.60]0.321+1.62[0.54, 3.10]0.025./*
GLFMGR364+6.33[2.19, 10.47]0.001+5.63[3.30, 7.97]<0.001**/**
GLFMSA364+0.62[−3.18, 4.30]0.386+0.54[0.00, 1.37]0.124./.
LEVEGY364+1.41[−1.64, 5.58]0.245+1.24[0.28, 2.75]0.048./*
LEVGLF364+1.59[−1.85, 5.34]0.276+0.42[0.00, 1.24]0.098./.
LEVMGR364+7.38[2.18, 10.45]0.004+3.44[1.92, 5.49]<0.001**/**
LEVMSA364+1.92[0.32, 6.15]0.039+1.42[0.34, 2.71]0.046*/*
MGREGY364+0.45[−3.84, 4.46]0.453+1.11[0.37, 2.17]0.038./*
MGRGLF364+0.70[−2.56, 4.63]0.406+2.89[1.37, 4.95]<0.001./**
MGRLEV364+1.07[−2.83, 4.70]0.315+1.63[0.69, 3.45]0.012./*
MGRMSA364+0.33[−5.15, 3.28]0.673+0.12[0.00, 0.18]0.873./.
MSAEGY364+0.73[−3.61, 4.37]0.433+0.88[0.00, 1.92]0.046./*
MSAGLF364+2.15[0.26, 6.35]0.048+1.89[0.74, 3.35]<0.001*/**
MSALEV364+1.71[−1.74, 5.62]0.259+2.99[1.27, 4.93]<0.001./**
MSAMGR364+12.13[7.75, 16.52]<0.001+8.45[5.77, 11.54]<0.001**/**

Appendix B. Extended Examples of Code-Mixed Question Generation

Figure A1. Extended example of code-mixed question generation (Maghrebi → Egyptian) and semantic fidelity filtering using LSP and SemSim constraints. LSP denotes lexical substitution percentage, SemSim denotes semantic similarity. Arabic examples are accompanied by English glosses.
Figure A1. Extended example of code-mixed question generation (Maghrebi → Egyptian) and semantic fidelity filtering using LSP and SemSim constraints. LSP denotes lexical substitution percentage, SemSim denotes semantic similarity. Arabic examples are accompanied by English glosses.
Information 17 00139 g0a1

References

  1. Althobaiti, M.J. Automatic Arabic dialect identification systems for written texts: A survey. Int. J. Comput. Linguist. (IJCL) 2020, 11, 61–89. [Google Scholar]
  2. Habash, N.Y. Introduction to Arabic Natural Language Processing; Morgan & Claypool Publishers: San Rafael, CA, USA, 2010. [Google Scholar]
  3. Althobaiti, M.J. Creation of annotated country-level dialectal Arabic resources: An unsupervised approach. Nat. Lang. Eng. 2022, 28, 607–648. [Google Scholar] [CrossRef] [Scilit]
  4. Antoun, W.; Baly, F.; Hajj, H. AraBERT: Transformer-based Model for Arabic Language Understanding. In Proceedings of the 4th Workshop on Open-Source Arabic Corpora and Processing Tools, with a Shared Task on Offensive Language Detection; European Language Resources Association: Paris, France, 2020; pp. 9–15. [Google Scholar]
  5. Althobaiti, M.J. A Simple Yet Robust Algorithm for Automatic Extraction of Parallel Sentences: A Case Study on Arabic-English Wikipedia Articles. IEEE Access 2021, 10, 401–420. [Google Scholar] [CrossRef] [Scilit]
  6. Mozannar, H.; Maamary, E.; El Hajal, K.; Hajj, H. Neural Arabic Question Answering. In Proceedings of the Fourth Arabic Natural Language Processing Workshop; El-Hajj, W., Belguith, L.H., Bougares, F., Magdy, W., Zitouni, I., Tomeh, N., El-Haj, M., Zaghouani, W., Eds.; Association for Computational Linguistics: Stroudsburg, PA, USA, 2019; pp. 108–118. Available online: https://aclanthology.org/W19-4612/ (accessed on 10 August 2025).
  7. Ahmed, Z. ZeyadAhmed/Arabic-SQuADv2.0—Dataset. Hugging Face, 2022. Available online: https://huggingface.co/datasets/ZeyadAhmed/Arabic-SQuADv2.0 (accessed on 10 August 2025).
  8. Khalifa, M.; Hassan, H.; Fahmy, A. Zero-resource Multi-dialectal Arabic Natural Language Understanding. Int. J. Adv. Comput. Sci. Appl. 2021, 12, 577–591. [Google Scholar] [CrossRef] [Scilit]
  9. Althobaiti, M.J. An open-source dataset for arabic fine-grained emotion recognition of online content amid COVID-19 pandemic. Data Brief 2023, 51, 109745. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  10. Joshi, A.; Dabre, R.; Kanojia, D.; Li, Z.; Zhan, H.; Haffari, G.; Dippold, D. Natural language processing for dialects of a language: A survey. ACM Comput. Surv. 2025, 57, 149. [Google Scholar] [CrossRef] [Scilit]
  11. Althobaiti, M.J. BERT-based Approach to Arabic Hate Speech and Offensive Language Detection in Twitter: Exploiting Emojis and Sentiment Analysis. Int. J. Adv. Comput. Sci. Appl. 2022, 13, 972–980. [Google Scholar] [CrossRef] [Scilit]
  12. Althobaiti, M.J. ArDQA: A Parallel Multidomain Benchmark for Cross-Dialectal Arabic Question Answering. Preprint 2025. [Google Scholar] [CrossRef] [Scilit]
  13. Althobaiti, M.J. Emotion Recognition in Arabic: A BERT-Based Transfer Learning Approach Leveraging Semantic Information of Online Comments. J. Theor. Appl. Inf. Technol. 2023, 101, 3270–3282. [Google Scholar]
  14. Altakrori, M.H.; Habash, N.; Freihat, A.; Samih, Y.; Chirkunov, K.; AbuOdeh, M.; Florian, R.; Lynn, T.; Nakov, P.; Aji, A.F. DialectalArabicMMLU: Benchmarking Dialectal Capabilities in Arabic and Multilingual Language Models. arXiv 2025, arXiv:2510.27543. [Google Scholar]
  15. Beidas, A.; Ghaddar, F.; Mohi, K.; Ahmad, I.; Abed, S. Cross-dialectal Arabic translation: Comparative analysis on large language models. Front. Artif. Intell. 2025, 8, 1661789. [Google Scholar] [CrossRef] [Scilit]
  16. Lewis, P.; Oguz, B.; Rinott, R.; Riedel, S.; Schwenk, H. MLQA: Evaluating Cross-lingual Extractive Question Answering. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics; Jurafsky, D., Chai, J., Schluter, N., Tetreault, J., Eds.; Association for Computational Linguistics: Stroudsburg, PA, USA, 2020; pp. 7315–7330. Available online: https://aclanthology.org/2020.acl-main.653/ (accessed on 10 August 2025).
  17. Luo, M.; Hashimoto, K.; Yavuz, S.; Liu, Z.; Baral, C.; Zhou, Y. Choose Your QA Model Wisely: A Systematic Study of Generative and Extractive Readers for Question Answering. In Proceedings of the 1st Workshop on Semiparametric Methods in NLP: Decoupling Logic from Knowledge; Das, R., Lewis, P., Min, S., Thai, J., Zaheer, M., Eds.; Association for Computational Linguistics: Stroudsburg, PA, USA, 2022; pp. 7–22. [Google Scholar] [CrossRef] [Scilit]
  18. Elkomy, M.; Sarhan, A. TCE at Qur’an QA 2023 Shared Task: Low Resource Enhanced Transformer-based Ensemble Approach for Qur’anic QA. In Proceedings of the ArabicNLP 2023; Sawaf, H., El-Beltagy, S., Zaghouani, W., Magdy, W., Abdelali, A., Tomeh, N., Abu Farha, I., Habash, N., Khalifa, S., Keleg, A., et al., Eds.; Association for Computational Linguistics: Stroudsburg, PA, USA, 2023; pp. 728–742. [Google Scholar] [CrossRef] [Scilit]
  19. Hammo, B.; Abu-Salem, H.; Lytinen, S.L.; Evens, M. QARAB: A Question answering system to support the Arabic language. In Proceedings of the ACL-02 Workshop on Computational Approaches to Semitic Languages; Association for Computational Linguistics: Stroudsburg, PA, USA, 2002; pp. 1–11. [Google Scholar]
  20. Trigui, O.; Belguith, L.H.; Rosso, P. DefArabicQA: Arabic definition question answering system. In Proceedings of the Seventh International Conference on Language Resources and Evaluation (LREC’10); Association for Computational Linguistics: Stroudsburg, PA, USA, 2010; pp. 40–45. [Google Scholar]
  21. Bakari, W.; Bellot, P.; Neji, M. Literature Review of Arabic Question-Answering: Modeling, Generation, Experimentation and Performance Analysis. In Proceedings of the Flexible Query Answering Systems 2015; Andreasen, T., Christiansen, H., Kacprzyk, J., Larsen, H., Pasi, G., Pivert, O., De Tré, G., Vila, M.A., Yazici, A., Zadrożny, S., Eds.; Springer Publishing Company, Incorporated: Cham, Switzerland, 2016; pp. 321–334. [Google Scholar]
  22. Shaheen, M.; Ezzeldin, A.M. Arabic Question Answering: Systems, Resources, Tools, and Future Trends. Arab. J. Sci. Eng. 2014, 39, 4541–4564. [Google Scholar] [CrossRef] [Scilit]
  23. Seo, M.; Kembhavi, A.; Farhadi, A.; Hajishirzi, H. Bidirectional Attention Flow for Machine Comprehension. In Proceedings of the International Conference on Learning Representations, Toulon, France, 24–26 April 2017. [Google Scholar]
  24. Atef, A.; Mattar, B.; Sherif, S.; Elrefai, E.; Torki, M. AQAD: 17,000+ Arabic Questions for Machine Comprehension of Text. In 2020 IEEE/ACS 17th International Conference on Computer Systems and Applications (AICCSA); IEEE: Piscataway, NJ, USA, 2020; pp. 1–6. [Google Scholar] [CrossRef] [Scilit]
  25. Biltawi, M.M.; Awajan, A.; Tedmori, S. Arabic Span Extraction-based Reading Comprehension Benchmark (ASER) and Neural Baseline Models. ACM Trans. Asian Low-Resour. Lang. Inf. Process. 2023, 22, 127. [Google Scholar] [CrossRef] [Scilit]
  26. Pearce, K.; Zhan, T.; Komanduri, A.; Zhan, J. A comparative study of transformer-based language models on extractive question answering. arXiv 2021, arXiv:2110.03142. [Google Scholar] [CrossRef] [Scilit]
  27. Clark, J.H.; Choi, E.; Collins, M.; Garrette, D.; Kwiatkowski, T.; Nikolaev, V.; Palomaki, J. TyDi QA: A Benchmark for Information-Seeking Question Answering in Typologically Diverse Languages. Trans. Assoc. Comput. Linguist. 2020, 8, 454–470. [Google Scholar] [CrossRef] [Scilit]
  28. Artetxe, M.; Ruder, S.; Yogatama, D. On the Cross-lingual Transferability of Monolingual Representations. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics; Jurafsky, D., Chai, J., Schluter, N., Tetreault, J., Eds.; Association for Computational Linguistics: Stroudsburg, PA, USA, 2020; pp. 4623–4637. Available online: https://aclanthology.org/2020.acl-main.421/ (accessed on 10 August 2025).
  29. Abdallah, A.; Kasem, M.; Abdalla, M.; Mahmoud, M.; Elkasaby, M.; Elbendary, Y.; Jatowt, A. ArabicaQA: A Comprehensive Dataset for Arabic Question Answering. In Proceedings of the 47th International ACM SIGIR Conference on Research and Development in Information Retrieval; Association for Computing Machinery: New York, NY, USA, 2024; pp. 2049–2059. [Google Scholar] [CrossRef] [Scilit]
  30. Alrowili, S.; Vijay-Shanker, K. ArTrivia: Harvesting Arabic Wikipedia to Build A New Arabic Question Answering Dataset. In Proceedings of ArabicNLP 2023; Sawaf, H., El-Beltagy, S., Zaghouani, W., Magdy, W., Abdelali, A., Tomeh, N., Abu Farha, I., Habash, N., Khalifa, S., Keleg, A., et al., Eds.; Association for Computational Linguistics: Stroudsburg, PA, USA, 2023; pp. 191–207. [Google Scholar] [CrossRef] [Scilit]
  31. Obeidat, R.; Al-Harbi, M.; Al-Ayyoub, M.; Alawneh, L. ArQuAD: An expert-annotated Arabic machine reading comprehension dataset. Cogn. Comput. 2024, 16, 984–1003. [Google Scholar] [CrossRef] [Scilit]
  32. Albilali, E.; Al-Twairesh, N.; Hosny, M. Constructing Arabic Reading Comprehension Datasets: Arabic WikiReading and KaifLematha. Lang. Resour. Eval. 2022, 56, 729–764. [Google Scholar] [CrossRef] [Scilit]
  33. Antoun, W.; Baly, F.; Hajj, H. AraELECTRA: Pre-Training Text Discriminators for Arabic Language Understanding. In Proceedings of the Sixth Arabic Natural Language Processing Workshop; Association for Computational Linguistics: Stroudsburg, PA, USA, 2021; pp. 191–195. [Google Scholar]
  34. Clark, K.; Luong, M.T.; Le, Q.V.; Manning, C.D. ELECTRA: Pre-training Text Encoders as Discriminators Rather Than Generators. In Proceedings of the International Conference on Learning Representations, Addis Ababa, Ethiopia, 26–30 April 2020; pp. 1–14. [Google Scholar]
  35. Ahmed, Z.; Zeyada, M.; Amin, Y.; Gamal, D.; Hindy, H. Introducing Arabic-SQuADv2.0 for Effective Arabic Machine Reading Comprehension. Int. J. Educ. Manag. Eng. 2023, 13, 34. [Google Scholar] [CrossRef] [Scilit]
  36. HO, J.W.Y. Code-mixing: Linguistic form and socio-cultural meaning. Int. J. Lang. Soc. Cult. 2007, 21, 23–30. [Google Scholar]
  37. Chandu, K.; Loginova, E.; Gupta, V.; van Genabith, J.; Neumann, G.; Chinnakotla, M.; Nyberg, E.; Black, A.W. Code-Mixed Question Answering Challenge: Crowd-sourcing Data and Techniques. In Proceedings of the Third Workshop on Computational Approaches to Linguistic Code-Switching; Aguilar, G., AlGhamdi, F., Soto, V., Solorio, T., Diab, M., Hirschberg, J., Eds.; Association for Computational Linguistics: Stroudsburg, PA, USA, 2018; pp. 29–38. [Google Scholar] [CrossRef] [Scilit]
  38. Dahou, A.; Dahou, A.H.; Cheragui, M.A.; Abdedaiem, A.; Al-Qaness, M.A.A.; Abd Elaziz, M.; Ewees, A.A.; Zheng, Z. A Survey on Dialect Arabic Processing and Analysis: Recent Advances and Future Trends. ACM Trans. Asian Low-Resour. Lang. Inf. Process. 2025, 24, 84. [Google Scholar] [CrossRef] [Scilit]
  39. Alwaneen, T.H.; Azmi, A.M.; Aboalsamh, H.A.; Cambria, E.; Hussain, A. Arabic question answering system: A survey. Artif. Intell. Rev. 2022, 55, 207–253. [Google Scholar] [CrossRef] [Scilit]
  40. Rizvi, M.S.Z.; Srinivasan, A.; Ganu, T.; Choudhury, M.; Sitaram, S. GCM: A Toolkit for Generating Synthetic Code-mixed Text. In Proceedings of the 16th Conference of the European Chapter of the Association for Computational Linguistics: System Demonstrations; Association for Computational Linguistics: Stroudsburg, PA, USA, 2021; pp. 205–211. [Google Scholar] [CrossRef] [Scilit]
  41. Hamed, I.; Habash, N.; Abdennadher, S.; Vu, N.T. Investigating Lexical Replacements for Arabic-English Code-Switched Data Augmentation. In Proceedings of the Sixth Workshop on Technologies for Machine Translation of Low-Resource Languages (LoResMT 2023); Ojha, A.K., Liu, C.h., Vylomova, E., Pirinen, F., Abbott, J., Washington, J., Oco, N., Malykh, V., Logacheva, V., Zhao, X., Eds.; Association for Computational Linguistics: Stroudsburg, PA, USA, 2023; pp. 86–100. [Google Scholar] [CrossRef] [Scilit]
  42. ElSabagh, A.A.; Azab, S.S.; Hefny, H.A. A comprehensive survey on Arabic text augmentation: Approaches, challenges, and applications. Neural Comput. Appl. 2025, 37, 7015–7048. [Google Scholar] [CrossRef] [Scilit]
  43. Sabty, C.; Omar, I.; Wasfalla, F.; Islam, M.; Abdennadher, S. Data augmentation techniques on Arabic data for named entity recognition. Procedia Comput. Sci. 2021, 189, 292–299. [Google Scholar] [CrossRef] [Scilit]
  44. Pratapa, A.; Bhat, G.; Choudhury, M.; Sitaram, S.; Dandapat, S.; Bali, K. Language Modeling for Code-Mixing: The Role of Linguistic Theory based Synthetic Data. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers); Gurevych, I., Miyao, Y., Eds.; Association for Computational Linguistics: Stroudsburg, PA, USA, 2018; pp. 1543–1553. [Google Scholar] [CrossRef] [Scilit]
  45. Qin, L.; Ni, M.; Zhang, Y.; Che, W. CoSDA-ML: Multi-Lingual Code-Switching Data Augmentation for Zero-Shot Cross-Lingual NLP. In Proceedings of the Twenty-Ninth International Joint Conference on Artificial Intelligence, IJCAI-20; Bessiere, C., Ed.; International Joint Conferences on Artificial Intelligence Organization: Yokohama, Japan, 2020; pp. 3853–3860. [Google Scholar] [CrossRef] [Scilit]
  46. Khanuja, S.; Dandapat, S.; Srinivasan, A.; Sitaram, S.; Choudhury, M. GLUECoS: An Evaluation Benchmark for Code-Switched NLP. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics; Association for Computational Linguistics: Stroudsburg, PA, USA, 2020; pp. 3575–3585. [Google Scholar]
  47. Riley, P.; Shakeri, S.; Ammar, W.; Clark, J.H. TyDi QA-WANA: A Benchmark for Information-Seeking Question Answering in Languages of West Asia and North Africa. arXiv 2025, arXiv:2507.17709. [Google Scholar]
  48. Attardi, G. WikiExtractor. Available online: https://github.com/attardi/wikiextractor (accessed on 7 October 2024).
  49. Vela, M.; Tan, L. Predicting Machine Translation Adequacy with Document Embeddings. In Proceedings of the Tenth Workshop on Statistical Machine Translation; Association for Computational Linguistics: Stroudsburg, PA, USA, 2015; pp. 402–410. [Google Scholar]
  50. Liu, X.; Ren, S.; Sun, M.; Liu, Y.; Su, Q. Predicting Sentence Translation Adequacy for Document-Level Neural Machine Translation. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics; Association for Computational Linguistics: Stroudsburg, PA, USA, 2019; pp. 4250–4260. [Google Scholar]
  51. Moon, J.; Cho, H.; Park, E.L. Revisiting Round-trip Translation for Quality Estimation. In Proceedings of the 22nd Annual Conference of the European Association for Machine Translation; European Association for Machine Translation: Lisboa, Portugal, 2020; pp. 91–104. [Google Scholar]
  52. Ye, Y.; Simpson, E.; Rodriguez, R.S. Using similarity to evaluate factual consistency in summaries. arXiv 2024, arXiv:2409.15090. [Google Scholar] [CrossRef] [Scilit]
  53. Reimers, N.; Gurevych, I. Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP); Association for Computational Linguistics: Stroudsburg, PA, USA, 2019; pp. 3982–3992. [Google Scholar]
  54. Jalili Sabet, M.; Dufter, P.; Yvon, F.; Schütze, H. SimAlign: High Quality Word Alignments Without Parallel Training Data Using Static and Contextualized Embeddings. In Proceedings of the Findings of the Association for Computational Linguistics: EMNLP 2020; Association for Computational Linguistics: Stroudsburg, PA, USA, 2020; pp. 1627–1643. Available online: https://aclanthology.org/2020.findings-emnlp.147/ (accessed on 1 December 2025).
  55. Rajpurkar, P.; Zhang, J.; Lopyrev, K.; Liang, P. SQuAD: 100,000+ Questions for Machine Comprehension of Text. In Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing; Association for Computational Linguistics: Stroudsburg, PA, USA, 2016; pp. 2383–2392. [Google Scholar] [CrossRef] [Scilit]
  56. Buckwalter, T. Buckwalter Arabic Transliteration. Qamus Arabic Dictionaries and Tools. 2002. Available online: http://www.qamus.org/transliteration.htm (accessed on 1 December 2025).
  57. Althobaiti, M.; Kruschwitz, U.; Poesio, M. AraNLP: A Java-based Library for the Processing of Arabic Text. In Proceedings of the Ninth International Conference on Language Resources and Evaluation (LREC’14); Association for Computational Linguistics: Reykjavik, Iceland, 2014; pp. 4134–4138. [Google Scholar]
  58. Reimers, N.; Gurevych, I. Making Monolingual Sentence Embeddings Multilingual using Knowledge Distillation. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP); Association for Computational Linguistics: Stroudsburg, PA, USA, 2020; pp. 4512–4525. [Google Scholar] [CrossRef] [Scilit]
  59. Reimers, N.; Team, S.T. Paraphrase-Multilingual-MiniLM-L12-v2. Hugging Face Model Card, 2021. Available online: https://huggingface.co/sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2 (accessed on 25 June 2025).
  60. Costa-Jussà, M.R.; Cross, J.; Çelebi, O.; Elbayad, M.; Heafield, K.; Heffernan, K.; Kalbassi, E.; Lam, J.; Licht, D.; Maillard, J.; et al. No language left behind: Scaling human-centered machine translation. arXiv 2022, arXiv:2207.04672. [Google Scholar] [CrossRef] [Scilit]
  61. Team, N. Scaling neural machine translation to 200 languages. Nature 2024, 630, 841–846. [Google Scholar] [CrossRef] [Scilit]
  62. AI at Meta. Facebook/nllb-200-distilled-600M. Hugging Face Model Card, 2022. License: CC-BY-NC 4.0. Available online: https://huggingface.co/facebook/nllb-200-distilled-600M (accessed on 23 May 2025).
  63. Abdul-Mageed, M.; Elmadany, A.; Nagoudi, E.M.B. ARBERT & MARBERT: Deep Bidirectional Transformers for Arabic. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers); Association for Computational Linguistics: Stroudsburg, PA, USA, 2021; pp. 7088–7105. [Google Scholar] [CrossRef] [Scilit]
Figure 1. General framework of the proposed method.
Figure 1. General framework of the proposed method.
Information 17 00139 g001
Figure 2. The Process of creating multidialectal Arabic lexicons.
Figure 2. The Process of creating multidialectal Arabic lexicons.
Information 17 00139 g002
Figure 3. Process of code-mixed data augmentation. LSP stands for lexical substitution percentage, and SemSim denotes semantic similarity.
Figure 3. Process of code-mixed data augmentation. LSP stands for lexical substitution percentage, and SemSim denotes semantic similarity.
Information 17 00139 g003
Figure 4. Illustration of four qualitative results from the test set where the proposed code-mixed question augmentation improves over the baseline in generalised zero-shot cross-dialectal Arabic QA. For each example, we show the original question, a context snippet, the gold answer span, the baseline prediction, and the prediction after applying our proposed method. English translations of the Arabic text are provided for clarity.
Figure 4. Illustration of four qualitative results from the test set where the proposed code-mixed question augmentation improves over the baseline in generalised zero-shot cross-dialectal Arabic QA. For each example, we show the original question, a context snippet, the gold answer span, the baseline prediction, and the prediction after applying our proposed method. English translations of the Arabic text are provided for clarity.
Information 17 00139 g004
Figure 5. Representative error cases of the proposed code-mixed question augmentation method in generalised zero-shot cross-dialectal Arabic QA, illustrating the main qualitative error categories (answer-type confusion, weak use of location cues, form-description confusion, and discourse-level anaphora errors). English translations of the Arabic text are provided for clarity.
Figure 5. Representative error cases of the proposed code-mixed question augmentation method in generalised zero-shot cross-dialectal Arabic QA, illustrating the main qualitative error categories (answer-type confusion, weak use of location cues, form-description confusion, and discourse-level anaphora errors). English translations of the Arabic text are provided for clarity.
Information 17 00139 g005
Table 1. Training and evaluation data sizes used in our experiments. Arabic-SQuADv2.0 is used for MSA fine-tuning (train split only). ArDQA provides parallel QA triples across five Arabic varieties. We report both parallel triples (unique underlying items) and individual triples (parallel × 5).
Table 1. Training and evaluation data sizes used in our experiments. Arabic-SQuADv2.0 is used for MSA fine-tuning (train split only). ArDQA provides parallel QA triples across five Arabic varieties. We report both parallel triples (unique underlying items) and individual triples (parallel × 5).
DatasetSplitParallel TriplesIndividual Triples
Arabic-SQuADv2.0Train76,840
ArDQA-SQuADDev/Test131/368655/1840
ArDQA-VlogsDev/Test171/436855/2180
ArDQA-NarrativesDev/Test160/364800/1820
Table 2. Development (validation) performance used for hyperparameter tuning on ArDQA (per domain). The ArDQA development splits are used only for tuning. All reported results in the paper are on the corresponding ArDQA test splits.
Table 2. Development (validation) performance used for hyperparameter tuning on ArDQA (per domain). The ArDQA development splits are used only for tuning. All reported results in the paper are on the corresponding ArDQA test splits.
Domain (ArDQA Dev)F1EM
SQuAD-style72.2055.34
Vlogs62.5039.88
Narratives39.1110.24
Table 3. Generalised zero-shot cross-dialectal results (F1/EM) of the AraELECTRA-MSA-QA baseline model on the ArDQA-SQuAD test set. Rows indicate the context variety and columns the question variety. Variety abbreviations are as follows: Egyptian (EGY), Gulf (GLF), Levantine (LEV), Maghrebi (MGR), and Modern Standard Arabic (MSA).
Table 3. Generalised zero-shot cross-dialectal results (F1/EM) of the AraELECTRA-MSA-QA baseline model on the ArDQA-SQuAD test set. Rows indicate the context variety and columns the question variety. Variety abbreviations are as follows: Egyptian (EGY), Gulf (GLF), Levantine (LEV), Maghrebi (MGR), and Modern Standard Arabic (MSA).
C/QEGYGLFLEVMGRMSA
EGY71.66/59.5170.84/57.3470.12/57.8865.57/51.6370.54/57.88
GLF70.83/58.7073.76/60.8770.41/58.1566.90/54.8973.86/61.41
LEV67.17/50.2766.73/49.7366.72/50.5463.43/47.0166.52/50.27
MGR69.12/57.3472.44/58.4270.28/57.6166.35/53.8072.24/59.24
MSA71.51/57.0772.89/58.7070.64/56.5265.98/53.2676.19/61.96
Table 4. Generalised zero-shot cross-dialectal results (F1/EM) of the baseline model on the ArDQA-Vlogs test set. Rows indicate the context variety and columns the question variety.
Table 4. Generalised zero-shot cross-dialectal results (F1/EM) of the baseline model on the ArDQA-Vlogs test set. Rows indicate the context variety and columns the question variety.
C/QEGYGLFLEVMGRMSA
EGY63.90/37.9360.36/34.7159.80/34.9449.06/28.0564.06/38.16
GLF61.25/38.6264.47/41.7462.35/39.4553.11/31.4266.14/43.58
LEV59.73/37.7064.19/41.7463.00/40.3752.94/32.5764.87/43.12
MGR53.29/27.5956.81/30.7356.41/29.3657.11/31.1959.58/32.34
MSA61.20/36.3265.11/40.1463.10/38.5354.30/33.4967.01/42.20
Table 5. Generalised zero-shot cross-dialectal results (F1/EM) of the baseline model on the ArDQA-Narratives test set. Rows indicate the context variety and columns the question variety.
Table 5. Generalised zero-shot cross-dialectal results (F1/EM) of the baseline model on the ArDQA-Narratives test set. Rows indicate the context variety and columns the question variety.
C/QEGYGLFLEVMGRMSA
EGY35.75/11.2630.15/8.2437.55/12.3628.50/7.9739.11/13.46
GLF37.02/13.7440.80/14.2939.10/13.4631.59/10.1642.22/16.21
LEV32.62/9.9435.14/9.6738.31/12.9827.05/6.3538.51/12.98
MGR30.00/6.3232.84/7.6934.62/7.6931.70/6.8736.56/9.34
MSA37.28/10.4734.78/8.8235.60/9.0930.35/7.1643.83/14.05
Table 6. Results of the proposed method for generalised cross-dialectal transfer on the ArDQA-SQuAD test set. Columns show question variety; rows show context variety. (a) Absolute scores. (b) Relative improvement compared to baseline.
Table 6. Results of the proposed method for generalised cross-dialectal transfer on the ArDQA-SQuAD test set. Columns show question variety; rows show context variety. (a) Absolute scores. (b) Relative improvement compared to baseline.
C/QEGYGLFLEVMGRMSA
(a) Absolute performance scores (F1/EM).
EGY71.66/59.5171.15/58.1670.37/58.4665.74/51.6972.17/59.41
GLF72.67/60.2373.76/60.8772.07/59.6869.49/56.4275.29/62.18
LEV67.17/50.3268.16/51.0366.72/50.5466.77/49.3067.91/50.27
MGR69.17/58.2273.12/58.7770.48/58.7366.35/53.8073.35/60.48
MSA72.80/58.3974.13/58.9470.80/56.8066.99/53.2676.19/61.96
(b) Relative improvement (ΔF1/ΔEM) of the proposed method compared to the baseline.
EGY0.00/0.000.31/0.820.25/0.580.17/0.061.63/1.53
GLF1.84/1.530.00/0.001.66/1.532.59/1.531.43/0.77
LEV0.00/0.051.43/1.300.00/0.003.34/2.291.39/0.00
MGR0.05/0.880.68/0.350.20/1.120.00/0.001.11/1.24
MSA1.29/1.321.24/0.240.16/0.281.01/0.000.00/0.00
Table 7. Results of the proposed method for generalised cross-dialectal transfer on the ArDQA-Vlogs test set. Columns show question variety; rows show context variety. (a) Absolute scores. (b) Relative improvement compared to baseline.
Table 7. Results of the proposed method for generalised cross-dialectal transfer on the ArDQA-Vlogs test set. Columns show question variety; rows show context variety. (a) Absolute scores. (b) Relative improvement compared to baseline.
C/QEGYGLFLEVMGRMSA
(a) Absolute performance scores (F1/EM).
EGY63.90/37.9361.74/37.3660.93/34.9451.20/30.2865.73/39.75
GLF62.97/39.9664.47/41.7463.92/39.4555.04/32.5968.80/45.32
LEV61.12/38.8066.92/41.7463.00/40.3756.17/34.2465.87/44.45
MGR54.74/28.7158.63/32.0757.59/31.7257.11/31.1960.58/33.23
MSA61.21/37.6665.30/41.4863.98/40.2855.93/33.4967.01/42.20
(b) Relative improvement (ΔF1/ΔEM) of the proposed method compared to the baseline.
EGY0.00/0.001.38/2.651.13/0.002.14/2.231.67/1.59
GLF1.72/1.340.00/0.001.57/0.001.93/1.172.66/1.74
LEV1.39/1.102.73/0.000.00/0.003.23/1.671.00/1.33
MGR1.45/1.121.82/1.341.18/2.360.00/0.001.00/0.89
MSA0.01/1.340.19/1.340.88/1.751.63/0.000.00/0.00
Table 8. Results of the proposed method for generalised cross-dialectal transfer on the ArDQA-Narratives test set. Columns show question variety; rows show context variety. (a) Absolute scores. (b) Relative improvement compared to baseline.
Table 8. Results of the proposed method for generalised cross-dialectal transfer on the ArDQA-Narratives test set. Columns show question variety; rows show context variety. (a) Absolute scores. (b) Relative improvement compared to baseline.
C/QEGYGLFLEVMGRMSA
(a) Absolute performance scores (F1/EM).
EGY35.75/11.2635.48/9.8739.05/13.9935.00/12.9739.90/14.61
GLF38.04/15.3640.80/14.2940.39/15.0837.92/15.7942.84/16.75
LEV34.03/11.1836.73/10.0938.31/12.9834.43/9.7940.43/14.40
MGR30.45/7.4333.54/10.5835.69/9.3231.70/6.8736.89/9.46
MSA38.01/11.3536.93/10.7137.31/12.0842.48/15.6143.83/14.05
(b) Relative improvement (ΔF1/ΔEM) of the proposed method compared to the baseline.
EGY0.00/0.005.33/1.631.50/1.636.50/5.000.79/1.15
GLF1.02/1.620.00/0.001.29/1.626.33/5.630.62/0.54
LEV1.41/1.241.59/0.420.00/0.007.38/3.441.92/1.42
MGR0.45/1.110.70/2.891.07/1.630.00/0.000.33/0.12
MSA0.73/0.882.15/1.891.71/2.9912.13/8.450.00/0.00
Table 9. Domain-level summary of cross-dialect transfer gains on ArDQA. For each domain, we consider the 20 off-diagonal dialect pairs (context ≠ question). We report the mean and median improvements in percentage points ( Δ = proposed−baseline) across the 20 pairs. We also report how many of the 20 pairs remain significant after Holm–Bonferroni correction applied across the 20 off-diagonal tests within the domain (separately for ΔF1 and ΔEM). Significance is computed using a one-sided paired bootstrap test over questions (testing Δ > 0 , B = 10,000).
Table 9. Domain-level summary of cross-dialect transfer gains on ArDQA. For each domain, we consider the 20 off-diagonal dialect pairs (context ≠ question). We report the mean and median improvements in percentage points ( Δ = proposed−baseline) across the 20 pairs. We also report how many of the 20 pairs remain significant after Holm–Bonferroni correction applied across the 20 off-diagonal tests within the domain (separately for ΔF1 and ΔEM). Significance is computed using a one-sided paired bootstrap test over questions (testing Δ > 0 , B = 10,000).
DomainMean ΔF1Median ΔF1Mean ΔEMMedian ΔEM
SQuAD+1.09+1.18+0.87+0.85
Vlogs+1.54+1.51+1.25+1.34
Narratives+2.75+1.46+2.27+1.63
Note. Significant off-diagonal pairs after Holm–Bonferroni correction (out of 20): SQuAD: ΔF1 = 4/20, ΔEM = 11/20; Vlogs: ΔF1 = 3/20, ΔEM = 16/20; Narratives: ΔF1 = 6/20, ΔEM = 17/20.
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Althobaiti, M.J. Generalised Cross-Dialectal Arabic Question Answering Through Adaptive Code-Mixed Data Augmentation. Information 2026, 17, 139. https://doi.org/10.3390/info17020139

AMA Style

Althobaiti MJ. Generalised Cross-Dialectal Arabic Question Answering Through Adaptive Code-Mixed Data Augmentation. Information. 2026; 17(2):139. https://doi.org/10.3390/info17020139

Chicago/Turabian Style

Althobaiti, Maha Jarallah. 2026. "Generalised Cross-Dialectal Arabic Question Answering Through Adaptive Code-Mixed Data Augmentation" Information 17, no. 2: 139. https://doi.org/10.3390/info17020139

APA Style

Althobaiti, M. J. (2026). Generalised Cross-Dialectal Arabic Question Answering Through Adaptive Code-Mixed Data Augmentation. Information, 17(2), 139. https://doi.org/10.3390/info17020139

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop