TLDR: A new study demonstrates the effectiveness of Parameter-Efficient Fine-Tuning (PEFT) using LoRA and QLoRA for detecting hate speech in Bengali. By fine-tuning instruction-tuned large language models (Gemma-3-4B, Llama-3.2-3B, and Mistral-7B) on the BD-SHS dataset, researchers achieved high F1-scores, with Llama-3.2-3B leading at 92.23%. This was accomplished by training less than 1% of model parameters on a single consumer-grade GPU, proving PEFT to be a practical, resource-efficient, and scalable solution for low-resource languages facing a rise in online hate speech.
Online social media platforms have become an integral part of daily life for millions, including the vast Bengali-speaking community. With over 242 million native speakers, Bengali ranks among the most widely spoken languages globally. However, this digital expansion has unfortunately led to a sharp increase in online hate speech, particularly targeting women and adolescents in Bangladesh. This surge in harmful content, ranging from cyberbullying to political and religious intimidation, highlights a critical need for effective detection and prevention methods.
Detecting hate speech in Bengali presents unique challenges. The language features complex morphology and frequent code-mixing with English, often referred to as ‘Banglish’. Additionally, misspellings and sentences with double meanings further complicate automated analysis. While high-quality datasets exist for major languages like English, Bengali has historically lacked well-curated, large, and reliable datasets, making the development of robust detection systems difficult.
Previous approaches to Bengali hate speech detection have typically relied on traditional machine learning, deep learning, or full fine-tuning of BERT-based models. Some methods even use proprietary Large Language Model (LLM) APIs, which can be costly. A significant hurdle for many researchers and developers is the computational expense of training or fine-tuning very large language models, often requiring industry-scale GPUs with extensive memory that are not accessible to typical users.
This is where Parameter-Efficient Fine-Tuning (PEFT) emerges as a game-changer. PEFT methods allow for the adaptation of massive language models to specific tasks without the need to update billions of parameters. Instead, they introduce lightweight, low-rank trainable matrices into the model’s architecture, significantly reducing memory and computational overhead. This study marks the first application of PEFT, specifically using LoRA (Low-Rank Adaptation) and QLoRA (Quantized LoRA), for Bengali hate speech detection.
The research utilized three instruction-tuned large language models: Gemma-3-4B, Llama-3.2-3B, and Mistral-7B. These models were fine-tuned on the BD-SHS dataset, a comprehensive benchmark containing 50,281 manually annotated Bengali comments from platforms like Facebook, YouTube, and TikTok. A remarkable aspect of this approach is that fewer than 1% of each model’s total parameters were trained, making it possible to conduct experiments on a single consumer-grade GPU.
The results were highly promising. Llama-3.2-3B achieved the highest F1-score of 92.23%, demonstrating superior performance in balancing precision and recall. Mistral-7B followed with an F1-score of 88.94%, and Gemma-3-4B achieved 80.25%. These findings conclusively establish PEFT as a practical, scalable, and replicable strategy for developing high-performance hate speech detection models in Bengali and other low-resource languages.
Beyond performance, the study also highlighted significant computational efficiencies. The PEFT setup, combining QLoRA with optimized kernels, reduced GPU memory usage by 65–75% across the models. This means that high-quality moderation models can be built and deployed even under limited computational resources, democratizing access to advanced AI capabilities for language communities that need them most.
The success of this work suggests that the effectiveness of a model in low-resource language tasks depends not just on its size, but crucially on how well its architecture, tokenizer, and fine-tuning strategy are aligned with the specific task. For practical deployment, Llama-3.2-3B is recommended for maximizing detection accuracy on content similar to the BD-SHS dataset. Mistral-7B might be preferred for more complex or longer inputs, while Gemma-3-4B offers a lightweight option when memory efficiency is the top priority.
Also Read:
- Unpacking LLM Toxicity: A Multi-Label Evaluation Framework
- Uncovering Emotional Trends in News: A Look at Bengali Headlines
This pioneering study opens new avenues for future research, including addressing dialectal variations, expanding to non-social media domains, and enhancing robustness under explicit code-mixing conditions. By combining new LLMs with PEFT, there is a clear path to strengthen hate speech detection in Bengali and extend these advancements to other underrepresented languages globally. You can read the full research paper for more details. Read the full research paper here.


