Hate Speech Classifiers Learn Human-Like Social Stereotypes

Aida Mostafazadeh Davani, Mohammad Atari, Brendan Kennedy, Morteza DehghaniarXiv 2021

TL;DR

This paper demonstrates that automated hate speech classifiers inherit human-like social stereotypes from both the data they are trained on and the humans who annotate it. By mapping algorithmic errors to the psychological Stereotype Content Model, the authors show that classifiers exhibit systematic prediction errors—both false positives and false negatives—for social groups stereotyped as "cold" and "incompetent."

What Problem Does This Paper Address?

Supervised machine learning models for hate speech detection rely heavily on human annotations and pre-trained language models, both of which are prone to real-world cultural and social biases. While previous work has shown that Natural Language Processing (NLP) models capture representational biases (such as associating certain demographics with negative sentiment), it remains unclear how annotators' personal stereotypes or language-embedded stereotypes systematically skew training data and subsequent classifier predictions.

The authors address this gap by connecting social psychological theories of prejudice directly to algorithmic fairness in NLP, exploring how human biases propagate at scale through automated content moderation systems.

Methods

The authors ground their work in the Stereotype Content Model (SCM), a psychological framework positing that social perceptions of groups form along two universal dimensions: warmth (trustworthiness, friendliness) and competence (capability, intelligence). They execute three interconnected studies:

  1. Study 1 (Novice Annotators): Evaluated how 857 US adults' explicit ratings of 8 social groups correlated with their hate speech annotation behavior. The authors used a Rasch model (a psychometric method) to quantify each participant's latent tendency to flag hate speech relative to others.
  2. Study 2 (Expert Annotators): Quantified language-embedded stereotypes by calculating the cosine similarity between social group tokens and validated warmth/competence dictionaries within a GloVe word embedding space trained on Wikipedia. These scores were then modeled against the aggregated judgments of trained experts.
  3. Study 3 (Classifier Bias): Fine-tuned a BERT-based neural network classifier over 100 iterations (using random 80/20 train/test splits) on expert-annotated data to analyze how language-embedded warmth and competence scores predict systematic classification errors.

Datasets

  • Gab Hate Corpus (GHC): A large corpus consisting of 27,665 social media posts from Gab.com, annotated for hate speech by at least three trained expert annotators (drawn from a pool of 18 research assistants).
  • Study 1 Subset: A curated subset of 56 posts from the GHC targeting 8 specific US-relevant social groups (women, immigrants, Muslims, Jews, communists, liberals, African-Americans, and homosexuals).
  • Psychological Dictionaries: Validated linguistic dictionaries for competence (192 tokens) and warmth (184 tokens) used to extract stereotype scores from the word embeddings.

Key Insights and Ideas

  • The Competence Bias: For novice annotators, a group's perceived competence—not its warmth—is the primary driver of hate speech detection. Novices are more sensitive to attacks against groups they view as highly competent and are more likely to disagree on attacks against groups they view as incompetent.
  • Expert vs. Novice Divergence: While novice annotators tend to over-protect groups they perceive as competent, expert annotators focus more on typical targets of hate speech (groups stereotyped as cold and incompetent). However, both experts and novices show higher agreement when evaluating posts mentioning "warm and competent" groups.
  • Disagreement is Signal, Not Noise: Standard machine learning pipelines use majority voting to collapse annotator disagreements, treating them as random noise. This paper reveals that these disagreements are actually systematic products of human social stereotypes.
  • Classifiers Mirror Human Prejudice: BERT-based classifiers don't just make random errors; their false-positive and false-negative rates are tightly bound to the language-embedded warmth and competence of the group mentioned.

Key Results

  • Study 1: A 1-point increase in a novice annotator's competence rating for a group was associated with a 3.0% increase in the number of hate labels they assigned, while a 1-point decrease in competence increased the odds of annotator disagreement by 25.2%.
  • Study 2: For expert annotators, higher language-embedded warmth ($\beta = -2.62$) and competence ($\beta = -5.27$) were significantly associated with lower inter-annotator disagreement.
  • Study 3: The BERT classifier achieved an average $F_1$ accuracy of 48.22% on the GHC. Crucially, false-positive errors were negatively associated with warmth ($\beta = -0.09$) and competence ($\beta = -0.23$), meaning posts mentioning groups stereotyped as cold and incompetent (e.g., minoritized groups) were significantly more likely to be falsely flagged as hate speech. False negatives followed a similar negative association pattern.

Limitations and Future Work

  • Annotation Team Homogeneity: The paper notes that expert annotation teams can introduce collective biases. The authors suggest that future work must focus on diversifying expert annotation teams across different ideological and social backgrounds to prevent coders from systematically over-protecting or ignoring specific groups.
  • Flawed Aggregation (Majority Voting): Relying strictly on majority voting discards valuable sociological signals. The authors advocate for modeling annotation biases directly within supervised learning frameworks rather than filtering out disagreement as noise.
  • Theoretical Expansion: Existing social science frameworks were not built with the massive scale of AI in mind; the authors call for integrating algorithmic interactions into future social psychological theory development.

Summary updated

BibTeX
@misc{davani2021hate,
  author = {Aida Mostafazadeh Davani and Mohammad Atari and Brendan Kennedy and Morteza Dehghani},
  title = {{Hate Speech Classifiers Learn Human-Like Social Stereotypes}},
  year = {2021},
  eprint = {2110.14839},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2110.14839},
}
Figure