CoolFace
Modelpublic

classla/xlm-r-slobertic

sourceHugging Facecc-by-sa-4.0updated 2y agoView on Hugging Face
0likes493downloads
Model Card

XLM-R-SloBertić

This model was produced by pre-training XLM-Roberta-large 48k steps on South Slavic languages using XLM-R-BERTić dataset

Benchmarking

Three tasks were chosen for model evaluation:

  • Named Entity Recognition (NER)
  • Sentiment regression
  • COPA (Choice of plausible alternatives)

In all cases, this model was finetuned for specific downstream tasks.

NER

Mean F1 scores were used to evaluate performance. Datasets used: hr500k, ReLDI-sr, ReLDI-hr, and SETimes.SR.

systemdatasetF1 score
XLM-R-BERTićhr500k0.927
BERTićhr500k0.925
**XLM-R-SloBERTić**hr500k0.923
XLM-Roberta-Largehr500k0.919
crosloengual-berthr500k0.918
XLM-Roberta-Basehr500k0.903
systemdatasetF1 score
**XLM-R-SloBERTić**ReLDI-hr0.812
XLM-R-BERTićReLDI-hr0.809
crosloengual-bertReLDI-hr0.794
BERTićReLDI-hr0.792
XLM-Roberta-LargeReLDI-hr0.791
XLM-Roberta-BaseReLDI-hr0.763
systemdatasetF1 score
**XLM-R-SloBERTić**SETimes.SR0.949
XLM-R-BERTićSETimes.SR0.940
BERTićSETimes.SR0.936
XLM-Roberta-LargeSETimes.SR0.933
crosloengual-bertSETimes.SR0.922
XLM-Roberta-BaseSETimes.SR0.914
systemdatasetF1 score
XLM-R-BERTićReLDI-sr0.841
**XLM-R-SloBERTić**ReLDI-sr0.824
BERTićReLDI-sr0.798
XLM-Roberta-LargeReLDI-sr0.774
crosloengual-bertReLDI-sr0.751
XLM-Roberta-BaseReLDI-sr0.734

Sentiment regression

ParlaSent dataset was used to evaluate sentiment regression for Bosnian, Croatian, and Serbian languages. The procedure is explained in greater detail in the dedicated benchmarking repository.

systemtraintestr^2
xlm-r-parlasentParlaSent_BCS.jsonlParlaSentBCStest.jsonl0.615
BERTićParlaSent_BCS.jsonlParlaSentBCStest.jsonl0.612
**XLM-R-SloBERTić**ParlaSent_BCS.jsonlParlaSentBCStest.jsonl0.607
XLM-Roberta-LargeParlaSent_BCS.jsonlParlaSentBCStest.jsonl0.605
XLM-R-BERTićParlaSent_BCS.jsonlParlaSentBCStest.jsonl0.601
crosloengual-bertParlaSent_BCS.jsonlParlaSentBCStest.jsonl0.537
XLM-Roberta-BaseParlaSent_BCS.jsonlParlaSentBCStest.jsonl0.500
dummy (mean)ParlaSent_BCS.jsonlParlaSentBCStest.jsonl-0.12

COPA

systemdatasetAccuracy score
BERTićCopa-SR0.689
**XLM-R-SloBERTić**Copa-SR0.665
XLM-R-BERTićCopa-SR0.637
crosloengual-bertCopa-SR0.607
XLM-Roberta-BaseCopa-SR0.573
XLM-Roberta-LargeCopa-SR0.570
systemdatasetAccuracy score
BERTićCopa-HR0.669
**XLM-R-SloBERTić**Copa-HR0.628
XLM-R-BERTićCopa-HR0.635
crosloengual-bertCopa-HR0.669
XLM-Roberta-BaseCopa-HR0.585
XLM-Roberta-LargeCopa-HR0.571

Citation

<!--- The following paper has been submitted for review:

@misc{ljubesic2024language,
  author       = "Ljube\v{s}i\'{c}, Nikola and Suchomel, Vit and Rupnik, Peter and Kuzman, Taja and van Noord, Rik",
  title        = "Language Models on a Diet: Cost-Efficient Development of Encoders for Closely-Related Languages via Additional Pretraining",
  howpublished = "Submitted for review",
  year         = "2024",
}

--->

Please cite the following paper:

 @article{Ljubešić_Suchomel_Rupnik_Kuzman_van Noord_2024,
title={Language Models on a Diet: Cost-Efficient Development of Encoders for Closely-Related Languages via Additional Pretraining},
url={http://arxiv.org/abs/2404.05428},
DOI={10.48550/arXiv.2404.05428},
abstractNote={The world of language models is going through turbulent times, better and ever larger models are coming out at an unprecedented speed. However, we argue that, especially for the scientific community, encoder models of up to 1 billion parameters are still very much needed, their primary usage being in enriching large collections of data with metadata necessary for downstream research. We investigate the best way to ensure the existence of such encoder models on the set of very closely related languages - Croatian, Serbian, Bosnian and Montenegrin, by setting up a diverse benchmark for these languages, and comparing the trained-from-scratch models with the new models constructed via additional pretraining of existing multilingual models. We show that comparable performance to dedicated from-scratch models can be obtained by additionally pretraining available multilingual models even with a limited amount of computation. We also show that neighboring languages, in our case Slovenian, can be included in the additional pretraining with little to no loss in the performance of the final model.},
note={arXiv:2404.05428 [cs]},
 number={arXiv:2404.05428},
publisher={arXiv},
author={Ljubešić, Nikola and Suchomel, Vít and Rupnik, Peter and Kuzman, Taja and van Noord, Rik},
year={2024},
month=apr
}