Skip to main content
QUICK REVIEW

[Paper Review] Hate and Offensive Speech Detection in Hindi and Marathi

Abhishek Velankar, Hrushikesh Patil|arXiv (Cornell University)|Oct 23, 2021
Hate Speech and Cyberbullying DetectionComputer Science17 references8 citations
TL;DR

This paper proposes and evaluates deep learning models for hate and offensive speech detection in Hindi and Marathi using the HASOC 2021 datasets. It compares CNN, LSTM, and BERT-based models—showing that non-trainable FastText embeddings with basic models outperform BERT in fine-grained Hindi classification, while RoBERTa and IndicBERT achieve state-of-the-art results in binary tasks.

ABSTRACT

Sentiment analysis is the most basic NLP task to determine the polarity of text data. There has been a significant amount of work in the area of multilingual text as well. Still hate and offensive speech detection faces a challenge due to inadequate availability of data, especially for Indian languages like Hindi and Marathi. In this work, we consider hate and offensive speech detection in Hindi and Marathi texts. The problem is formulated as a text classification task using the state of the art deep learning approaches. We explore different deep learning architectures like CNN, LSTM, and variations of BERT like multilingual BERT, IndicBERT, and monolingual RoBERTa. The basic models based on CNN and LSTM are augmented with fast text word embeddings. We use the HASOC 2021 Hindi and Marathi hate speech datasets to compare these algorithms. The Marathi dataset consists of binary labels and the Hindi dataset consists of binary as well as more-fine grained labels. We show that the transformer-based models perform the best and even the basic models along with FastText embeddings give a competitive performance. Moreover, with normal hyper-parameter tuning, the basic models perform better than BERT-based models on the fine-grained Hindi dataset.

Motivation & Objective

  • To address the scarcity of annotated data for hate and offensive speech detection in low-resource Indian languages like Hindi and Marathi.
  • To evaluate the performance of diverse deep learning architectures—CNN, LSTM, BiLSTM, and transformer-based models—on Hindi and Marathi text.
  • To compare the effectiveness of pre-trained word embeddings (FastText) versus random initialization and trainable vs. non-trainable embeddings.
  • To investigate hierarchical vs. direct multi-class classification strategies for fine-grained hate speech labeling in Hindi.
  • To provide publicly shared, state-of-the-art models for future research in low-resource NLP for Indian languages.

Proposed method

  • Formulated hate and offensive speech detection as a text classification task using binary and fine-grained labels from the HASOC 2021 shared task datasets.
  • Trained 1D-CNN, LSTM, and BiLSTM models with both random and pre-trained FastText word embeddings (Hindi and Marathi), in both trainable and non-trainable modes.
  • Evaluated transformer-based models including multilingual BERT (mBERT), IndicBERT, RoBERTa-base, and a Hindi-specific RoBERTa variant.
  • Applied a hierarchical classification approach for the 4-class Hindi task: first classify as hate or non-hate, then further classify hate instances into HATE, OFFN, or PRFN.
  • Used standard metrics including accuracy, macro F1, precision, and recall to compare model performance across tasks.
  • Shared the best-performing models publicly on Hugging Face for reproducibility and community use.

Experimental results

Research questions

  • RQ1How do traditional deep learning models (CNN, LSTM) with FastText embeddings compare to transformer-based models (BERT variants) in hate and offensive speech detection for Hindi and Marathi?
  • RQ2Does the use of non-trainable FastText embeddings improve performance over trainable or random embeddings in low-resource settings?
  • RQ3Is a hierarchical classification approach superior to direct multi-class classification for fine-grained hate speech labeling in Hindi?
  • RQ4How do data imbalance issues affect the performance of BERT-based models in fine-grained classification tasks?
  • RQ5Can basic models like CNN and LSTM outperform BERT-based models in low-resource, fine-grained hate speech detection tasks?

Key findings

  • For the Marathi binary classification task, the best-performing model was BiLSTM with non-trainable FastText embeddings, achieving 0.854 F1 score.
  • In the Hindi binary classification task, BiLSTM with non-trainable FastText embeddings achieved the highest F1 score of 0.750, outperforming other configurations.
  • For the Hindi fine-grained 4-class classification task, the CNN model with non-trainable FastText embeddings achieved an F1 score of 0.517, slightly outperforming the RoBERTa-based hierarchical model (F1: 0.520) and direct multi-class RoBERTa (F1: 0.521).
  • IndicBERT achieved the highest performance among BERT variants on the Marathi dataset, with an F1 score of 0.869.
  • RoBERTa-base for Hindi outperformed other BERT variants on the Hindi binary task, achieving an F1 score of 0.763.
  • BERT-based models were found to be more sensitive to class imbalance in the fine-grained Hindi dataset, requiring data augmentation for optimal performance, whereas basic models showed greater robustness to imbalance.

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.