AraRoBERTa-OM is a RoBERTa-base model pre-trained from scratch on Omani Arabic text. It is one of seven mono-dialectal models introduced in Weakly and Semi-Supervised Learning for Arabic Text Classification using Monodialectal Language Models (WANLP 2022).
| Architecture | RoBERTa-base (12 layers, 768 hidden, 126M params), trained from scratch with MLM |
| Tokenizer | Byte-level BPE, 52K vocabulary |
| Pre-training data | 200,384 geolocated tweets from Oman (3.8M tokens) |
| Training | Batch size 32, 10 epochs, 1× Tesla P100 |
from transformers import pipeline
fill_mask = pipeline("fill-mask", model="reemalyami/AraRoBERTa-OM")
fill_mask("الجو اليوم <mask> واجد")
For classification, load the model with AutoModelForSequenceClassification and fine-tune it as usual. During pre-training, tweets were normalized (Arabic letter normalization, with digits and character elongation removed), so applying similar preprocessing to your input may help.
Binary dialect identification (F1) on manually annotated text plus NADI 2020 data:
| AraRoBERTa-OM | AraBERT | mBERT | XLM-R | LR (TF-IDF) |
|---|---|---|---|---|
| 0.718 | 0.845 | 0.839 | 0.896 | 0.883 |
With the paper's semi-supervised method, F1 is 0.80. With weak supervision from dialect dictionaries, it is 0.40.
| Model | Dialect | Tokens | Supervised F1 |
|---|---|---|---|
| AraRoBERTa-SA | Saudi Arabia | 45.4M | 0.836 |
| AraRoBERTa-EGY | Egypt | 37.2M | 0.934 |
| AraRoBERTa-KU | Kuwait | 8.9M | 0.916 |
| AraRoBERTa-OM (this model) | Oman | 3.8M | 0.718 |
| AraRoBERTa-LB | Lebanon | 3.6M | 0.849 |
| AraRoBERTa-JO | Jordan | 2.6M | 0.848 |
| AraRoBERTa-DZ | Algeria | 1.9M | 0.859 |
@inproceedings{alyami-al-zaidy-2022-weakly,
title = "Weakly and Semi-Supervised Learning for {A}rabic Text Classification using Monodialectal Language Models",
author = "AlYami, Reem and Al-Zaidy, Rabah",
booktitle = "Proceedings of the The Seventh Arabic Natural Language Processing Workshop (WANLP)",
month = dec,
year = "2022",
address = "Abu Dhabi, United Arab Emirates (Hybrid)",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2022.wanlp-1.24",
pages = "260--272",
}
Contact: Reem AlYami · LinkedIn · reem.yami@kfupm.edu.sa
pytorch_model.bin 504 MBtraining_args.bin 2.9 kB