LLM in the Loop: Creating the ParaDeHate Dataset for Hate Speech Detoxification

Shuzhou Yuan, Ercong Nie, Lukas Kouba, Ashish Yashwanth Kangen, Helmut Schmid +2 more
6/2/2025
cs.CL

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

Detoxification, the task of rewriting harmful language into non-toxic text, has become increasingly important amid the growing prevalence of toxic content online. However, high-quality parallel datasets for detoxification, especially for hate speech, remain scarce due to the cost and sensitivity of human annotation. In this paper, we propose a novel LLM-in-the-loop pipeline leveraging GPT-4o-mini for automated detoxification. We first replicate the ParaDetox pipeline by replacing human annotators with an LLM and show that the LLM performs comparably to human annotation. Building on this, we construct ParaDeHate, a large-scale parallel dataset specifically for hatespeech detoxification. We release ParaDeHate as a benchmark of over 8K hate/non-hate text pairs and evaluate a wide range of baseline methods. Experimental results show that models such as BART, fine-tuned on ParaDeHate, achieve better performance in style accuracy, content preservation, and fluency, demonstrating the effectiveness of LLM-generated detoxification text as a scalable alternative to human annotation.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{yuan2025loop,
  title  = {LLM in the Loop: Creating the ParaDeHate Dataset for Hate Speech Detoxification},
  author = {Shuzhou Yuan and Ercong Nie and Lukas Kouba and Ashish Yashwanth Kangen and Helmut Schmid and Hinrich Schütze and Michael Färber},
  year   = {2025},
  eprint = {2506.01484},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.01484v2}
}

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

Discussion