Skip to main content
QUICK REVIEW

[Paper Review] Fine-tuning of Pre-trained Transformers for Hate, Offensive, and Profane Content Detection in English and Marathi

Anna Glazkova, Michael Kadantsev|arXiv (Cornell University)|Oct 25, 2021
Hate Speech and Cyberbullying DetectionComputer Science9 citations
TL;DR

This paper presents fine-tuned transformer models for hate, offensive, and profane content detection in English and Marathi, using Twitter-RoBERTa and LaBSE. It achieves an F1-score of 81.99% on English Subtask A (third place) and 88.08% on Marathi Subtask A (second place), with ensemble and data augmentation techniques improving performance on imbalanced datasets.

ABSTRACT

This paper describes neural models developed for the Hate Speech and Offensive Content Identification in English and Indo-Aryan Languages Shared Task 2021. Our team called neuro-utmn-thales participated in two tasks on binary and fine-grained classification of English tweets that contain hate, offensive, and profane content (English Subtasks A & B) and one task on identification of problematic content in Marathi (Marathi Subtask A). For English subtasks, we investigate the impact of additional corpora for hate speech detection to fine-tune transformer models. We also apply a one-vs-rest approach based on Twitter-RoBERTa to discrimination between hate, profane and offensive posts. Our models ranked third in English Subtask A with the F1-score of 81.99% and ranked second in English Subtask B with the F1-score of 65.77%. For the Marathi tasks, we propose a system based on the Language-Agnostic BERT Sentence Embedding (LaBSE). This model achieved the second result in Marathi Subtask A obtaining an F1 of 88.08%.

Motivation & Objective

  • To develop robust NLP models for detecting hate, offensive, and profane content in multilingual social media text.
  • To investigate the impact of additional training corpora and data augmentation on model performance for low-resource and imbalanced datasets.
  • To compare monolingual and multilingual BERT-based models for low-resource language tasks, particularly in Marathi.
  • To improve classification performance through ensemble strategies and one-vs-rest fine-tuning on binary classification heads.
  • To achieve state-of-the-art results in the HASOC 2021 shared task for English and Marathi hate speech detection.

Proposed method

  • Fine-tuned Twitter-RoBERTa for binary and fine-grained classification of English tweets using multi-source training data, including HatebaseTwitter, HatEval, and OLID.
  • Applied a one-vs-rest ensemble strategy with three binary classifiers (hate-vs-profane, hate-vs-offensive, offensive-vs-profane) to resolve multi-class predictions.
  • Used soft voting across multiple binary models, with final label assignment based on vote count and training set class frequency for tie-breaking.
  • Employed data augmentation via fine-tuned BART-base model for denoising reconstruction to generate synthetic training examples.
  • Explored data sampling techniques including random oversampling and multilingual data combination (English, Hindi, Marathi) to address class imbalance.
  • Evaluated LaBSE and XLM-RoBERTa on Marathi data, fine-tuning on monolingual and multilingual combinations, with final submission using a soft-voting ensemble of five LaBSE models.

Experimental results

Research questions

  • RQ1How does the inclusion of external hate speech corpora improve fine-tuned transformer performance on English hate speech detection tasks?
  • RQ2What is the effectiveness of data augmentation and sampling techniques in mitigating class imbalance in hate speech datasets?
  • RQ3How do monolingual and multilingual BERT-based models compare in low-resource settings like Marathi?
  • RQ4Can a one-vs-rest ensemble strategy with binary classifiers outperform direct multi-class classification in fine-grained hate speech detection?
  • RQ5Does language-agnostic pre-training (LaBSE) yield better performance than multilingual BERT (XLM-RoBERTa) for low-resource language tasks?

Key findings

  • The Twitter-RoBERTa-based model achieved an F1-score of 81.99% on English Subtask A, ranking third among 56 teams.
  • For English Subtask B, the model achieved an F1-score of 65.77%, ranking second among 37 teams.
  • The LaBSE-based model achieved the highest F1-score of 88.08% on Marathi Subtask A, ranking second among 25 teams.
  • LaBSE outperformed XLM-RoBERTa across all configurations, with the best monolingual Marathi fine-tuning (F1=87.76%) exceeding multilingual variants.
  • Multilingual fine-tuning improved XLM-RoBERTa performance, while LaBSE achieved superior results even on monolingual Marathi data.
  • The ensemble strategy combining multiple binary classifiers with vote-based label assignment improved prediction consistency and final performance on both English and Marathi tasks.

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.