Pre-training Transformer-based models such as BERT and ELECTRA on a collection of Arabic corpora, demonstrated by both AraBERT and AraELECTRA, shows an impressive result on downstream tasks. However, pre-training Transformer-based language models is computationally expensive, especially for large-scale models. Recently, Funnel Transformer has addressed the sequential redundancy inside Transformer architecture by compressing the sequence of hidden states, leading to a significant reduction in the pretraining cost. This paper empirically studies the performance and efficiency of building an Arabic language model with Funnel Transformer and ELECTRA objective. We find that our model achieves state-of-the-art results on several Arabic downstream tasks despite using less computational resources compared to other BERT-based models.
Description
This model was pre-trained on 44GB of Arabic corpora using
Funnel Transformer with ELECTRA objective
. This model has more parameters (1.39x) than ELECTRA-base architecture while having similar or slightly larger inference and fine-tuning time. The model was pre-trained with significantly less resources than state-of-the-art models.
Results on Arabic TyDi QA
Model
EM
F1
AraBERT02-Large
73.72
86.03
AraELECTRA-Base
74.91
86.68
ArabicTransformer-Small
74.70
85.89
ArabicTransformer-Base
75.57
87.22
Google Colab Examples
Text Classification with ArabicTransformer with PyTorchXLA on TPU or with PyTorch on GPU (Better reproducibility but slower).
Text Classification with ArabicTransformer and TPU and Keras API (Faster but reproducibility is not better than PyTorchXLA).
We would like to acknowledge the support we have from The TPU Research Cloud (TRC) team to grant us access to TPUv3 units.
@inproceedings{alrowili-shanker-2021-arabictransformer-efficient,
title = "{A}rabic{T}ransformer: Efficient Large {A}rabic Language Model with Funnel Transformer and {ELECTRA} Objective",
author = "Alrowili, Sultan and
Shanker, Vijay",
booktitle = "Findings of the Association for Computational Linguistics: EMNLP 2021",
month = nov,
year = "2021",
address = "Punta Cana, Dominican Republic",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2021.findings-emnlp.108",
pages = "1255--1261",
abstract = "Pre-training Transformer-based models such as BERT and ELECTRA on a collection of Arabic corpora, demonstrated by both AraBERT and AraELECTRA, shows an impressive result on downstream tasks. However, pre-training Transformer-based language models is computationally expensive, especially for large-scale models. Recently, Funnel Transformer has addressed the sequential redundancy inside Transformer architecture by compressing the sequence of hidden states, leading to a significant reduction in the pre-training cost. This paper empirically studies the performance and efficiency of building an Arabic language model with Funnel Transformer and ELECTRA objective. We find that our model achieves state-of-the-art results on several Arabic downstream tasks despite using less computational resources compared to other BERT-based models.",
}
Runs of sultan ArabicTransformer-base on huggingface.co
43
Total runs
2
24-hour runs
2
3-day runs
4
7-day runs
33
30-day runs
More Information About ArabicTransformer-base huggingface.co Model
ArabicTransformer-base huggingface.co
ArabicTransformer-base huggingface.co is an AI model on huggingface.co that provides ArabicTransformer-base's model effect (), which can be used instantly with this sultan ArabicTransformer-base model. huggingface.co supports a free trial of the ArabicTransformer-base model, and also provides paid use of the ArabicTransformer-base. Support call ArabicTransformer-base model through api, including Node.js, Python, http.
ArabicTransformer-base huggingface.co is an online trial and call api platform, which integrates ArabicTransformer-base's modeling effects, including api services, and provides a free online trial of ArabicTransformer-base, you can try ArabicTransformer-base online for free by clicking the link below.
sultan ArabicTransformer-base online free url in huggingface.co:
ArabicTransformer-base is an open source model from GitHub that offers a free installation service, and any user can find ArabicTransformer-base on GitHub to install. At the same time, huggingface.co provides the effect of ArabicTransformer-base install, users can directly use ArabicTransformer-base installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
ArabicTransformer-base install url in huggingface.co: