DiffuDetox: A Mixed Diffusion Model for Text Detoxification

Griffin Floto, Mohammad Mahdi Abdollah Pour, Parsa Farinneya, Zhenwei Tang, Ali Pesaranghader +2 more
6/14/2023
cs.CLcs.LG

No confident code implementation found for this paper.

Abstract

Text detoxification is a conditional text generation task aiming to remove offensive content from toxic text. It is highly useful for online forums and social media, where offensive content is frequently encountered. Intuitively, there are diverse ways to detoxify sentences while preserving their meanings, and we can select from detoxified sentences before displaying text to users. Conditional diffusion models are particularly suitable for this task given their demonstrated higher generative diversity than existing conditional text generation models based on language models. Nonetheless, text fluency declines when they are trained with insufficient data, which is the case for this task. In this work, we propose DiffuDetox, a mixed conditional and unconditional diffusion model for text detoxification. The conditional model takes toxic text as the condition and reduces its toxicity, yielding a diverse set of detoxified sentences. The unconditional model is trained to recover the input text, which allows the introduction of additional fluent text for training and thus ensures text fluency. Extensive experimental results and in-depth analysis demonstrate the effectiveness of our proposed DiffuDetox.

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. Any repos shown below are weak matches — 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{floto2023diffudetox,
  title  = {DiffuDetox: A Mixed Diffusion Model for Text Detoxification},
  author = {Griffin Floto and Mohammad Mahdi Abdollah Pour and Parsa Farinneya and Zhenwei Tang and Ali Pesaranghader and Manasa Bharadwaj and Scott Sanner},
  year   = {2023},
  eprint = {2306.08505},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2306.08505v1}
}

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

Discussion