Skip to content
DraconiticResearch
Search Sources API
197,768 studies31 sourcesUpdated 11 min ago
Peer-reviewedCC BY 4.0PLOS One

BanglaHateCorpus: A large-scale bangla benchmark for hate speech classification and a transformer-based deep learning method

5 affiliations
  1. 1Department of Information and Communication Technology, Bangladesh University of Professionals, Dhaka, Bangladesh
  2. 2Department of Computer Science & Engineering, United International University, Dhaka, Bangladesh
  3. 3Department of Computer Science and Engineering, BRAC University, Dhaka, Bangladesh
  4. 4Department of Computer Science and Engineering, Bangladesh University of Engineering & Technology, Dhaka, Bangladesh
  5. 5Department of Computer Science & Engineering, Southeast University, Dhaka, Bangladesh

Abstract

Hate speech on social media refers to content that threatens, attacks, or dehumanizes people or groups based on specified characteristics, thereby eroding trust, worsening societal divisions, and causing psychological harm to the targeted communities. In digitally connected South Asian societies, strong in-group bonds and online inter-group hatred can rapidly lead to real-world violence, a risk intensified by the proliferation of Bangla texts, highlighting the urgent need for robust detection in this low-resource language. Previous studies have mostly focused on building their datasets by scraping various sources, without emphasizing standardized quality annotation or ensuring classification accuracy. To address these gaps, we introduce BanglaHateCorpus, a unified corpus of 168K examples consolidated from eight public sources, rigorously de-duplicated and annotated through a two-stage, human and LLM-assisted pipeline. Building on this benchmark, we propose BanHateFormer, a novel deep-learning model that embodies state-of-the-art transformer components, and replaces the conventional feed-forward blocks with a Mixture-of-Experts layer followed by a binary classification head. BanHateFormer achieves state-of-the-art classification results, as assessed by accuracy, precision, recall, and macro F1-score with approximately 94.74 times fewer parameters than comparable models, achieving a 91.33% macro F1-score on the BanglaHateCorpus dataset and 78.96% on the transliterated BanTH benchmark. BanHateFormer outperforms BanglaBERT and XLM-RoBERTa by up to 2.57% with three times fewer parameters, and improves macro F1-score by 3.38% on transliterated text, demonstrating strong performance on romanized inputs. BanHateFormer significantly surpasses existing transformer-based models in balancing memory efficiency and high-fidelity outputs, marking a breakthrough in hate speech classification with optimal space utilization.

Related

  1. Sentiment analysis in Bangla: A three-class dataset and comparative evaluation of machine learning, deep learning, and transformer approaches
    Md. Nahid Hasan, Jahanur Biswas, Antu Chowdhury +3
    PLOS OnePeer-reviewedCC BY 4.0Full textGeneral biologyGeneral mathematicsPLOSPMC
  2. Improved vision transformer for sports image classification via transfer learning and knowledge distillation
    Chao Li, Daniel Memmert, Qiang Liu
    PLOS OnePeer-reviewedCC BY 4.0Full textNeurosciencePLOS
  3. A lightweight privacy-aware federated vision transformer for tomato leaf disease classification
    Debangana Ram, Manasi Gyanchandani, Akhtar Rasool +1
    Scientific ReportsPeer-reviewedCC BY-NC-ND 4.0Full textPlant biologyCrossref
  4. MangoSwin-attention: a swin transformer with attention pooling for generalizable mango leaf disease classification
    Saksham Khurana, Valarmathi Prahasam, Brindha Subburaj +2
    Scientific ReportsPeer-reviewedCC BY-NC-ND 4.0Full textPlant biologyCrossref
  5. A hybrid EfficientNet-B0-CBAM-Vision Transformer framework for accurate cherry leaf disease classification
    Ateeq Ur Rehman, Jaeyoung Choi, Ahmad Almogren +3
    Scientific ReportsPeer-reviewedCC BY-NC-ND 4.0Plant biologyCrossref
BibTeX
@article{rodela2026banglahatecorpus,
  title = {{BanglaHateCorpus: A large-scale bangla benchmark for hate speech classification and a transformer-based deep learning method}},
  author = {Anika Tasnim Rodela and Mahbub E Sobhani and Sakif Naieb Raiyan and Mohammad Nurul Huda and Dewan Md. Farid},
  journal = {PLOS One},
  year = {2026},
  month = nov,
  doi = {10.1371/journal.pone.0361339},
  url = {https://doi.org/10.1371/journal.pone.0361339},
  note = {CC BY 4.0},
}
RIS
TY  - JOUR
TI  - BanglaHateCorpus: A large-scale bangla benchmark for hate speech classification and a transformer-based deep learning method
AU  - Anika Tasnim Rodela
AU  - Mahbub E Sobhani
AU  - Sakif Naieb Raiyan
AU  - Mohammad Nurul Huda
AU  - Dewan Md. Farid
PY  - 2026
DA  - 2026/11/04
JO  - PLOS One
DO  - 10.1371/journal.pone.0361339
UR  - https://doi.org/10.1371/journal.pone.0361339
AB  - Hate speech on social media refers to content that threatens, attacks, or dehumanizes people or groups based on specified characteristics, thereby eroding trust, worsening societal divisions, and causing psychological harm to the targeted communities. In digitally connected South Asian societies, strong in-group bonds and online inter-group hatred can rapidly lead to real-world violence, a risk intensified by the proliferation of Bangla texts, highlighting the urgent need for robust detection in this low-resource language. Previous studies have mostly focused on building their datasets by scraping various sources, without emphasizing standardized quality annotation or ensuring classification accuracy. To address these gaps, we introduce BanglaHateCorpus, a unified corpus of 168K examples consolidated from eight public sources, rigorously de-duplicated and annotated through a two-stage, human and LLM-assisted pipeline. Building on this benchmark, we propose BanHateFormer, a novel deep-learning model that embodies state-of-the-art transformer components, and replaces the conventional feed-forward blocks with a Mixture-of-Experts layer followed by a binary classification head. BanHateFormer achieves state-of-the-art classification results, as assessed by accuracy, precision, recall, and macro F1-score with approximately 94.74 times fewer parameters than comparable models, achieving a 91.33% macro F1-score on the BanglaHateCorpus dataset and 78.96% on the transliterated BanTH benchmark. BanHateFormer outperforms BanglaBERT and XLM-RoBERTa by up to 2.57% with three times fewer parameters, and improves macro F1-score by 3.38% on transliterated text, demonstrating strong performance on romanized inputs. BanHateFormer significantly surpasses existing transformer-based models in balancing memory efficiency and high-fidelity outputs, marking a breakthrough in hate speech classification with optimal space utilization.
SN  - 1932-6203
ER  -