Skip to main content
QUICK REVIEW

[Paper Review] Mono vs Multilingual BERT for Hate Speech Detection and Text Classification: A Case Study in Marathi

Abhishek Velankar, Hrushikesh Patil|arXiv (Cornell University)|Apr 19, 2022
Hate Speech and Cyberbullying DetectionComputer Science4 citations
TL;DR

This study compares monolingual and multilingual BERT models for Marathi text classification, evaluating MahaBERT, MahaALBERT, and MahaRoBERTa against mBERT, indicBERT, and xlm-RoBERTa on hate speech detection and sentiment analysis. Monolingual models consistently outperform multilingual counterparts, with MahaRoBERTa achieving 89.0% accuracy on HASOC-2021 and MahaAlBERT reaching 94.5% on the Articles dataset, demonstrating superior performance and richer sentence embeddings for Marathi NLP tasks.

ABSTRACT

Transformers are the most eminent architectures used for a vast range of Natural Language Processing tasks. These models are pre-trained over a large text corpus and are meant to serve state-of-the-art results over tasks like text classification. In this work, we conduct a comparative study between monolingual and multilingual BERT models. We focus on the Marathi language and evaluate the models on the datasets for hate speech detection, sentiment analysis and simple text classification in Marathi. We use standard multilingual models such as mBERT, indicBERT and xlm-RoBERTa and compare with MahaBERT, MahaALBERT and MahaRoBERTa, the monolingual models for Marathi. We further show that Marathi monolingual models outperform the multilingual BERT variants on five different downstream fine-tuning experiments. We also evaluate sentence embeddings from these models by freezing the BERT encoder layers. We show that monolingual MahaBERT based models provide rich representations as compared to sentence embeddings from multi-lingual counterparts. However, we observe that these embeddings are not generic enough and do not work well on out of domain social media datasets. We consider two Marathi hate speech datasets L3Cube-MahaHate, HASOC-2021, a Marathi sentiment classification dataset L3Cube-MahaSent, and Marathi Headline, Articles classification datasets.

Motivation & Objective

  • To evaluate the performance of monolingual and multilingual BERT models on Marathi-specific NLP tasks such as hate speech detection and sentiment analysis.
  • To assess whether monolingual pretraining on large Marathi corpora yields better representations than multilingual pretraining for low-resource Indian languages.
  • To compare sentence embeddings from frozen BERT encoders across models and determine their generalization capability across domains.
  • To provide empirical evidence for the superiority of monolingual models in single-language downstream tasks, especially for under-resourced languages like Marathi.
  • To support the NLP community with model selection guidance for Marathi NLP by benchmarking state-of-the-art models on standardized datasets.

Proposed method

  • Fine-tuned monolingual Marathi BERT variants—MahaBERT, MahaALBERT, and MahaRoBERTa—on Marathi datasets including L3Cube-MahaHate, HASOC-2021, L3Cube-MahaSent, and Marathi Headlines/Articles.
  • Compared with standard multilingual models: mBERT, indicBERT, and xlm-RoBERTa, all fine-tuned on the same Marathi datasets.
  • Conducted two training schemes: full fine-tuning (non-freeze) and freezing the BERT encoder layers while training only the classifier head.
  • Evaluated sentence embeddings by freezing the BERT encoder and using the [CLS] token representation for downstream classification.
  • Used large-scale monolingual corpora, including L3Cube-MahaCorpus (752M tokens), to pre-train monolingual models.
  • Performed five distinct downstream classification experiments across hate speech detection, sentiment analysis, and text classification tasks.

Experimental results

Research questions

  • RQ1Do monolingual BERT models pre-trained on large Marathi corpora outperform multilingual BERT models in Marathi text classification tasks?
  • RQ2How do sentence embeddings from monolingual and multilingual BERT models compare in terms of discriminative power for Marathi NLP tasks?
  • RQ3To what extent do frozen BERT encoder layers generate generic, transferable sentence representations across different Marathi text classification datasets?
  • RQ4Which model architecture—MahaBERT, MahaALBERT, or MahaRoBERTa—yields the highest performance on Marathi hate speech detection and sentiment classification?
  • RQ5Why do monolingual models show better performance despite the multilingual models being designed for cross-lingual transfer?

Key findings

  • MahaRoBERTa achieved the highest accuracy of 89.0% on the HASOC-2021 hate speech detection dataset, outperforming all multilingual models.
  • MahaAlBERT achieved 94.5% accuracy on the Marathi Articles classification dataset, the best among all models tested.
  • Monolingual models consistently outperformed multilingual models across all five downstream tasks, with MahaBERT achieving 88.3% on non-frozen fine-tuning for hate speech detection.
  • Freezing the BERT encoder layers led to significantly lower performance (e.g., 82.4% for MahaBERT on L3Cube-MahaHate) compared to non-freeze settings, indicating poor generic sentence embeddings from frozen models.
  • Sentence embeddings from monolingual models like MahaBERT and MahaAlBERT provided richer representations than multilingual counterparts, especially when fine-tuned.
  • Despite better sentence representations, monolingual embeddings did not generalize well to out-of-domain social media datasets, indicating a need for domain-adaptive sentence embedding models.

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.