Skip to main content
QUICK REVIEW

[Paper Review] Leveraging Affective Bidirectional Transformers for Offensive Language Detection

AbdelRahim Elmadany, Chiyu Zhang|arXiv (Cornell University)|May 1, 2020
Hate Speech and Cyberbullying DetectionComputer Science25 references6 citations
TL;DR

This paper proposes a deep learning approach for offensive language and hate speech detection in Arabic using fine-tuned affective bidirectional transformers. By leveraging pre-trained sentiment and emotion models for transfer learning and applying automatic data augmentation, the authors achieve 89.60% accuracy and 82.31% macro F1 on hate speech detection, outperforming vanilla BERT on official test data.

ABSTRACT

Social media are pervasive in our life, making it necessary to ensure safe online experiences by detecting and removing offensive and hate speech. In this work, we report our submission to the Offensive Language and hate-speech Detection shared task organized with the 4th Workshop on Open-Source Arabic Corpora and Processing Tools Arabic (OSACT4). We focus on developing purely deep learning systems, without a need for feature engineering. For that purpose, we develop an effective method for automatic data augmentation and show the utility of training both offensive and hate speech models off (i.e., by fine-tuning) previously trained affective models (i.e., sentiment and emotion). Our best models are significantly better than a vanilla BERT model, with 89.60% acc (82.31% macro F1) for hate speech and 95.20% acc (70.51% macro F1) on official TEST data.

Motivation & Objective

  • To develop a purely deep learning-based system for offensive language and hate speech detection without manual feature engineering.
  • To explore the effectiveness of transfer learning from pre-trained affective models (sentiment and emotion) for offensive language detection.
  • To improve model generalization through an automatic data augmentation technique tailored for Arabic text.
  • To achieve state-of-the-art performance on the OSACT4 shared task for Arabic offensive language and hate speech detection.

Proposed method

  • Fine-tuning pre-trained affective models (sentiment and emotion) as a foundation for offensive language and hate speech detection.
  • Applying an automatic data augmentation method to increase training data diversity and model robustness.
  • Training end-to-end deep neural networks using the augmented data without handcrafted features.
  • Utilizing BERT-based architectures as the backbone model, with task-specific head layers for classification.
  • Optimizing the models on the OSACT4 shared task dataset using cross-entropy loss and standard fine-tuning procedures.
  • Evaluating performance on official test sets using accuracy and macro F1 as primary metrics.

Experimental results

Research questions

  • RQ1Can pre-trained affective models significantly improve offensive language detection in Arabic without feature engineering?
  • RQ2How effective is automatic data augmentation in enhancing model generalization for low-resource offensive language detection?
  • RQ3Does transfer learning from sentiment and emotion models lead to better performance on hate speech detection compared to training from scratch?
  • RQ4To what extent do fine-tuned affective transformers outperform vanilla BERT on Arabic offensive language detection?

Key findings

  • The proposed method achieved 89.60% accuracy and 82.31% macro F1 on the hate speech detection task, significantly outperforming a vanilla BERT model.
  • For offensive language detection, the model reached 95.20% accuracy and 70.51% macro F1 on official test data, demonstrating strong performance.
  • Fine-tuning pre-trained affective models led to substantial improvements over standard BERT fine-tuning, indicating the value of affective priors.
  • The automatic data augmentation technique contributed to improved model generalization and robustness on low-resource Arabic text.
  • The results confirm that transfer learning from sentiment and emotion models is a viable and effective strategy for offensive language detection in Arabic.
  • The system achieved state-of-the-art performance on the OSACT4 shared task, validating the effectiveness of the proposed approach.

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.