[Paper Review] Plumeria at SemEval-2022 Task 6: Robust Approaches for Sarcasm Detection for English and Arabic Using Transformers and Data Augmentation
This paper presents Plumeria's robust sarcasm detection system for SemEval-2022 Task 6, using BERT-based transformers with data augmentation and preprocessing strategies for both English and Arabic. The approach achieved consistent top-tier performance—ranking 4th in three subtasks and 6th in one—demonstrating model stability and effectiveness across multilingual sarcasm detection tasks through strategic dataset augmentation and fine-tuning.
This paper describes our submission to SemEval-2022 Task 6 on sarcasm detection and its five subtasks for English and Arabic. Sarcasm conveys a meaning which contradicts the literal meaning, and it is mainly found on social networks. It has a significant role in understanding the intention of the user. For detecting sarcasm, we used deep learning techniques based on transformers due to its success in the field of Natural Language Processing (NLP) without the need for feature engineering. The datasets were taken from tweets. We created new datasets by augmenting with external data or by using word embeddings and repetition of instances. Experiments were done on the datasets with different types of preprocessing because it is crucial in this task. The rank of our team was consistent across four subtasks (fourth rank in three subtasks and sixth rank in one subtask); whereas other teams might be in the top ranks for some subtasks but rank drastically less in other subtasks. This implies the robustness and stability of the models and the techniques we used.
Motivation & Objective
- To develop a robust sarcasm detection system capable of generalizing across diverse subtasks and languages in the SemEval-2022 shared task.
- To address class imbalance and limited training data in sarcasm detection by creating augmented datasets through repetition and word embedding-based methods.
- To evaluate the impact of different preprocessing strategies, loss functions, and hyperparameters on model performance in multilingual sarcasm detection.
- To compare the effectiveness of standalone transformer models versus hierarchical transformer-BiLSTM architectures for sarcasm classification.
- To ensure consistent performance across subtasks, avoiding the common issue of high performance in some subtasks and poor results in others.
Proposed method
- Fine-tuned BERT-base and BERT-large models (cased and uncased) on original and augmented datasets for both English and Arabic sarcasm detection.
- Applied four types of preprocessing (Type I–IV) to optimize input representation, with Type II showing the best validation performance.
- Created augmented datasets by combining original data with external sarcasm datasets and applying data augmentation via word embedding repetition and instance duplication.
- Used a hierarchical architecture by stacking a BiLSTM layer on top of the transformer encoder, with and without an attention mechanism, to enhance contextual understanding.
- Employed weighted cross-entropy loss to address class imbalance, particularly in subtasks with skewed sarcasm-to-non-sarcasm ratios.
- Selected models based on validation performance and submitted results using the best-performing configuration, including Type-II preprocessing and optimal hyperparameters (e.g., 8e-6 or 3e-5 initial learning rate).
Experimental results
Research questions
- RQ1How do different preprocessing strategies (Type I–IV) affect the performance of transformer-based sarcasm detection models?
- RQ2To what extent does data augmentation using word embeddings or instance repetition improve model generalization and robustness across subtasks?
- RQ3Can a hierarchical transformer-BiLSTM model with or without attention outperform standalone transformer models in sarcasm detection?
- RQ4How does the use of weighted loss functions impact performance on imbalanced sarcasm detection datasets?
- RQ5Does the combination of original and external datasets lead to more stable and consistent performance across multiple subtasks in multilingual sarcasm detection?
Key findings
- The team achieved a consistent rank of 4th in three subtasks and 6th in one subtask, demonstrating robustness and stability across diverse evaluation conditions.
- For subtask C (English), the BERT-large (cased) model with Type-I preprocessing achieved a test accuracy of 0.79, ranking 4th on the official leaderboard.
- For subtask C (Arabic), the CAMeLBERT-Mix model with Type-II preprocessing achieved a test accuracy of 0.87, ranking 4th on the leaderboard.
- The use of augmented datasets—especially those created via embedding-based repetition and external data—significantly improved model performance, particularly in low-resource settings.
- Type-II preprocessing consistently outperformed other preprocessing types in validation, justifying its use in final submissions.
- Fine-tuned standalone BERT models with optimal hyperparameters (learning rate, epochs) and weighted loss functions yielded the best results, especially in subtasks A and B.
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.