[Paper Review] Adapting MARBERT for Improved Arabic Dialect Identification: Submission to the NADI 2021 Shared Task
This paper presents a state-of-the-art ensemble model for Arabic Dialect Identification (NADI 2021) by adapting MARBERT with parameter-efficient adapters and introducing Vertical Attention to attend across transformer layer representations. The method achieves an F1-score of 34.03% on the DA country-level development set, a 7.63% improvement over prior work, through fine-tuning, adapter integration, and model ensembling with vertical attention.
In this paper, we tackle the Nuanced Arabic Dialect Identification (NADI) shared task (Abdul-Mageed et al., 2021) and demonstrate state-of-the-art results on all of its four subtasks. Tasks are to identify the geographic origin of short Dialectal (DA) and Modern Standard Arabic (MSA) utterances at the levels of both country and province. Our final model is an ensemble of variants built on top of MARBERT that achieves an F1-score of 34.03% for DA at the country-level development set -- an improvement of 7.63% from previous work.
Motivation & Objective
- To address the challenge of identifying geographic origin (country and province) in short, informal Arabic text, including both Dialectal Arabic (DA) and Modern Standard Arabic (MSA).
- To improve performance on the NADI 2021 shared task, which focuses on sub-country level dialect identification across 21 Arab countries.
- To mitigate the limitations of standard fine-tuning in low-resource, highly imbalanced dialectal Arabic NLP by using parameter-efficient adapter modules.
- To enhance representation learning by attending across multiple transformer layer outputs using Vertical Attention (VAtt), enabling dynamic abstraction level selection.
Proposed method
- The model is based on MARBERT, a multilingual BERT variant pre-trained on a large Arabic tweet corpus, with adapters inserted after each Multi-Head Attention and Feed-Forward Network module to enable parameter-efficient fine-tuning.
- Vertical Attention (VAtt) is introduced to attend over the CLS token representations from all 12 transformer layers, using query from the final layer and keys/values from intermediate layer representations to dynamically select relevant abstraction levels.
- Two training strategies are evaluated: full fine-tuning of MARBERT and fine-tuning via adapters, both with and without VAtt, to explore trade-offs in performance and parameter efficiency.
- An ensemble model combines predictions from four configurations: (1) full fine-tuning, (2) adapters + VAtt, (3) full fine-tuning + VAtt, and (4) full fine-tuning with a linear learning rate schedule.
- The final ensemble uses element-wise multiplication of soft-max outputs across models to aggregate predictions, improving robustness and performance.
- Sequence length is capped at 90 tokens for DA and 110 for MSA, with special tokens (URL, USER) removed before length analysis.
Experimental results
Research questions
- RQ1Can adapter-based fine-tuning improve performance on low-resource, imbalanced Arabic dialect identification compared to full fine-tuning?
- RQ2Does Vertical Attention, which attends across multiple transformer layer representations, enhance model performance on dialect classification tasks?
- RQ3How does model ensembling across different architectural configurations (adapters vs. full fine-tuning, with/without VAtt) affect overall F1 performance?
- RQ4To what extent do class imbalance and geographical proximity influence prediction confusion in dialect identification?
- RQ5Can the integration of multiple attention mechanisms and parameter-efficient adaptation lead to state-of-the-art results in sub-country level dialect detection?
Key findings
- The ensemble model achieved an F1-score of 34.03% on the DA country-level development set, representing a 7.63% absolute improvement over the previous state-of-the-art.
- The best-performing solo model was the fully fine-tuned MARBERT with Vertical Attention, achieving 32.90% F1 on the development set.
- The use of Vertical Attention improved F1 by 0.77% compared to the same model without VAtt, indicating that multi-layer representation aggregation enhances performance.
- The ensemble model boosted performance by 1.13% F1 over the best individual model, demonstrating the effectiveness of combining diverse configurations.
- Correctly classified sequences were significantly longer (mean 7.16 words) than incorrectly classified ones (mean 4.22 words), suggesting that longer utterances are easier to classify.
- Geographically proximate dialects—such as Tunisia and Libya, or Qatar and Bahrain—were most frequently confused, reflecting linguistic similarity and data bias.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.