Morphosyntactic Tagging with Pre-trained Language Models for Arabic and its Dialects

Go Inoue, Salam Khalifa, Nizar Habash

Introduction

Arabic is a morphologically rich language (MRL) where a single word can encapsulate a complex array of grammatical information, including gender, number, person, case, aspect, and various clitics. This characteristic presents two significant challenges for Natural Language Processing (NLP): the "tagset explosion," where full morphosyntactic tagsets can contain thousands of unique labels, and the "dialect gap," stemming from the substantial linguistic variation between Modern Standard Arabic (MSA) and regional dialects such as Egyptian (EGY), Gulf (GLF), and Levantine (LEV).

Examples of morphosyntactic analyses across different Arabic variants, illustrating the complexity of features like POS, gender, number, and case.

Methodology

The researchers utilized CAMeLBERT, a suite of BERT models pre-trained specifically on diverse Arabic text. To manage the massive tagset, they evaluated two primary strategies:

  • Factored Tagset: Decomposing the complex tag into independent features (e.g., separate classifiers for POS, gender, number). This "divide and conquer" approach allows the model to learn individual grammatical concepts more effectively.
  • Unfactored Tagset: A single classifier that treats every unique combination of features as a distinct, atomic label.

The team also explored Retagging, using rule-based morphological analyzers to validate and refine the model's predictions. For the data-scarce Levantine dialect, they implemented Continued Training, where a model already fine-tuned on high-resource Arabic data is further trained on the smaller Levantine dataset.

Datasets

The study employed four manually annotated corpora representing the linguistic spectrum:

  • MSA: Penn Arabic Treebank (PATB) — ~629k tokens.
  • Gulf (GLF): Gumar corpus — ~202k tokens.
  • Egyptian (EGY): ARZTB — ~175k tokens.
  • Levantine (LEV): Curras corpus — ~57k tokens.

Key Results and Insights

The proposed models achieved new state-of-the-art (SOTA) performance across all four Arabic variants. A key finding was that factored models significantly outperform unfactored ones in low-resource settings. By learning features like "feminine" or "plural" independently, the model can generalize to unseen combinations of these features even when training data is limited.

Comparison of the proposed system (Ours) against previous state-of-the-art results across MSA and three major dialects.

The most dramatic improvement was seen in the Levantine dialect, which saw an 8.3% absolute increase in accuracy for full tag prediction. This success highlights the effectiveness of Continued Training in transferring linguistic knowledge from high-resource dialects to those with limited annotated data.

Conclusion

This research demonstrates that fine-tuning specialized pre-trained language models using a factored tagging approach and strategic transfer learning can effectively address the morphological complexity and data scarcity inherent in Arabic and its dialects. Future work will focus on improving computational efficiency through multi-task learning and extending these methods to tasks such as automatic lemmatization.

Summary updated

BibTeX
@inproceedings{inoue2022morphosyntactic,
  author = {Go Inoue and Salam Khalifa and Nizar Habash},
  title = {{Morphosyntactic Tagging with Pre-trained Language Models for Arabic and its Dialects}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2022},
  doi = {10.18653/v1/2022.findings-acl.135},
}
Figure