[Paper Review] SaudiBERT: A Large Language Model Pretrained on Saudi Dialect Corpora
This paper introduces SaudiBERT, a BERT-based language model pretrained exclusively on Saudi dialect text using two large-scale corpora: the 141M-tweet Saudi Tweets Mega Corpus (STMC) and the 15.2GB Saudi Forums Corpus (SFC). SaudiBERT achieves state-of-the-art performance with average F1-scores of 86.15% (sentiment analysis) and 87.86% (text classification), outperforming six multidialect Arabic models, and is publicly available on Hugging Face.
In this paper, we introduce SaudiBERT, a monodialect Arabic language model pretrained exclusively on Saudi dialectal text. To demonstrate the model's effectiveness, we compared SaudiBERT with six different multidialect Arabic language models across 11 evaluation datasets, which are divided into two groups: sentiment analysis and text classification. SaudiBERT achieved average F1-scores of 86.15\% and 87.86\% in these groups respectively, significantly outperforming all other comparative models. Additionally, we present two novel Saudi dialectal corpora: the Saudi Tweets Mega Corpus (STMC), which contains over 141 million tweets in Saudi dialect, and the Saudi Forums Corpus (SFC), which includes 15.2 GB of text collected from five Saudi online forums. Both corpora are used in pretraining the proposed model, and they are the largest Saudi dialectal corpora ever reported in the literature. The results confirm the effectiveness of SaudiBERT in understanding and analyzing Arabic text expressed in Saudi dialect, achieving state-of-the-art results in most tasks and surpassing other language models included in the study. SaudiBERT model is publicly available on \url{https://huggingface.co/faisalq/SaudiBERT}.
Motivation & Objective
- To address the lack of specialized NLP tools for Saudi dialect by developing a monodialectal language model tailored to its linguistic nuances.
- To overcome challenges in processing informal, regionally variant Saudi Arabic due to non-standardized spelling and heavy use of slang and idioms.
- To create and release the largest publicly available Saudi dialectal text corpora to support future NLP research in Arabic dialects.
- To demonstrate that a domain-specific model like SaudiBERT outperforms general multidialect Arabic models in tasks involving Saudi dialect.
- To establish a benchmark for Saudi dialect NLP by evaluating performance across 11 diverse tasks including sentiment analysis, sarcasm detection, and dialect identification.
Proposed method
- Pretrained SaudiBERT from scratch using the BERT architecture on a mixture of two large-scale, domain-specific corpora: STMC (141M tweets) and SFC (15.2GB from online forums).
- Used a domain-specific vocabulary of 75,000 wordpieces, smaller than general-purpose models like MARBERTv2 (100,000 wordpieces), reducing model size to 143M parameters.
- Applied standard BERT pretraining objectives: masked language modeling and next sentence prediction, fine-tuned on 11 downstream NLP tasks.
- Trained the model for only 12 epochs on a 160GB corpus, significantly fewer than MARBERTv2’s 40 epochs, due to focused, high-quality dialect-specific data.
- Evaluated performance using standard NLP metrics: accuracy and F1-score across 11 datasets grouped into sentiment analysis and text classification tasks.
- Released the model and both corpora (STMC and SFC-mini) via Hugging Face and GitHub for public access and reproducibility.
Experimental results
Research questions
- RQ1Can a monodialectal BERT-based language model pretrained exclusively on Saudi dialect text outperform general multidialect Arabic models in downstream NLP tasks?
- RQ2How effective is SaudiBERT in handling the linguistic diversity and informal features of Saudi dialect, such as regional slang and non-standard spelling?
- RQ3What is the performance of SaudiBERT across a diverse set of tasks, including sentiment analysis, sarcasm detection, and dialect identification?
- RQ4How do the newly constructed STMC and SFC corpora compare in scale and quality to existing Arabic dialect corpora in the literature?
- RQ5To what extent does model size and pretraining efficiency (e.g., fewer epochs) correlate with performance on dialect-specific NLP tasks?
Key findings
- SaudiBERT achieved an average F1-score of 86.15% on the sentiment analysis group, significantly outperforming all six comparative multidialect models.
- On the text classification group, SaudiBERT achieved an average F1-score of 87.86%, ranking first and surpassing even MARBERTv2, the second-best model.
- In the SDC-EDC task, which contains a high proportion of Egyptian dialect, SaudiBERT was slightly outperformed by MARBERTv2, but still achieved 98.00% F1, indicating strong robustness.
- SaudiBERT achieved the highest accuracy and F1-score in four out of five tasks in the text classification group, demonstrating strong generalization on dialect-specific tasks.
- Despite having 12% fewer parameters (143M vs. 163M), SaudiBERT outperformed MARBERTv2 in most tasks, indicating higher parameter efficiency due to domain-specific pretraining.
- The model required only 12 pretraining epochs, significantly fewer than MARBERTv2’s 40 epochs, highlighting the efficiency of using high-quality, focused dialectal corpora.
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.