[Paper Review] EgyBERT: A Large Language Model Pretrained on Egyptian Dialect Corpora
This paper introduces EgyBERT, a large language model pre-trained on 10.4 GB of Egyptian dialect text from two novel corpora: the Egyptian Tweets Corpus (ETC, 2.5 GB) and the Egyptian Forums Corpus (EFC, 7.9 GB). EgyBERT achieves state-of-the-art performance with an average F1-score of 84.25% and accuracy of 87.33% across 10 NLP tasks, significantly outperforming multidialect models like MARBERTv2.
This study presents EgyBERT, an Arabic language model pretrained on 10.4 GB of Egyptian dialectal texts. We evaluated EgyBERT's performance by comparing it with five other multidialect Arabic language models across 10 evaluation datasets. EgyBERT achieved the highest average F1-score of 84.25% and an accuracy of 87.33%, significantly outperforming all other comparative models, with MARBERTv2 as the second best model achieving an F1-score 83.68% and an accuracy 87.19%. Additionally, we introduce two novel Egyptian dialectal corpora: the Egyptian Tweets Corpus (ETC), containing over 34.33 million tweets (24.89 million sentences) amounting to 2.5 GB of text, and the Egyptian Forums Corpus (EFC), comprising over 44.42 million sentences (7.9 GB of text) collected from various Egyptian online forums. Both corpora are used in pretraining the new model, and they are the largest Egyptian dialectal corpora to date reported in the literature. Furthermore, this is the first study to evaluate the performance of various language models on Egyptian dialect datasets, revealing significant differences in performance that highlight the need for more dialect-specific models. The results confirm the effectiveness of EgyBERT model in processing and analyzing Arabic text expressed in Egyptian dialect, surpassing other language models included in the study. EgyBERT model is publicly available on \url{https://huggingface.co/faisalq/EgyBERT}.
Motivation & Objective
- To address the lack of large-scale, dialect-specific pretraining data for Egyptian Arabic in NLP.
- To develop a monodialectal language model specifically optimized for Egyptian dialect, overcoming limitations of multidialectal models.
- To create and release two new, large-scale Egyptian dialect corpora—ETC and EFC—for public use in NLP research.
- To evaluate EgyBERT's performance on diverse Egyptian dialect NLP tasks and compare it with existing multidialect models.
- To demonstrate the superiority of dialect-specific models over general-purpose Arabic language models for Egyptian dialect understanding.
Proposed method
- Pretrained EgyBERT using a masked language modeling objective on 10.4 GB of Egyptian dialect text from two newly constructed corpora.
- Constructed the Egyptian Tweets Corpus (ETC) with 34.33 million tweets (24.89 million sentences, 2.5 GB) from social media platforms.
- Built the Egyptian Forums Corpus (EFC) with 44.42 million sentences (7.9 GB) from Egyptian online forums and discussion boards.
- Fine-tuned EgyBERT on 10 diverse NLP tasks including sentiment analysis, sarcasm detection, abusive language identification, and topic classification.
- Evaluated performance using standard metrics: accuracy and macro F1-score across all tasks.
- Released the model and corpora publicly on Hugging Face and GitHub for reproducibility and community use.
Experimental results
Research questions
- RQ1Can a large language model pre-trained on a dedicated Egyptian dialect corpus outperform existing multidialect Arabic models on Egyptian dialect-specific NLP tasks?
- RQ2How does the size and domain specificity of training data impact model performance in dialectal Arabic NLP?
- RQ3What is the performance gap between monodialectal models (like EgyBERT) and multidialectal models (e.g., MARBERTv2, AraBERT) on Egyptian dialect datasets?
- RQ4To what extent do existing multidialectal models generalize to Egyptian dialect, and where do they fail?
- RQ5Can the newly introduced ETC and EFC corpora serve as foundational resources for future dialect-specific NLP research in Arabic?
Key findings
- EgyBERT achieved the highest average F1-score of 84.25% and accuracy of 87.33% across 10 evaluation datasets, outperforming all other comparative models.
- EgyBERT outperformed MARBERTv2, the second-best model, by 0.57% in F1-score and 0.14% in accuracy, demonstrating its superiority in dialect-specific tasks.
- EgyBERT achieved the highest F1-score in eight out of ten tasks and the highest accuracy in seven tasks, particularly excelling in sentiment analysis and abusive language detection.
- Despite being trained on a corpus 5 to 12 times smaller than those used by other models, EgyBERT achieved state-of-the-art performance, indicating the effectiveness of domain-specific pretraining.
- CAMeLBERT-DA performed the worst, with a significantly lower average F1-score of 81.60%, highlighting the limitations of general-purpose models on dialect-specific tasks.
- The ETC and EFC corpora are the largest Egyptian dialectal corpora reported in the literature, with EFC containing 7.9 GB of text and ETC containing 2.5 GB, both publicly released for research use.
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.