[Paper Review] Deep Multi-Task Model for Sarcasm Detection and Sentiment Analysis in Arabic Language
This paper proposes a deep multi-task learning model that jointly performs sarcasm detection and sentiment analysis in Arabic using MARBERT, a fine-tuned BERT-based model with a multi-task attention interaction module. The model achieves state-of-the-art performance, outperforming single-task baselines and securing first place in the sentiment analysis subtask and fourth in sarcasm detection at the ArSarcasm shared task.
The prominence of figurative language devices, such as sarcasm and irony, poses serious challenges for Arabic Sentiment Analysis (SA). While previous research works tackle SA and sarcasm detection separately, this paper introduces an end-to-end deep Multi-Task Learning (MTL) model, allowing knowledge interaction between the two tasks. Our MTL model's architecture consists of a Bidirectional Encoder Representation from Transformers (BERT) model, a multi-task attention interaction module, and two task classifiers. The overall obtained results show that our proposed model outperforms its single-task counterparts on both SA and sarcasm detection sub-tasks.
Motivation & Objective
- To address the challenge of figurative language, particularly sarcasm and irony, which reverse sentiment polarity and hinder Arabic sentiment analysis.
- To overcome the limitations of prior single-task approaches by enabling knowledge sharing between sarcasm detection and sentiment analysis.
- To develop an end-to-end deep multi-task learning model that improves performance on both subtasks through shared representations and task-specific attention.
- To evaluate the model on the ArSarcasm-v2 dataset, which includes annotated sarcasm and sentiment labels across MSA and dialectal Arabic.
- To demonstrate the effectiveness of task-interaction via a learnable shared matrix and Sigmoid activation in enhancing both sarcasm and sentiment classification.
Proposed method
- The model uses MARBERT, a BERT-based transformer model pre-trained on 1 billion Arabic tweets, for contextualized word embeddings.
- A multi-task attention interaction module includes two task-specific attention layers for extracting discriminative features for sarcasm and sentiment tasks.
- The module employs a learnable shared matrix and Sigmoid activation to enable knowledge sharing between the two tasks.
- Two separate classifiers are applied to the attended representations for sarcasm detection (binary) and sentiment analysis (three-class: positive, negative, neutral).
- The model is fine-tuned end-to-end using Adam optimizer with a fixed initial learning rate of 5×10⁻⁶, batch size 64, and 5 training epochs.
- The training data is split 80% for training and 20% for development, with macro-averaged F1, precision, recall, and accuracy used for evaluation.
Experimental results
Research questions
- RQ1Can joint learning of sarcasm detection and sentiment analysis improve performance on both tasks in Arabic text?
- RQ2How effective is a multi-task attention interaction module with a learnable shared matrix in enabling knowledge transfer between sarcasm and sentiment tasks?
- RQ3Does incorporating task-specific attention layers enhance feature representation for both sarcasm and sentiment classification?
- RQ4How does the proposed multi-task model compare to single-task baselines in terms of F1 scores for sarcastic and sentiment classes?
- RQ5To what extent does the model’s performance vary across different Arabic dialects and sentiment polarities?
Key findings
- The MTL_ATTINTER model achieved the highest F1 score for sarcasm detection on the test set at 0.7183, outperforming single-task and other MTL baselines.
- For sentiment analysis, the MTL_ATTINTER model achieved an F1 score of 0.7107 on the test set, ranking first among all submitted systems in the shared task.
- The model secured the top position in the sentiment analysis subtask and fourth place in the sarcasm detection subtask in the official ArSarcasm shared task evaluation.
- The confusion matrices show that the model effectively leverages shared signals, particularly since most sarcastic tweets are negative, improving detection of both sarcastic and negative sentiment classes.
- The integration of task-specific attention and interaction mechanisms led to consistent improvements in F1, F1_Sarc, and F1_PN across both dev and test sets.
- The model demonstrated robustness on unbalanced data, with strong performance on the underrepresented sarcastic class despite its low frequency.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.