Elamur Research⌕
☰
home / papers / 2024 / Rasid at StanceEval: Fine-tuning MARBERT for Arabic Stance Detection

Rasid at StanceEval: Fine-tuning MARBERT for Arabic Stance Detection

Summary

This paper describes a team's entry to the StanceEval shared task on Arabic stance detection. The task is to decide whether a tweet's author is for, against, or neutral toward one of three topics: the COVID-19 vaccine, digital transformation, and women empowerment. The data comes from the MAWQIF Twitter corpus. It is informal, dialect-heavy, and has unevenly distributed classes. The authors compared three systems: a fine-tuned MARBERT, a fine-tuned AraBERT, and a classical ensemble built on TF-IDF features. They picked MARBERT because its pretraining data includes tweets in both dialects and MSA, which fits the task's register. They fed the models unprocessed text, since normalization gave no measurable gain. MARBERT scored highest overall with a macro F1 of 0.7566, ahead of AraBERT and the ensemble. However, AraBERT did better on the digital transformation target. The work shows that matching the pretraining domain to the target text matters more than heavy preprocessing. It also shows that contextual models clearly outperform n-gram classifiers on this kind of target-directed opinion task.

Key points

  • The data is the MAWQIF corpus, whose tweets are labeled for stance, sentiment and sarcasm. The training split has 3,502 tweets: 1,167 Covid Vaccine, 1,145 Digital Transformation and 1,190 Women Empowerment. The authors held out 20% of it as a validation set.
  • MARBERT has a BERT-Base-sized architecture (~163M parameters, 12 layers, hidden size 768, 12 heads). It was fine-tuned for 5 epochs with learning rate 1e-5, batch size 64 and a maximum length of 256 tokens, using Hugging Face tooling.
  • The baseline ensemble combines Logistic Regression, an SVM and Multinomial Naive Bayes. Its features are TF-IDF over word 1–2-grams plus character 2–5-grams.
  • Overall macro F1 was 0.7566 for MARBERT, 0.7344 for AraBERT and 0.7033 for the ensemble. MARBERT's best single target was Women Empowerment, with F1 0.8191.
  • The authors say MARBERT won everywhere, but the per-target table contradicts this on Digital Transformation, where AraBERT scored 0.7568 against MARBERT's 0.7394.

Interesting ideas

  • I1. Pick the pretrained encoder by how closely its pretraining text resembles the target genre, not by size or general reputation; register match can outweigh other differences. — For Mova (tree): When choosing or adapting the gparse encoder for informal or social-media English, prefer a backbone pretrained on similar text, and compare it against a general one.
  • I2. Do not assume text cleaning helps: run a controlled check with and without normalization, and drop the step if it adds nothing. — For Mova (tokens): Each normalization rule in the tokenizer and tagger pipeline could be justified by a with/without ablation rather than kept by habit.
  • I3. Keep a cheap but strong classical baseline (word plus character n-gram TF-IDF) to show how much the heavier model actually adds. — For Mova (learn): Use a bag-of-n-grams classifier as a negative control in evaluations, to confirm that tree- and frame-based gains are not achievable by surface statistics alone.
  • I4. Always break results down per target, because an averaged score can hide cases where the "winner" loses, as happened here. — For Mova (answer): Report school-test and QA accuracy per course, task type or text genre, so regressions hidden by the overall mean become visible.
  • I5. Stance is an attitude aimed at a specific target and differs from general emotional tone; treating the two as separate labels on the same text keeps them apart. — For Mova (frames): In prag, represent an author's stance as an explicit holder–target relation, distinct from sentiment and irony, so answers can explain whom or what the attitude concerns.

Our summary of the paper, in our own words — not its text. The work belongs to its authors; read it at the links above.

Fields: Linguistics & languages

Cited by

1 paper of our library cites it (of the 140884 whose bibliographies we read); each has a page here.

Cite

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/2024.arabicnlp-1.97

@inproceedings{alshenaifi2024rasid,
  title = {{Rasid at StanceEval: Fine-tuning MARBERT for Arabic Stance Detection}},
  author = {AlShenaifi, Nouf and Alangari, Nourah and Al-Negheimish, Hadeel},
  booktitle = {Proceedings of the Second Arabic Natural Language Processing Conference},
  year = {2024},
  doi = {10.18653/v1/2024.arabicnlp-1.97},
  url = {https://doi.org/10.18653/v1/2024.arabicnlp-1.97}
}

References

7 references, 4 of them with a card of ours. ↗ leads to the work, «find» searches for one we have no id for yet.

  1. Muhammad Abdul-Mageed, AbdelRahim Elmadany, and El Moatez Billah Nagoudi. 2021. ARBERT & MARBERT: Deep bidirectional transformers for Arabic. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers), pages 7088–7105, Online. Association for Computational Linguistics. ↗ our card
  2. Nora Alturayeif, Hamzah Luqman, Zaid Alyafeai, and Asma Yamani. 2024. Stanceeval 2024: The first arabic stance detection shared task. In Proceedings of The Second Arabic Natural Language Processing Conference (ArabicNLP 2024). find our card
  3. Nora Saleh Alturayeif, Hamzah Abdullah Luqman, and Moataz Aly Kamaleldin Ahmed. 2022. Mawqif: A multi-label Arabic dataset for target-specific stance detection. In Proceedings of the Seventh Arabic Natural Language Processing Workshop (WANLP), pages 174–184, Abu Dhabi, United Arab Emirates (Hybrid). Association for Computational Linguistics. find
  4. Wissam Antoun, Fady Baly, and Hazem Hajj. 2020. Arabert: Transformer-based model for arabic language understanding. In LREC 2020 Workshop Language Resources and Evaluation Conference 11–16 May 2020, page 9. find our card
  5. Dilek Küçük and Fazli Can. 2020. Stance detection: A survey. ACM Computing Surveys (CSUR), 53(1):1– 37. find
  6. Bo Pang, Lillian Lee, et al. 2008. Opinion mining and sentiment analysis. Foundations and Trends® in information retrieval, 2(1–2):1–135. find
  7. Thomas Wolf, Lysandre Debut, Victor Sanh, Julien Chaumond, Clement Delangue, Anthony Moi, Pier-ric Cistac, Tim Rault, Remi Louf, Morgan Funtow-icz, Joe Davison, Sam Shleifer, Patrick von Platen, Clara Ma, Yacine Jernite, Julien Plu, Canwen Xu, Teven Le Scao, Sylvain Gugger, Mariama Drame, Quentin Lhoest, and Alexander Rush. 2020. Transformers: State-of-the-art natural language processing. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing: System Demonstrations, pages 38–45, Online. Association for Computational Linguistics. ↗ our card

↑ back to top

This page in Markdown → https://md.research.elamur.ai/free/en/papers/alshenaifi-2024-rasid-stanceeval-fine-tuning-marbert/