arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2306.08505cs.CLcs.LG
收藏

DiffuDetox:一种用于文本去毒化的混合扩散模型

DiffuDetox: A Mixed Diffusion Model for Text Detoxification

University of Toronto(多伦多大学);LG Electronics(LG电子)

Griffin Floto, Mohammad Mahdi Abdollah Pour, Parsa Farinneya, Zhenwei Tang, Ali Pesaranghader, Manasa Bharadwaj, Scott Sanner

AI总结:

针对文本去毒化任务数据不足导致扩散模型生成文本流畅度下降的问题,提出混合扩散模型DiffuDetox,结合条件模型保多样性、无约束模型提流畅度的优势,经实验验证了其有效性。

摘要:

文本去毒化是一项条件文本生成任务,旨在从有毒文本中去除冒犯性内容,在冒犯性内容频发的在线论坛和社交媒体中极具实用价值。直观来看,在保留句子原意的前提下,存在多种句子去毒化方式,我们可在向用户展示文本前从多个去毒化句子中进行选择。条件扩散模型尤其适合该任务,因为已有研究表明其生成多样性优于现有基于语言模型的条件文本生成模型。然而,当训练数据不足时(文本去毒化任务正面临这一情况),这类模型生成的文本流畅度会下降。本研究提出DiffuDetox——一种结合条件与无约束模式的混合扩散模型,用于文本去毒化。其中条件模型以有毒文本为条件,降低其毒性,生成多样化的去毒化句子集合;无约束模型被训练用于恢复输入文本,从而可引入额外的流畅文本参与训练,保障文本流畅度。大量实验结果与深入分析证明了所提DiffuDetox模型的有效性。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑