Few-shot and zero-shot Assamese hate speech detection: a comparative benchmark of large language models
Hate speech detection remains a critical challenge for natural language processing (NLP), particularly in low-resource languages such as Assamese. Although supervised models have shown promise, their performance is often constrained by the scarcity of annotated data and complex linguistic phenomena, such as code-mixing. In this study, we systematically benchmark large language models (LLMs), including GPT-4, GPT-3.5, and the open-source Mistral-7B, in prompt-based zero-shot and few-shot configurations, alongside fine-tuned multilingual transformers such as IndicBERT and mBERT, for Assamese hate speech detection. We evaluate these models on an extended Assamese hate speech dataset that combines a publicly available Kaggle corpus with additional code-mixed and transliterated examples. Our results show that GPT-4 achieves a macro-F1 score of 0.870 (few-shot, $$k=5$$), significantly outperforming previous best-reported models, such as fine-tuned mBERT (0.72 F1). GPT-3.5 and Mistral-7B also demonstrate strong performance (0.807 and 0.801 macro-F1, respectively), with Mistral offering a competitive open-source alternative that supports efficient local deployment. Notably, GPT-4 maintains robust performance across challenging code-mixed and Roman-script text, highlighting its superior cross-lingual adaptability. Error analysis reveals challenges in cultural nuance and subtle sarcasm, while statistical significance tests confirm consistent improvements.
Authors
- Basab Nath
- Phaneendra Varma Chintalapati (ORCID: https://orcid.org/0000-0001-7243-8974)
- Krishna Kant Pandey (ORCID: https://orcid.org/0000-0002-5669-5951)
- Vinod Kumar Yadav (ORCID: https://orcid.org/0000-0002-9221-6102)
Institutions
- Bennett University (IN)
- Hindu College of Pharmacy (IN)
- Manipal University Jaipur
- University of Rajasthan (IN)
Publication Details
- Journal
- Social Network Analysis and Mining
- Published
- 2025-12-02
- DOI
- https://doi.org/10.1007/s13278-025-01531-x
- Primary Topic
- Hate Speech and Cyberbullying Detection
- Type
- article
- Field-Weighted Citation Impact
- 0.00