Hierarchical Deep Learning for Arabic Dialect Identification
Paper · 2019 · Gael de Francony, Victor Guichard, Praveen Joshi et al.
Summary
This workshop paper addresses fine-grained Arabic dialect identification in the MADAR shared task. Each sentence must be assigned to one of 26 classes: the dialects of 25 Arab cities plus Modern Standard Arabic (MSA). The authors compare two systems.
The first is a two-level neural cascade. A recurrent network first predicts one of 8 broad regional groups, formed from the cities' geography and dialect similarity. A separate small recurrent model for that group then selects the exact city. Its input is word2vec embeddings trained on a large tweet collection, harvested using dialect-specific keywords from MADAR.
The second is a hard-voting ensemble of Multinomial Naive Bayes and a Random Forest, both working on TF-IDF word features.
On their own held-out split, the hierarchy only slightly beat a flat neural network, while the simpler voting ensemble was clearly best. That ensemble reached 63.02% F1 on the official subtask evaluation.
The work matters as a practical reminder. With roughly two thousand sentences per class, count-based statistical models can beat deep networks. Closely related neighbouring dialects remain the main source of errors.
Key points
- Data. MADAR corpus: 2,000 parallel sentences per dialect, 52,000 in total. The authors split it per dialect into 80% train, 10% dev and 10% test. Sequences were capped at 40 words, and non-Arabic characters were removed.
- Embeddings. word2vec was trained on more than 32 million tweets. These were fetched using the highest-TF-IDF dialect words from MADAR, so the vectors lean toward dialectal usage.
- Hierarchy.
- Level 1: a B-LSTM with 128 units, a dense layer of 64 and an 8-way softmax.
- Level 2: seven group-specific models, each using B-LSTM or B-GRU with 32–64 units and its own layer sizes.
- Training: RMSProp and Adamax, cross entropy loss, batch size 100.
- Internal macro F1. Flat DNN 0.56, hierarchical DNN 0.58, voting classifier 0.64.
- The group router averaged 0.78 F1.
- The Levantine group (G7: Jerusalem, Amman, Salt, Beirut, Damascus, Aleppo) was the weakest second-level model, at only 0.55 F1.
- Best ensemble settings. Naive Bayes with alpha 0.3, and a Random Forest with 250 estimators and depth 200. Tuning the forest added about 4 F1 points.
Interesting ideas
- I1. Split a many-way decision into coarse-to-fine stages: a router picks a family of labels, then a specialist chooses within it, which shrinks each model's label space when data is scarce.
- I2. Give each specialist a capacity matched to how many classes and how much training data its subset has, instead of one fixed size for all.
- I3. Grow an unlabeled corpus by mining the small labeled set for its most distinctive words (by TF-IDF) and using them as retrieval keys, so pretraining text is tilted toward the target variety.
- I4. Report accuracy separately for the router and for each second-level model, which exposes exactly which branch (here the Levantine group) drags down the whole cascade.
- I5. Probe the system with near-identical sentence pairs from neighbouring classes (the Tunis vs. Sfax example) to show where its distinctions break down.
For Mova
How these ideas could serve Mova, our small open language model — its files, stages and tests:
- I1 (tokens): The tagger could first commit to a coarse UPOS and then call small per-category models for XPOS and morphological features, so each feature decision can be explained by its parent choice.
- I2 (learn): When training per-relation or per-construction components of gparse or the perceptron parser, size them to their silver-data volume to avoid overfitting rare branches.
- I3 (learn): Distinctive words from a domain such as fables or school tests could seed the collection of raw text for witness parsers, yielding domain-matched silver data.
- I4 (learn): Every staged step (tokens → tree → frames) should be scored on its own, so errors that pass from one stage to the next can be located rather than hidden in one end-to-end number.
- I5 (learn): Minimal pairs differing in one word could serve as negative controls in evaluation, checking that a parse or frame change is triggered by the real difference.
Institutions
Fields, topics and concepts
📚 Shelves 4The field of science this work belongs to (OpenAlex fields).Computer Science · 16,667 worksArtificial Intelligence · 16,194 worksArts and Humanities · 16,039 worksLanguage and Linguistics · 15,891 works
🧭 Topics 1Research subjects and languages the work is about.Semitic languages · 2,908 works
Cite
Cite as Gael de Francony, Victor Guichard, Praveen Joshi, Haithem Afli and Abdessalam Bouchekif. 2019. Hierarchical Deep Learning for Arabic Dialect Identification. Proceedings of the Fourth Arabic Natural Language Processing Workshop.
@inproceedings{francony2019hierarchical,
title = {{Hierarchical Deep Learning for Arabic Dialect Identification}},
author = {Gael {de Francony}, Victor Guichard, Praveen Joshi, Haithem Afli and Abdessalam Bouchekif},
booktitle = {Proceedings of the Fourth Arabic Natural Language Processing Workshop},
year = {2019},
doi = {10.18653/v1/w19-4631},
url = {https://doi.org/10.18653/v1/w19-4631}
}References
- Abdulhadi Shoufan and Sumaya Alameri. 2015. Natural language processing for dialectical arabic: A survey. In ANLP@ACL.
- Mona Abdullah AL-Walaie and Muhammad Badruddin Khan. 2017. Arabic dialects classification using text mining techniques . In Proceedings of the International Conference on Computer and Applications (ICCA), pages 325–329, Dubai, United Arab Emirates. find
- Wajdi Zaghouani. 2014. Critical survey of the freely available arabic corpora. In International Conference on Language Resources and Evaluation (LREC’2014), OSACT Workshop. ↗
- Mohammed Attia, Pavel Pecina, Younes Samih, Khaled Shaalan, and Josef van Genabith. 2012. Improved spelling error detection and correction for arabic. In Proceedings of COLING 2012, pages 103–112.
- Mahmoud Azab, Houda Bouamor, Behrang Mohit, and Kemal Oflazer. 2013. Dudley north visits north london: Learning when to transliterate to arabic. In Proceedings of NAACL-HLT 2013, pages 439–444.
- Houda Bouamor, Nizar Habash, Mohammad Salameh, Wajdi Zaghouani, Owen Rambow, Dana Abdulrahim, Ossama Obeid, Salam Khalifa, Fadhl Eryani, Alexander Erdmann, and Kemal Oflazer. 2018. The MADAR Arabic Dialect Corpus and Lexicon. In Proceedings of the Eleventh International Conference on Language Resources and Evaluation (LREC 2018), Miyazaki, Japan. find
- Houda Bouamor, Sabit Hassan, and Nizar Habash. 2019. The MADAR Shared Task on Arabic Fine-Grained Dialect Identification. In Proceedings of the Fourth Arabic Natural Language Processing Workshop (WANLP19), Florence, Italy.
- Nizar Habash, Ryan Roth, Owen Rambow, Ramy Eskander, and Nadi Tomeh. 2013. Morphological analysis and disambiguation for dialectal arabic. In Proceedings of NAACL-HLT 2013, pages 426–432.
- Kamran Kowsari, Donald E. Brown, Mojtaba Heidarysafa, Kiana Jafari Meimandi, Matthew S. Gerber, and Laura E. Barnes. 2017. Hdltex: Hierarchical deep learning for text classification. In 16th IEEE International Conference on Machine Learning and Applications, ICMLA 2017, Cancun, Mexico, December 18-21, 2017, pages 364–371.
- Fabian Pedregosa, Gael Varoquaux, Alexandre Gramfort, Vincent Michel, Bertrand Thirion, Olivier Grisel, Mathieu Blondel, Peter Prettenhofer, Ron Weiss, Vincent Dubourg, Jake Vanderplas, Alexandre Passos, David Cournapeau, Matthieu Brucher, Matthieu Perrot, and Edouard Duchesnay. 2011. Scikit-learn: Machine learning in Python. Journal of Machine Learning Research. ↗
- Mohammad Salameh, Houda Bouamor, and Nizar Habash. 2018. Fine-Grained Arabic Dialect Identification. In Proceedings of the 27th International Conference on Computational Linguistic, page 13321344, Santa Fe, New Mexico, USA.
- Mike Schuster and Kuldip K. Paliwal. 1997. Bidirectional recurrent neural networks. IEEE Transactions on Signal Processing. ↗
Updated
This page in Markdown → https://md.research.elamur.ai/free/en/papers/francony-2019-hierarchical-deep-learning-arabic-dialect/