Fine-Grained Arabic Dialect Identification

Mohammad Salameh, Houda BouamorCOLING 2018

Introduction

Arabic is a linguistically rich language characterized by diglossia: while Modern Standard Arabic (MSA) serves as the formal written standard, daily communication occurs in a vast array of local dialects (Dialectal Arabic or DA). Historically, Natural Language Processing (NLP) has categorized these dialects into broad regional blocks like Maghrebi, Levantine, Egyptian, Gulf, and Iraqi. However, these coarse groupings often fail to capture the significant linguistic variation between cities within the same region. This research addresses the challenge of fine-grained dialect identification across 25 specific cities.

The Challenge of Granularity

Moving from regional to city-level identification introduces a significant data sparsity problem. As the number of target classes increases, the available training data per location typically decreases. Furthermore, the differences between neighboring cities can be extremely subtle, involving minor lexical or morphological shifts that are difficult for standard models to distinguish.

Linguistic variation across 25 Arabic city dialects for a single sentence.

As shown in the table above, even a simple travel expression like "I'll take this one, please" undergoes distinct transformations across different cities, such as the variation between hadi (Rabat) and had alwahd (Fes), or the use of different future markers like ghady, ha-, or rah.

Methodology: The Anchor Strategy

The researchers employed a Multinomial Naive Bayes (MNB) classifier, which outperformed deep learning models like LSTMs and CNNs given the dataset's scale. The core innovation is the "Anchor Strategy." By leveraging a larger dataset for six "representative" dialects (Rabat, Tunis, Cairo, Doha, Beirut, and MSA), the team trained a coarse 6-way classifier. The output probabilities from this model were then used as high-level features for the final 26-way fine-grained model. Essentially, the model learns to identify a broad regional profile to help narrow down the specific city.

Datasets

The study utilized the MADAR (Multi-Arabic Dialect Applications and Resources) corpus, based on the Basic Traveling Expression Corpus (BTEC).

  • CORPUS-26: 2,000 parallel sentences translated into the dialects of 25 cities plus MSA.
  • CORPUS-6: 10,000 additional sentences for the five anchor cities and MSA.
  • Twitter Data: A collection of 1 million tweets, with 500 per city manually annotated, was used to evaluate the model's performance on spontaneous, real-world social media text.

Results and Linguistic Insights

The fine-grained model achieved 67.9% accuracy on the 25-city task for short sentences (averaging 7 words), representing a 9% relative error reduction over previous techniques. Performance scaled significantly with input length, reaching over 90% accuracy with 16-word samples, and reaching an "optimal" threshold at approximately 52 words. When the 25 cities were collapsed back into 8 broader geographical regions, accuracy jumped to over 84%.

Dendrogram of dialect similarity based on token dissimilarity.

A key finding of the study is that linguistic similarity is strongly correlated with geography. The dendrogram above illustrates how dialects cluster into distinct geographical families. For instance, North African dialects form a cluster that is significantly distinct from the rest of the Arab world, while cities like Damascus and Aleppo show high internal similarity (68%).

Evaluation on Twitter data revealed high performance for certain cities like Cairo (99.6%) and Doha (91.4%), but lower accuracy for others like Tunis (20.2%), which was frequently confused with neighboring Libyan dialects—a reflection of the high linguistic similarity between those regions.

Conclusion and Future Work

This work demonstrates that city-level dialect identification is feasible even with limited data by using regional anchors. While the model performed well on structured travel expressions, its performance on social media highlighted the challenges of messy, real-world data and code-switching. Future research will focus on incorporating more naturalistic data and exploring multi-level hierarchical classification to further refine accuracy at the borders of linguistic regions.

Summary updated

BibTeX
@inproceedings{salameh2018fine,
  author = {Mohammad Salameh and Houda Bouamor},
  title = {{Fine-Grained Arabic Dialect Identification}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2018},
}
Figure