LLM-Based Multi-Task Bangla Hate Speech Detection: Type, Severity, and Target

Md. Arid Hasan, Firoj Alam, Md Fahad Hossain, Usman Naseem, Syed Ishtiaque Ahmed

TL;DR

This paper introduces BanglaMultiHate, the first large-scale, multi-task dataset for detecting hate speech in Bengali, covering its type, severity, and target. They demonstrate that while fine-tuned LLMs show promise, language-specific pretraining (like BanglaBERT) remains crucial for robust hate speech detection in low-resource languages.

What Problem Does This Paper Address?

Online platforms are rife with hate speech, which can be particularly insidious in low-resource languages where moderation tools are often lacking. While research on hate speech detection has advanced significantly for high-resource languages like English, Bangla presents unique challenges due to its rich morphology, flexible word order, and code-switching. Existing work in Bangla often focuses on single-task detection (e.g., binary hate/offense) and lacks comprehensive datasets that capture the multifaceted nature of hate speech (type, severity, and target). This gap hinders the development of culturally aligned and effective moderation tools.

Methods

The authors employ a multi-task learning approach, training models to simultaneously predict the type, severity, and target of hate speech. They compare a range of models:

  • Classical Baselines: SVM with TF-IDF features.
  • Monolingual Pretrained Language Model: BanglaBERT, fine-tuned for the tasks.
  • Large Language Models (LLMs): Llama-3.2-3B-Instruct and Qwen3-4B-Instruct. These are evaluated in both:
  • Zero-shot: Directly applied to the task without task-specific training.
  • Fine-tuned (LoRA): Using Low-Rank Adaptation (LoRA) for efficient fine-tuning to reduce computational costs.

Datasets

The core contribution is the introduction of BanglaMultiHate, a new dataset for multi-task hate speech detection in Bengali.

  • BanglaMultiHate: This dataset contains approximately 51,000 manually annotated comments from YouTube videos, covering 19 topics and 120 sub-topics. It is annotated for three tasks:
  • Type of Hate: Abusive, Sexism, Religious Hate, Political Hate, Profane, or None.
  • Severity of Hate: Severe, Mild, or Little to None.
  • Target of Hate: Community, Individual, Organization, Society, or None. This dataset is significantly larger and more comprehensive than existing Bangla hate speech datasets, which are often single-task and smaller in scale.

Key Insights and Ideas

  • Language-Specific Pretraining is King: The study strongly emphasizes that pretraining models on linguistically and culturally relevant data (like BanglaBERT) is crucial for achieving high performance, especially for nuanced tasks like severity and target detection.
  • LLMs Need Adaptation: While LLMs show promise, their zero-shot performance is often insufficient, particularly in low-resource settings with imbalanced data. Task-specific fine-tuning, even with efficient methods like LoRA, is essential to unlock their potential.
  • Class Imbalance is a Major Hurdle: The dataset exhibits significant class imbalance across all annotation dimensions. This inflates baseline performance (especially majority class baselines) and poses a challenge for building robust models that can effectively handle underrepresented hate speech categories.
  • Fine-tuning LLMs vs. PLMs: Fine-tuned LLMs (especially Llama3 with LoRA) show competitive performance, but they do not consistently surpass the performance of the language-specific PLM (BanglaBERT). This reinforces the importance of domain-specific pretraining.

Key Results

  • BanglaBERT Dominates: The fine-tuned BanglaBERT model achieved the highest micro-F1 scores across all three tasks (Type, Severity, and Target of Hate).
  • Fine-tuned LLMs Show Improvement: Fine-tuned Llama3 significantly outperformed its zero-shot counterpart and even surpassed the majority baseline on all tasks. Fine-tuned Qwen3 also showed improvements over its zero-shot performance.
  • Zero-Shot LLMs Lag: Zero-shot LLMs (Llama3 and Qwen3) generally performed worse than the majority baseline and SVM, highlighting their limitations without task-specific adaptation. Qwen3 showed better zero-shot performance than Llama3, suggesting model size can influence this capability.
  • SVM Performance: SVM performed comparably to or better than zero-shot LLMs and showed modest improvements over baselines, indicating its continued relevance for certain tasks, especially when dealing with lexical patterns.

Limitations and Future Work

  • Dataset Limitations:
    • The dataset is collected from YouTube comments, which may contain disturbing or offensive content. Annotators were cautioned, but this inherent nature of the data is a limitation.
  • The dataset suffers from significant class imbalance, which can affect model training and evaluation.
  • Future Work:
    • Extend the dataset with reasoning annotations to support task-level interpretability and explanation.
  • Explore data augmentation, re-sampling strategies, or collecting more data to address class imbalance.
  • Further investigate how LLMs can be effectively adapted for low-resource hate speech detection.

Summary updated

BibTeX
@inproceedings{hasan2026llm,
  author = {Md. Arid Hasan and Firoj Alam and Md Fahad Hossain and Usman Naseem and Syed Ishtiaque Ahmed},
  title = {{LLM-Based Multi-Task Bangla Hate Speech Detection: Type, Severity, and Target}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2026},
  doi = {10.18653/v1/2026.acl-long.1565},
}

Loading related content...

Figure