[Paper Review] Deep Learning for Hate Speech Detection: A Comparative Study
The paper conducts a large-scale empirical comparison of 14 shallow/deep hate speech detectors across three public benchmarks, evaluating effectiveness, efficiency, pre-training impact, and cross-domain generalization.
Automated hate speech detection is an important tool in combating the spread of hate speech, particularly in social media. Numerous methods have been developed for the task, including a recent proliferation of deep-learning based approaches. A variety of datasets have also been developed, exemplifying various manifestations of the hate-speech detection problem. We present here a large-scale empirical comparison of deep and shallow hate-speech detection methods, mediated through the three most commonly used datasets. Our goal is to illuminate progress in the area, and identify strengths and weaknesses in the current state-of-the-art. We particularly focus our analysis on measures of practical performance, including detection accuracy, computational efficiency, capability in using pre-trained models, and domain generalization. In doing so we aim to provide guidance as to the use of hate-speech detection in practice, quantify the state-of-the-art, and identify future research directions. Code and dataset are available at https://github.com/jmjmalik22/Hate-Speech-Detection.
Motivation & Objective
- Assess how different hate speech detection models perform across diverse datasets.
- Identify models that offer favorable trade-offs between accuracy and efficiency.
- Evaluate the impact of pre-training methods on detector performance.
- Examine cross-domain generalization to understand domain shift effects on hate speech detectors.
Proposed method
- Categorize detectors into shallow traditional, word-embedding deep, and transformers-based deep methods.
- Evaluate 14 detectors using TF-IDF, Glove embeddings, and transformer-based embeddings (BERT, ALBERT, ELECTRA, etc.).
- Combine embeddings with classifiers (SVM, XGB, MLP, CNN, Bi-LSTM) and report macro and weighted F1 scores.
- Use three datasets (Davidson, Founta, TSA) with imbalanced classes and report per-class metrics.
- Analyze computational efficiency by epoch time and identify practical model-accuracy trade-offs.
Experimental results
Research questions
- RQ1How effective are popular hate speech detectors on diverse benchmark datasets?
- RQ2Are there models that generally outperform others in both effectiveness and efficiency?
- RQ3How do pre-training methods influence hate speech detection performance?
- RQ4How well do models generalize across domains with different hate speech definitions and distributions?
Key findings
- Transformer-based embeddings (BERT, ALBERT, ELECTRA) consistently yield the best macro and weighted F1 scores across datasets.
- TF-IDF-based XGBoost and TF-IDF-based MLP can be competitive, especially on larger or more balanced portions of data, but transformers generally dominate in performance.
- Transformer models incur higher training times; Small BERT is the most efficient among transformers.
- Pre-trained embeddings (especially transformer-based) outperform non-pre-trained or TF-IDF baselines across all three datasets.
- Cross-domain evaluation shows drop-offs in generalization when transferring from one dataset to another, with ELECTRA-CNN often maintaining strong performance as a robust choice.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.