Downloads · 30 days
21
0% of all-time downloads
SaiedAlshahrani/arwiki_20230101_roberta_mlm_bots
arwiki_20230101_roberta_mlm_bots is a fill-mask model from SaiedAlshahrani. Use it when you need the model to fill a missing word. It is set up for transformers. The card lists the license as mit.
should probably proofread and complete it, then remove this comment. --
Downloads · 30 days
21
0% of all-time downloads
All-time downloads
7.1K
Public
Repo size
5.1 GB
Likes
0
Public
Click a slice to open those files.
.csv2.7 GB · 89%
From the Hugging Face model README
This arRoBERTa<sub>BASE</sub> model has been trained from scratch on the Arabic Wikipedia articles, downloaded on the 1st of January 2023, processed using
Gensim Python library, preprocessed using tr Linux/Unix utility and CAMeLTools Python toolkit for Arabic NLP, and hosted here at SaiedAlshahrani/Arabic_Wikipedia_20230101_bots.
It achieves the following results on the evaluation set:
We trained this Arabic Wikipedia Masked Language Model (arRoBERTa<sub>BASE</sub>) to evaluate its performance using the Fill-Mask evaluation task and the Masked Arab States Dataset (MASD) dataset and measure the impact of template-based translation on the Egyptian Arabic Wikipedia edition.
For more details about the experiment, please read and cite our paper:
@inproceedings{alshahrani-etal-2023-performance,
title = "{Performance Implications of Using Unrepresentative Corpora in {A}rabic Natural Language Processing}",
author = "Alshahrani, Saied and Alshahrani, Norah and Dey, Soumyabrata and Matthews, Jeanna",
booktitle = "Proceedings of the The First Arabic Natural Language Processing Conference (ArabicNLP 2023)",
month = December,
year = "2023",
address = "Singapore (Hybrid)",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2023.arabicnlp-1.19",
doi = "10.18653/v1/2023.arabicnlp-1.19",
pages = "218--231",
abstract = "Wikipedia articles are a widely used source of training data for Natural Language Processing (NLP) research, particularly as corpora for low-resource languages like Arabic. However, it is essential to understand the extent to which these corpora reflect the representative contributions of native speakers, especially when many entries in a given language are directly translated from other languages or automatically generated through automated mechanisms. In this paper, we study the performance implications of using inorganic corpora that are not representative of native speakers and are generated through automated techniques such as bot generation or automated template-based translation. The case of the Arabic Wikipedia editions gives a unique case study of this since the Moroccan Arabic Wikipedia edition (ARY) is small but representative, the Egyptian Arabic Wikipedia edition (ARZ) is large but unrepresentative, and the Modern Standard Arabic Wikipedia edition (AR) is both large and more representative. We intrinsically evaluate the performance of two main NLP upstream tasks, namely word representation and language modeling, using word analogy evaluations and fill-mask evaluations using our two newly created datasets: Arab States Analogy Dataset (ASAD) and Masked Arab States Dataset (MASD). We demonstrate that for good NLP performance, we need both large and organic corpora; neither alone is sufficient. We show that producing large corpora through automated means can be a counter-productive, producing models that both perform worse and lack cultural richness and meaningful representation of the Arabic language and its native speakers.",
}
We do not recommend using this model because it was trained only on the Arabic Wikipedia articles, <u>unless</u> you fine-tune the model on a large, organic, and representative Arabic dataset.
We have trained this model on the Arabic Wikipedia articles (SaiedAlshahrani/Arabic_Wikipedia_20230101_bots) without using any validation or evaluation data (only training data) due to a lack of computational power.
We have trained this model using the Paperspace GPU-Cloud service. We used a machine with 8 CPUs, 45GB RAM, and A6000 GPU with 48GB RAM.
The following hyperparameters were used during training:
| Epoch | Step | Training Loss |
|---|---|---|
| 1 | 3000 | 5.681200 |
| 2 | 6000 | 3.777100 |
| 3 | 9000 | 3.246300 |
| 4 | 12000 | 3.012100 |
| 5 | 15000 | 2.888400 |
| Train Runtime | Train Samples Per Second | Train Steps Per Second | Total Flos | Train Loss | Epoch |
|---|---|---|---|---|---|
| 17048.756800 | 248.355000 | 0.970000 | 140390797515571200.000000 | 3.639375 | 5.000000 |
This arRoBERTa<sub>BASE</sub> model has been evaluated on the Masked Arab States Dataset (SaiedAlshahrani/MASD).
| K=10 | K=50 | K=100 |
|---|---|---|
| 43.12% | 45% | 50.62% |