arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2203.09509cs.CL
收藏

ToxiGen:一个大规模机器生成的数据集,用于对抗性和隐含仇恨语音检测

ToxiGen: A Large-Scale Machine-Generated Dataset for Adversarial and Implicit Hate Speech Detection

Massachusetts Institute of Technology(麻省理工学院);University of Washington(华盛顿大学);Microsoft Research(微软研究院);Allen Institute for AI(艾伦人工智能研究所);Carnegie Mellon University(卡内基梅隆大学);Microsoft(微软)

Thomas Hartvigsen, Saadia Gabriel, Hamid Palangi, Maarten Sap, Dipankar Ray, Ece Kamar

摘要:

有毒语言检测系统通常会错误地将包含少数群体的文本标记为有毒,因为这些群体通常是在线仇恨的目标。这种对虚假相关性的过度依赖也导致系统难以检测隐含的有毒语言。为了帮助缓解这些问题,我们创建了ToxiGen,这是一个新的大规模机器生成的数据集,包含关于13个少数群体的274k有毒和良性声明。我们开发了一个基于演示的提示框架和一个对抗性的分类器在循环解码方法,用一个大规模的预训练语言模型生成微妙的有毒和良性的文本。以这种方式控制机器生成允许ToxiGen以更大的规模覆盖隐含的有毒文本,并且比以前的人类书面文本资源覆盖更多的人口统计群体。我们对ToxiGen的一个具有挑战性的子集进行了人类评估,发现注释者很难区分机器生成的文本和人类书写的语言。我们还发现,94.5%的有毒示例被人类注释者标记为仇恨言论。使用三个公开的数据集,我们表明,对我们的数据进行微调的毒性分类器大大提高了其对人类书面数据的性能。我们还证明了ToxiGen可用于对抗机器产生的毒性,因为微调在我们的评估子集上显着改进了分类器。我们的代码和数据可以在https://github.com/microsoft/ToxiGen上找到。

英文摘要:

Toxic language detection systems often falsely flag text that contains minority group mentions as toxic, as those groups are often the targets of online hate. Such over-reliance on spurious correlations also causes systems to struggle with detecting implicitly toxic language. To help mitigate these issues, we create ToxiGen, a new large-scale and machine-generated dataset of 274k toxic and benign statements about 13 minority groups. We develop a demonstration-based prompting framework and an adversarial classifier-in-the-loop decoding method to generate subtly toxic and benign text with a massive pretrained language model. Controlling machine generation in this way allows ToxiGen to cover implicitly toxic text at a larger scale, and about more demographic groups, than previous resources of human-written text. We conduct a human evaluation on a challenging subset of ToxiGen and find that annotators struggle to distinguish machine-generated text from human-written language. We also find that 94.5% of toxic examples are labeled as hate speech by human annotators. Using three publicly-available datasets, we show that finetuning a toxicity classifier on our data improves its performance on human-written data substantially. We also demonstrate that ToxiGen can be used to fight machine-generated toxicity as finetuning improves the classifier significantly on our evaluation subset. Our code and data can be found at https://github.com/microsoft/ToxiGen.

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

↑