arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2506.01484cs.CL
收藏

LLM 在环:创建用于仇恨言论去毒的 ParaDeHate 数据集

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

ScaDS.AI and TU Dresden(ScaDS.AI和德累斯顿技术大学);LMU Munich(慕尼黑大学);Munich Center for Machine Learning (MCML)(慕尼黑机器学习中心(MCML))

Shuzhou Yuan, Ercong Nie, Lukas Kouba, Ashish Yashwanth Kangen, Helmut Schmid, Hinrich Schütze, Michael Färber

AI总结:

本文提出基于 GPT-4o-mini 的 LLM 在环流程,构建并发布含 8K 余文本对的 ParaDeHate 仇恨言论去毒基准,实验验证其可有效替代人工标注并提升模型性能。

摘要:

去毒是将有害语言改写为非毒性文本的任务,随着网络毒性内容日益普遍,它已变得越来越重要。然而,由于人工标注的成本和敏感性,高质量的去毒并行数据集(尤其是针对仇恨言论的数据集)仍然稀缺。本文提出一种利用 GPT-4o-mini 实现自动化去毒的新型 LLM-in-the-loop(大语言模型在环)流程。我们首先通过用 LLM 替代人工标注者来复现 ParaDetox 流程,结果表明该 LLM 的表现与人工标注相当。在此基础上,我们构建了 ParaDeHate,这是一个专门用于仇恨言论去毒的大规模并行数据集。我们发布 ParaDeHate 作为包含超过 8K 个仇恨/非仇恨文本对的基准,并评估了多种基线方法。实验结果表明,在 ParaDeHate 上微调的 BART 等模型在风格准确性、内容保留度和流畅性方面取得了更好的性能,证明了 LLM 生成的去毒文本作为可扩展的人工标注替代方案的有效性。

英文摘要:

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.

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

↑