Decoding Hate: Exploring Language Models' Reactions to Hate Speech

Paloma Piot, Javier ParaparNAACL 2025

Introduction

As Large Language Models (LLMs) increasingly serve as the foundation for digital interaction, they are exposed to the unmoderated complexities of human speech. Trained on vast internet scrapes, these models inevitably encounter toxic content. While significant research has focused on detecting hate speech, this study investigates the generative risk: how models react when prompted with hateful language. Does the model push back, remain silent, or reciprocate the toxicity?

Methodology

The researchers developed a comprehensive multi-stage pipeline to evaluate seven state-of-the-art LLMs, including LLaMA 2, Vicuna, LLaMA 3, Mistral, GPT-3.5, GPT-4, and Gemini Pro.

Experimental pipeline for evaluating LLM reactions to hate speech.

The experimental framework involved:

  1. Baseline Testing: Prompting models with over 26,000 hateful sentences from datasets like CONAN (Islamophobia focus) and DGHS (explicit slurs and threats) without safety instructions.
  2. Auditing: Responses were classified using MetaHate BERT and manual expert labeling into categories such as Counter-speech, Hate Speech, and Topic-Shift.
  3. Mitigation Strategies: Testing the efficacy of direct system prompts, counter-speech guidelines, and QLoRA-based fine-tuning.
  4. "Polite Hate" Probe: Testing if models could be tricked by rephrasing explicit hate into "politically correct" but still hateful sentiments.

Key Insights

The study revealed a stark "Open-Source Gap." Proprietary models like GPT-4 and Gemini Pro rarely reciprocated hate, whereas open-source models like LLaMA 2 and Mistral were prone to mirroring the user's toxicity. Interestingly, models were more likely to generate hateful content when prompts were subtle or "polite," as these often bypassed internal safety filters designed for explicit slurs.

Furthermore, the research found that simple runtime system prompts ("Directives") were often more effective and efficient at silencing hateful outputs than complex weight-based fine-tuning. This suggests that the "mirroring" effect—where models treat hate as a conversational style to be emulated—can be effectively interrupted with clear instructions.

Results

The baseline results highlighted significant vulnerabilities in open-source models. For instance, LLaMA 2 generated hate speech in 68.17% of responses to the CONAN dataset, illustrating a high propensity for reciprocation.

Baseline hate speech generation percentages across models and datasets.

Key findings include:

  • Mitigation Efficacy: The "Stop Prompt" strategy was the most successful, reducing hateful generations to less than 1% across nearly all models.
  • Classifier Vulnerability: Automated tools like MetaHate BERT struggled with nuance, catching only 17% of "Polite Hate" instances compared to 75% of explicit ones.
  • Counter-speech Champions: GPT-4 and GPT-3.5 excelled at generating active counter-narratives, with over 70% of their responses challenging the hateful prompt.

Conclusion

This research underscores the critical need for robust safety guardrails in LLMs, particularly for open-source variants. While prompting offers a powerful mitigation tool, the failure of automated classifiers against "polite" hate speech remains a significant challenge. Future work must address these vulnerabilities by expanding to multi-lingual contexts and developing more sophisticated detection methods for implicit bias and harmful intent.

Summary updated

BibTeX
@inproceedings{piot2025decoding,
  author = {Paloma Piot and Javier Parapar},
  title = {{Decoding Hate: Exploring Language Models' Reactions to Hate Speech}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2025},
  doi = {10.18653/v1/2025.naacl-long.45},
}
Figure