Enhancing Arabic Sentiment Analysis via MARBERT: Domain Adaptation With Pseudo-Labeling and Contrastive Learning

3Citations
Citations of this article
5Readers
Mendeley users who have this article in their library.

This article is free to access.

Abstract

Cross-domain sentiment analysis in Arabic is still challenging due to the scarcity of labeled data and the inherent complexity of identifying sarcasm, when ostensibly negative language expresses good sentiment. In our study, we address these issues with a comprehensive semi-supervised framework that combines domain adaptation, pseudo-labeling, and contrastive learning, with MARBERT, a pretrained Arabic language model. We adapted a model originally trained on the Large Arabic Book Reviews (LABR) dataset to the ArSarcasm dataset. This was achieved through five iterative runs of pseudo-labeling, using a dual-threshold confidence filter (0.85–0.75 for general samples and 0.70–0.60 for positive samples) to ensure reliable learning. Our approach yielded strong results, achieving a macro F1 score of 66.25% (±0.49) and an overall accuracy of 70.21% (±0.43) on the ArSarcasm test set. The model demonstrated particularly robust performance in classifying neutral (F1: 75.38%) and negative (F1: 70.20%) sentiments. However, detecting positive sentiment in sarcastic expressions remains challenging, as reflected in a lower F1 score of 53.18%, underscoring the complexity of this specific linguistic phenomenon. This study ultimately shows the synergistic value of integrating domain adaptation, pseudo-labeling, and contrastive learning for semi-supervised sentiment analysis in low-resource, sarcasm-heavy Arabic contexts. It also provides empirical insight into a key limitation of current transformer-based models: accurately detecting the incongruence that defines sarcasm.

Cite

CITATION STYLE

APA

Ezzeldin, M. R., Abdalla, G. S. S., & Faal, A. (2025). Enhancing Arabic Sentiment Analysis via MARBERT: Domain Adaptation With Pseudo-Labeling and Contrastive Learning. Engineering Reports, 7(12). https://doi.org/10.1002/eng2.70528

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free