Decoding Hate: Exploring Language Models' Reactions to Hate Speech

Paloma Piot, Javier Parapar
10/1/2024
cs.CL

No official code found. Best implementation: IRLab-UDC/decoding-hate (2 stars, Apache-2.0, last commit 2025-04-29). 1 more below.

Abstract

Hate speech is a harmful form of online expression, often manifesting as derogatory posts. It is a significant risk in digital environments. With the rise of Large Language Models (LLMs), there is concern about their potential to replicate hate speech patterns, given their training on vast amounts of unmoderated internet data. Understanding how LLMs respond to hate speech is crucial for their responsible deployment. However, the behaviour of LLMs towards hate speech has been limited compared. This paper investigates the reactions of seven state-of-the-art LLMs (LLaMA 2, Vicuna, LLaMA 3, Mistral, GPT-3.5, GPT-4, and Gemini Pro) to hate speech. Through qualitative analysis, we aim to reveal the spectrum of responses these models produce, highlighting their capacity to handle hate speech inputs. We also discuss strategies to mitigate hate speech generation by LLMs, particularly through fine-tuning and guideline guardrailing. Finally, we explore the models' responses to hate speech framed in politically correct language.

View on arXivView PDF

Code Implementations(2)

Decoding Hate: Exploring Language Models’ Reactions to Hate Speech

00Feb 13, 20268 months ago
Apache-2.0

Decoding Hate: Exploring Language Models' Reactions to Hate Speech @ NAACL '25

21PythonMay 24, 20241 years agoApache-2.0
guardrailshate-speech-detectionllms

Similar Papers

Cite this paper

@article{piot2024decoding,
  title  = {Decoding Hate: Exploring Language Models' Reactions to Hate Speech},
  author = {Paloma Piot and Javier Parapar},
  year   = {2024},
  eprint = {2410.00775},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.00775v1}
}

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/2410.00775.svg)](https://codeofpaper.com/paper/2410.00775)

Discussion