Skip to main content
QUICK REVIEW

[Paper Review] AlexU-AIC at Arabic Hate Speech 2022: Contrast to Classify

Ahmad Shapiro, Ayman Khalafallah|arXiv (Cornell University)|Jul 18, 2022
Hate Speech and Cyberbullying DetectionComputer Science9 citations
TL;DR

This paper presents a contrastive learning and multi-task learning approach to improve Arabic hate speech detection on a small, imbalanced dataset from the OSACT5 2022 shared task. By combining contrastive pre-training, multi-task fine-tuning, and model ensembling, the method achieves macro F1 scores of 0.841 (Sub-task A), 0.817 (Sub-task B), and 0.476 (Sub-task C), significantly outperforming baseline models.

ABSTRACT

Online presence on social media platforms such as Facebook and Twitter has become a daily habit for internet users. Despite the vast amount of services the platforms offer for their users, users suffer from cyber-bullying, which further leads to mental abuse and may escalate to cause physical harm to individuals or targeted groups. In this paper, we present our submission to the Arabic Hate Speech 2022 Shared Task Workshop (OSACT5 2022) using the associated Arabic Twitter dataset. The shared task consists of 3 sub-tasks, sub-task A focuses on detecting whether the tweet is offensive or not. Then, For offensive Tweets, sub-task B focuses on detecting whether the tweet is hate speech or not. Finally, For hate speech Tweets, sub-task C focuses on detecting the fine-grained type of hate speech among six different classes. Transformer models proved their efficiency in classification tasks, but with the problem of over-fitting when fine-tuned on a small or an imbalanced dataset. We overcome this limitation by investigating multiple training paradigms such as Contrastive learning and Multi-task learning along with Classification fine-tuning and an ensemble of our top 5 performers. Our proposed solution achieved 0.841, 0.817, and 0.476 macro F1-average in sub-tasks A, B, and C respectively.

Motivation & Objective

  • To address the challenge of detecting offensive language and hate speech in Arabic social media, particularly on Twitter, where datasets are small and imbalanced.
  • To overcome overfitting in transformer models fine-tuned on limited Arabic datasets by exploring contrastive learning and multi-task learning paradigms.
  • To improve classification performance on three-tiered sub-tasks: offensive language detection, hate speech identification, and fine-grained hate speech type classification.
  • To compare the effectiveness of contrastive learning, multi-task learning, and ensemble methods across different sub-tasks of the shared task.

Proposed method

  • The authors fine-tune AraBERT, a pre-trained transformer model for Arabic, using contrastive learning to improve representation learning on the limited labeled data.
  • They apply multi-task learning to jointly train on Sub-tasks A and B (offensive language and hate speech detection), sharing representations to improve generalization.
  • For Sub-task C (fine-grained hate speech classification), a separate multi-task model is trained on the subset of hate speech tweets, leveraging shared encoder features.
  • An ensemble of the top five models is used for Sub-task A to boost performance, while a dedicated multi-task model is used for Sub-tasks B and C.
  • The contrastive learning objective is implemented using a contrastive loss function that encourages similar tweet representations to be close and dissimilar ones to be far apart in the embedding space.
  • The models are trained on a 8.8k-labeled tweet dataset from Arabic Twitter, with careful data splitting and class balancing strategies to mitigate data scarcity.

Experimental results

Research questions

  • RQ1Can contrastive learning improve representation learning for Arabic offensive language and hate speech detection on small, imbalanced datasets?
  • RQ2Does multi-task learning across related sub-tasks (offensive language and hate speech detection) lead to better performance than single-task fine-tuning?
  • RQ3How does model ensembling compare to individual model performance in the context of low-resource Arabic NLP?
  • RQ4What is the relative contribution of contrastive pre-training versus end-to-end fine-tuning in improving F1 scores across the three sub-tasks?
  • RQ5Can joint learning of fine-grained hate speech categories improve overall classification performance on the downstream hate speech detection task?

Key findings

  • The proposed ensemble of top five models achieved a macro F1 score of 0.841 on Sub-task A (offensive language detection), significantly outperforming the baseline of 0.394.
  • The multi-task learning model achieved a macro F1 score of 0.817 on Sub-task B (hate speech detection), surpassing the baseline of 0.472.
  • For Sub-task C (fine-grained hate speech classification), the multi-task model achieved a macro F1 score of 0.476, a substantial improvement over the baseline of 0.135.
  • Contrastive learning and multi-task learning were found to be effective in mitigating overfitting on the small, imbalanced Arabic dataset.
  • The ablation study showed that combining contrastive pre-training with multi-task fine-tuning yielded the best results across all sub-tasks.
  • The ensemble approach was most effective for Sub-task A, while multi-task learning was optimal for Sub-tasks B and C, indicating task-specific benefits of different training strategies.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.