Skip to main content
QUICK REVIEW

[Paper Review] Walk in Wild: An Ensemble Approach for Hostility Detection in Hindi Posts

Chander Shekhar, Bhavya Bagla|arXiv (Cornell University)|Jan 15, 2021
Hate Speech and Cyberbullying DetectionComputer Science8 references7 citations
TL;DR

This paper proposes an ensemble model combining mBERT, XGBoost, and ANN for hostility detection in Hindi social media posts, addressing low-resource language challenges. It achieves a weighted F1-score of ~0.969 in binary classification and ~0.615 in fine-grained multi-label classification, securing third place in a competition on Hindi hostility detection.

ABSTRACT

As the reach of the internet increases, pejorative terms started flooding over social media platforms. This leads to the necessity of identifying hostile content on social media platforms. Identification of hostile contents on low-resource languages like Hindi poses different challenges due to its diverse syntactic structure compared to English. In this paper, we develop a simple ensemble based model on pre-trained mBERT and popular classification algorithms like Artificial Neural Network (ANN) and XGBoost for hostility detection in Hindi posts. We formulated this problem as binary classification (hostile and non-hostile class) and multi-label multi-class classification problem (for more fine-grained hostile classes). We received third overall rank in the competition and weighted F1-scores of ~0.969 and ~0.61 on the binary and multi-label multi-class classification tasks respectively.

Motivation & Objective

  • To address the challenge of hostility detection in low-resource, high-diversity languages like Hindi, which lack robust tools and datasets.
  • To develop a robust, scalable system for detecting hostile content—such as hate speech, fake news, and defamation—on Hindi social media.
  • To improve performance on low-resource language NLP tasks by leveraging multilingual pre-trained models and ensemble learning.
  • To address class imbalance and improve fine-grained classification through model ensembling and fine-tuned representations.
  • To provide a benchmark for future research in Hindi toxicity detection by participating in and achieving top results in a public competition.

Proposed method

  • Pre-processing involves removing URLs while preserving emojis and hashtags, followed by tokenization using mBERT’s tokenizer with a 128-sequence length limit.
  • Post representations are extracted using mBERT’s [CLS] token embedding (raw representation) and fine-tuned representations from downstream training.
  • A two-stage classification framework is employed: coarse-grained (binary: hostile/non-hostile) and fine-grained (multi-label: fake news, hate speech, offensive, defamation).
  • Multiple models are trained using mBERT embeddings as input: Artificial Neural Networks (ANN), XGBoost, and Logistic Regression, with hyperparameter tuning.
  • An ensemble model combines predictions from four distinct submissions using a weighted average based on individual F1-scores, with the final output computed as: $ \hat{O_{ij}} = \frac{\sum_{i=1}^{4} \sum_{j=1}^{n} O_{ij} \times ff1_i}{\sum_{i=1}^{4} ff1_i} $.
  • Fine-tuned representations consistently outperform raw representations, improving the weighted F1-score by 0.24 in fine-grained classification.

Experimental results

Research questions

  • RQ1Can an ensemble of mBERT, XGBoost, and ANN models effectively detect hostility in low-resource Hindi social media content?
  • RQ2How does fine-tuning mBERT representations impact performance in binary and multi-label hostility classification tasks in Hindi?
  • RQ3What is the relative contribution of different classifiers (e.g., XGBoost vs. ANN) when combined via ensemble learning in this low-resource setting?
  • RQ4How does class imbalance affect model performance, and can ensemble methods mitigate this issue in Hindi hostility detection?
  • RQ5To what extent do features like emojis and hashtags contribute to accurate hostility detection in Hindi posts?

Key findings

  • The proposed ensemble model achieved a weighted F1-score of 0.969 in the coarse-grained (binary) classification task, ranking third in the competition.
  • In the fine-grained multi-label classification task, the best submission achieved a weighted F1-score of 0.6149 on the validation set and 0.6088 on the test set.
  • Fine-tuned mBERT representations improved the weighted F1-score by 0.24 compared to raw representations in the fine-grained classification task.
  • The model significantly outperformed baseline models (e.g., SVM, RF, LR) across all hostility categories, especially in fake news and offensive content detection.
  • The defamation class had the lowest F1-score due to its small training set, indicating that data scarcity remains a key challenge despite strong pre-trained models.
  • Submission-4, which used a weighted ensemble of four models, achieved the highest performance in fine-grained classification, demonstrating the effectiveness of ensemble averaging with F1-based weighting.

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.