Hate speech detection using pretrained DeBERTaV3 optimized with Grey Wolf Optimizer: a hybrid approach for social media content moderation

The proliferation of hate speech on social media poses a significant challenge to maintaining safe and inclusive online environments, necessitating accurate and scalable automated detection systems. However, the performance of transformer-based models for hate speech detection is highly sensitive to hyperparameter configurations, making manual and conventional tuning strategies inefficient in high-dimensional search spaces.To address this challenge, this study proposes a hybrid optimization framework that integrates the DeBERTaV3 transformer model with the Grey Wolf Optimizer (GWO) for automated hyperparameter tuning. The proposed approach enables efficient exploration of complex hyperparameter spaces by balancing global search and local refinement. The framework optimizes eight critical hyperparameters, including learning rate, weight decay, and dropout rates, to enhance convergence stability and generalization performance. The proposed method is evaluated on the Davidson et al. (2017) dataset, consisting of 24,783 labeled tweets. Experimental results demonstrate that the GWO-DeBERTaV3 model achieves a peak accuracy of 97.72% and a macro F1-score of 97.71%, with statistically significant improvements over baseline and conventional tuning approaches.These findings highlight the effectiveness of metaheuristic-based optimization for transformer fine-tuning and demonstrate its potential for improving robustness and performance in real-world hate speech detection systems.

Authors

Institutions

Publication Details

Journal
Scientific Reports
Published
2026-05-02
DOI
https://doi.org/10.1038/s41598-026-47767-1
Primary Topic
Hate Speech and Cyberbullying Detection
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Hate speech detection using pretrained DeBERTaV3 optimized with Grey Wolf Optimizer: a hybrid approach for social media content moderation

M Vidhyalakshmi, Argha Auddy, Basil Skaria, Manas Kamal Das
Scientific Reports
Hate Speech and Cyberbullying Detection
article

Hate speech detection using pretrained DeBERTaV3 optimized with Grey Wolf Optimizer: a hybrid approach for social media content moderation

M Vidhyalakshmi, Argha Auddy, Basil Skaria, Manas Kamal Das
article en

Abstract

The proliferation of hate speech on social media poses a significant challenge to maintaining safe and inclusive online environments, necessitating accurate and scalable automated detection systems. However, the performance of transformer-based models for hate speech detection is highly sensitive to hyperparameter configurations, making manual and conventional tuning strategies inefficient in high-dimensional search spaces.To address this challenge, this study proposes a hybrid optimization framework that integrates the DeBERTaV3 transformer model with the Grey Wolf Optimizer (GWO) for automated hyperparameter tuning. The proposed approach enables efficient exploration of complex hyperparameter spaces by balancing global search and local refinement. The framework optimizes eight critical hyperparameters, including learning rate, weight decay, and dropout rates, to enhance convergence stability and generalization performance. The proposed method is evaluated on the Davidson et al. (2017) dataset, consisting of 24,783 labeled tweets. Experimental results demonstrate that the GWO-DeBERTaV3 model achieves a peak accuracy of 97.72% and a macro F1-score of 97.71%, with statistically significant improvements over baseline and conventional tuning approaches.These findings highlight the effectiveness of metaheuristic-based optimization for transformer fine-tuning and demonstrate its potential for improving robustness and performance in real-world hate speech detection systems.

Scientific Reports
Vellore Institute of Technology University (IN)
Vellore Institute of Technology, Chennai
Peace, Justice and strong institutions
Openalex Percentile: Top 9%
Hate Speech and Cyberbullying Detection
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.