Elamur Research⌕
☰
home / papers / 2021 / iCompass at Shared Task on Sarcasm and Sentiment Detection in Arabic

iCompass at Shared Task on Sarcasm and Sentiment Detection in Arabic

Summary

The paper describes the iCompass team's entry to the 2021 Arabic shared task on sarcasm detection (Subtask 1) and three-way sentiment classification (Subtask 2). The task is hard for three reasons: labelled data is scarce, sarcasm depends on culture, and the same word can carry opposite polarity in different Arabic dialects. The team used the ArSarcasm-v2 tweet corpus, split it 80:20 with a deliberately balanced validation part, and stripped emojis, URLs, diacritics and punctuation. They then fine-tuned four pretrained encoders: mBERT, AraBERT, ARBERT and MARBERT. MARBERT, pretrained on dialect-rich tweets, was clearly best on both subtasks, and it was used for the final submission. On the official test set the system placed 8th in sentiment analysis but only 21st in sarcasm detection. The authors trace the weak sarcasm result mainly to class imbalance in the training data. The work shows that matching the pretraining domain and dialect matters more than generic multilinguality for noisy, dialectal social-media text.

Key points

  • ArSarcasm-v2 contains 12548 tweets, each labelled for sentiment (POS/NEG/NEU), sarcasm (TRUE/FALSE) and dialect (msa, gulf, egypt, levant, magreb). After the split, training kept only 913 sarcastic tweets against 9125 non-sarcastic ones.
  • MARBERT was pretrained on 128 GB of Arabic tweets with a 100k WordPiece vocabulary. The final setup used a learning rate of 2e-5, batch size 128 and max sequence length 128, with 8 epochs for sarcasm and 3 for sentiment. Each run took about 5 minutes on a Colab TPU.
  • On development data for sarcasm, MARBERT reached 68.8% accuracy and 57.7% F1-sarcastic, against 47% for AraBERT and 31.2% for mBERT. Sarcastic-class precision was high (89.7%) but recall was low (42.5%).
  • On development data for sentiment, MARBERT reached 72% accuracy and 72.95% F-PN, against 68.7% for AraBERT and 60.15% for mBERT. Neutral was the class most often confused with the others.
  • Official test results were 70.85% F-PN (rank 8; the winner scored 74.80%) and 48.6% F1-sarcastic (rank 21; the winner scored 62.25%).

Interesting ideas

  • I1. The authors show that one word can signal praise in one dialect and insult in another, so polarity belongs to a word-and-variety pair rather than to the word alone. This matters for any system that handles regional varieties. — For Mova (frames): The irony component could store evaluative polarity with a register or variety tag, so a reversal is flagged only when the speaker's variety makes the surface word positive.
  • I2. The paper uses an operational definition of sarcasm: an implicitly negative stance expressed through positive surface wording. It also notes cases where praise at the start of a tweet flips to criticism at the end. This gives a testable structural cue instead of a vague label. — For Mova (frames): Implicature detection could compare the polarity of the explicit evaluation with the polarity implied by the described situation, and mark a mismatch as candidate irony with an explanation trace.
  • I3. The comparison across encoders suggests that pretraining on text resembling the target domain (dialectal tweets) beats both general multilingual models and larger formal-text models. — For Mova (learn): When choosing or training witness parsers for silver data, give extra weight to the parser whose training text best matches the target genre, and track agreement by genre.
  • I4. Reporting per-class precision and recall, plus confusion matrices, exposed a model that is very precise on sarcasm but misses most of it. A single accuracy figure would hide this failure. — For Mova (learn): Evaluation reports could always break results down by class or phenomenon, so a high-precision, low-recall pattern in rare cases like irony is caught early.
  • I5. The split design is a cautionary example: balancing the validation set pulled most of the rare class out of training, and the authors themselves name the resulting imbalance as the main cause of weak sarcasm scores. — For Mova (learn): Held-out sets for rare phenomena should be built without starving the training pool, for example with stratified sampling, and the training-side class counts should be checked before blaming the model.

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

2 papers of our library cite it (of the 140884 whose bibliographies we read); 1 of them have a page here, 1 not yet.

Cite

The paper itself, not this page. BibTeX from the library's record of the work.

@inproceedings{naski2021icompass,
  title = {{iCompass at Shared Task on Sarcasm and Sentiment Detection in Arabic}},
  author = {Naski, Malek and Messaoudi, Abir and Haddad, Hatem and BenHajhmida, Moez and Fourati, Chayma and Mabrouk, Aymen Ben Elhaj},
  booktitle = {Proceedings of the Sixth Arabic Natural Language Processing Workshop},
  year = {2021},
  url = {https://aclanthology.org/2021.wanlp-1.50/}
}

References

9 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, Mona Diab, and Mohammed Korayem. 2011. Subjectivity and sentiment analysis of modern standard Arabic. In Proceedings of the 49th Annual Meeting of the Association for Computational Linguistics: Human Language Technologies, pages 587–591, Portland, Oregon, USA. Association for Computational Linguistics. find
  2. Muhammad Abdul-Mageed, AbdelRahim Elmadany, and El Moatez Billah Nagoudi. 2021. Arbert marbert: Deep bidirectional transformers for arabic. ArXiv, abs/2101.01785. ↗ our card
  3. Ibrahim Abu Farha and Walid Magdy. 2020. From Arabic sentiment analysis to sarcasm detection: The Ar-Sarcasm dataset. In Proceedings of the 4th Workshop on Open-Source Arabic Corpora and Processing Tools, with a Shared Task on Offensive Language Detection, pages 32–39, Marseille, France. European Language Resource Association. find
  4. Ibrahim Abu Farha, Wajdi Zaghouani, and Walid Magdy. 2021. Overview of the wanlp 2021 shared task on sarcasm and sentiment detection in arabic. In Proceedings of the Sixth Arabic Natural Language Processing Workshop. find our card
  5. Wissam Antoun, Fady Baly, and Hazem Hajj. 2020. AraBERT: Transformer-based model for Arabic language understanding. In Proceedings of the 4th Workshop on Open-Source Arabic Corpora and Processing Tools, with a Shared Task on Offensive Language Detection, pages 9–15. find our card
  6. Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. 2019. BERT: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pages 4171–4186. ↗
  7. Hala Mulki, Hatem Haddad, and İsmail Babaoğlu. 2018. Modern trends in arabic sentiment analysis: A survey. TAL Traitement Automatique des Langues, 58(3):15–39. find
  8. Telmo Pires, Eva Schlinger, and Dan Garrette. 2019. How multilingual is multilingual BERT? In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 4996– 5001, Florence, Italy. Association for Computational Linguistics. ↗ our card
  9. Lan Wuwei, Chen Yang, Xu Wei, and Ritter Alan. 2020. Gigabert: Zero-shot transfer learning from english to arabic. In Proceedings of The 2020 Conference on Empirical Methods on Natural Language Processing (EMNLP). find

↑ back to top

This page in Markdown → https://md.research.elamur.ai/free/en/papers/naski-2021-icompass-shared-task-sarcasm-sentiment/