[Paper Review] Automated Hate Speech Detection and the Problem of Offensive Language
The paper trains a multi-class classifier to distinguish hate speech, offensive language, and neither using a crowd-labeled tweet dataset, highlighting challenges in separating hate speech from general offensiveness and the role of context.
A key challenge for automatic hate-speech detection on social media is the separation of hate speech from other instances of offensive language. Lexical detection methods tend to have low precision because they classify all messages containing particular terms as hate speech and previous work using supervised learning has failed to distinguish between the two categories. We used a crowd-sourced hate speech lexicon to collect tweets containing hate speech keywords. We use crowd-sourcing to label a sample of these tweets into three categories: those containing hate speech, only offensive language, and those with neither. We train a multi-class classifier to distinguish between these different categories. Close analysis of the predictions and the errors shows when we can reliably separate hate speech from other offensive language and when this differentiation is more difficult. We find that racist and homophobic tweets are more likely to be classified as hate speech but that sexist tweets are generally classified as offensive. Tweets without explicit hate keywords are also more difficult to classify.
Motivation & Objective
- Define hate speech versus offensive language and motivate the need for differentiation.
- Create a labeled dataset distinguishing hate speech, offensive language, and neither.
- Evaluate classifier performance and analyze errors to understand separability.
- Identify linguistic and contextual factors that affect detection accuracy.
Proposed method
- Build a hate speech lexicon from Hatebase.org and sample tweets containing lexicon terms.
- Crowd-source labels into three classes: hate speech, offensive language, or neither.
- Extract TF-IDF unigram/bigram/trigram features; include POS tags, sentiment, readability, and social features.
- Train classifiers with 5-fold cross-validation; compare logistic regression, Naive Bayes, decision trees, random forests, and linear SVMs.
- Use one-versus-rest framework with logistic regression (L2) as final model; evaluate on held-out data.
Experimental results
Research questions
- RQ1Can a multi-class model reliably separate hate speech from offensive language and from neutral content?
- RQ2What linguistic or contextual features most distinguish hate speech from offensive language?
- RQ3How do model predictions align with human labels, and where do errors concentrate?
- RQ4Does presence of explicit hate terms drive misclassifications, and can context mitigate this?
- RQ5Which types of hate speech (e.g., racist vs. sexist) are more or less detectable?
Key findings
- The best model achieves overall precision 0.91, recall 0.90, and F1 0.90.
- About 40% of true hate speech tweets are misclassified, with hate speech precision 0.44 and recall 0.61.
- Hate speech containing strong slurs is easier to detect than hate speech without explicit terms.
- Offensive language is often misclassified as hate speech when context is ignored, and sexism terms tend to be classified as offensive rather than hate.
- Only 5% of offensive and 2% of innocuous tweets are labeled as hate by the model, indicating some separation between categories.
- The lexicon-based approach has low precision for hate speech, underscoring the value of contextual and multi-class labeling.
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.