Skip to main content
QUICK REVIEW

[Paper Review] Toxicity Detection for Indic Multilingual Social Media Content

Manan Jhaveri, Devanshu Ramaiya|arXiv (Cornell University)|Jan 3, 2022
Hate Speech and Cyberbullying DetectionComputer Science5 citations
TL;DR

This paper presents a multilingual toxicity detection system for Indic social media content using ensemble learning with XLM-RoBERTa and MuRIL, enhanced by transliterated data, metadata features, and language-specific threshold tuning, achieving a state-of-the-art Mean F1 score of 0.90005 on the IIIT-D Multilingual Abusive Comment Identification challenge.

ABSTRACT

Toxic content is one of the most critical issues for social media platforms today. India alone had 518 million social media users in 2020. In order to provide a good experience to content creators and their audience, it is crucial to flag toxic comments and the users who post that. But the big challenge is identifying toxicity in low resource Indic languages because of the presence of multiple representations of the same text. Moreover, the posts/comments on social media do not adhere to a particular format, grammar or sentence structure; this makes the task of abuse detection even more challenging for multilingual social media platforms. This paper describes the system proposed by team 'Moj Masti' using the data provided by ShareChat/Moj in \emph{IIIT-D Multilingual Abusive Comment Identification} challenge. We focus on how we can leverage multilingual transformer based pre-trained and fine-tuned models to approach code-mixed/code-switched classification tasks. Our best performing system was an ensemble of XLM-RoBERTa and MuRIL which achieved a Mean F-1 score of 0.9 on the test data/leaderboard. We also observed an increase in the performance by adding transliterated data. Furthermore, using weak metadata, ensembling and some post-processing techniques boosted the performance of our system, thereby placing us 1st on the leaderboard.

Motivation & Objective

  • To address the challenge of detecting toxic content in low-resource Indic languages on multilingual social media platforms.
  • To improve abuse detection in code-mixed and informal social media text, which often lacks standard grammar and structure.
  • To leverage multilingual transformer models pre-trained on diverse Indian language corpora for low-resource language settings.
  • To enhance model performance through data augmentation using transliterated text and integration of weak metadata features.
  • To optimize inference through language-specific probability thresholds and post-processing techniques.

Proposed method

  • Fine-tuned XLM-RoBERTa and MuRIL models on a multilingual dataset of 665k+ annotated Indic social media comments in 13 languages.
  • Applied masked language modeling (MLM) pre-training on the training data, improving downstream F1 from 0.87 to 0.88.
  • Enhanced training data by incorporating transliterated versions of test samples, combining predictions with a 7:3 weight ratio.
  • Built an ensemble of diverse models (XLM-RoBERTa, MuRIL, and others) with equal weighting to improve generalization and reduce error correlation.
  • Integrated weak metadata (e.g., report counts, like counts, comment length) via feature engineering and used them to train gradient-boosting classifiers (XGBoost, CatBoost).
  • Optimized inference by applying language-specific probability thresholds (e.g., 0.6 for Marathi, 0.4 for Gujarati) and increasing predicted probabilities by 0.01 to correct edge cases.

Experimental results

Research questions

  • RQ1How effective are multilingual transformer models like XLM-RoBERTa and MuRIL in detecting toxicity in low-resource Indic languages with code-mixing and informal syntax?
  • RQ2To what extent does data augmentation via transliteration improve model generalization in multilingual toxicity detection?
  • RQ3Can weak metadata such as report counts and likes improve model performance when combined with deep learning predictions?
  • RQ4What is the impact of language-specific inference thresholds on F1-score in a multilingual setting?
  • RQ5How does ensemble learning with diverse models (including non-pretrained ones) enhance robustness and performance in low-resource NLP tasks?

Key findings

  • The ensemble of XLM-RoBERTa and MuRIL achieved the highest Mean F1 score of 0.90005 on the test set, securing 1st place on the leaderboard.
  • Pre-training with masked language modeling improved the baseline F1 score from 0.87 to 0.88, demonstrating the value of self-supervised pre-training.
  • Incorporating transliterated data improved model generalization, especially for low-resource languages with limited training examples.
  • Metadata-based feature engineering and boosting models (XGBoost, CatBoost) significantly enhanced predictions, with XGBoost and CatBoost achieving CV averages of 0.9051 and 0.9052 respectively.
  • Language-specific inference thresholds (e.g., 0.6 for Marathi, 0.4 for Gujarati) and a 0.01 probability boost led to a measurable performance gain.
  • Surprisingly, MuRIL—despite being specifically fine-tuned on Indian text—performed poorly as a standalone model but contributed valuable diversity in the ensemble.

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.