Efficient Hate Speech Detection: Evaluating 38 Models from Traditional Methods to Transformers

Mahmoud Abusaqer, Jamil Saquer, Hazim Shatnawi
9/14/2025
cs.CLcs.AIcs.SI

No confident code implementation found for this paper. 6 possible matches can be shown below.

Abstract

The proliferation of hate speech on social media necessitates automated detection systems that balance accuracy with computational efficiency. This study evaluates 38 model configurations in detecting hate speech across datasets ranging from 6.5K to 451K samples. We analyze transformer architectures (e.g., BERT, RoBERTa, Distil-BERT), deep neural networks (e.g., CNN, LSTM, GRU, Hierarchical Attention Networks), and traditional machine learning methods (e.g., SVM, CatBoost, Random Forest). Our results show that transformers, particularly RoBERTa, consistently achieve superior performance with accuracy and F1-scores exceeding 90%. Among deep learning approaches, Hierarchical Attention Networks yield the best results, while traditional methods like CatBoost and SVM remain competitive, achieving F1-scores above 88% with significantly lower computational costs. Additionally, our analysis highlights the importance of dataset characteristics, with balanced, moderately sized unprocessed datasets outperforming larger, preprocessed datasets. These findings offer valuable insights for developing efficient and effective hate speech detection systems.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 6 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{abusaqer2025efficient,
  title  = {Efficient Hate Speech Detection: Evaluating 38 Models from Traditional Methods to Transformers},
  author = {Mahmoud Abusaqer and Jamil Saquer and Hazim Shatnawi},
  year   = {2025},
  eprint = {2509.14266},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2509.14266v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2509.14266.svg)](https://codeofpaper.com/paper/2509.14266)

Discussion