arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2405.09948cs.CL
收藏

利用反事实生成缓解文本毒性

Mitigating Text Toxicity with Counterfactual Generation

institutetext: Ekimetrics(Ekimetrics);institutetext: LFI, LIP6, Sorbonne Université, Paris, France(LFI、LIP6、索邦大学、巴黎,法国);institutetext: Aix-Marseille Université, Aix-Marseille, France(艾克斯-马赛大学、艾克斯-马赛,法国);institutetext: Université Paris Cité, Paris, France(巴黎城市大学、巴黎,法国)

Milan Bhan, Jean-Noel Vittaut, Nina Achache, Victor Legrand, Nicolas Chesneau, Annabelle Blangero, Juliette Murris, Marie-Jeanne Lesot

AI总结:

本文提出利用可解释AI领域的反事实生成方法进行文本去毒,在准确缓解毒性的同时更好地保留初始文本含义,首次弥合了反事实生成与文本去毒的差距。

摘要:

毒性缓解是指通过改写文本来消除冒犯性或有害含义。神经自然语言处理(NLP)模型已被广泛用于针对和缓解文本毒性。然而,现有方法在给文本去毒的同时,无法保留其初始的无毒含义。在这项工作中,我们提出应用来自可解释AI(XAI)领域的反事实生成方法来针对和缓解文本毒性。具体而言,我们通过将局部特征重要性和反事实生成方法应用于区分有毒和无毒文本的毒性分类器,来执行文本去毒。我们在三个数据集上通过反事实生成进行文本去毒,并将我们的方法与三个竞争对手进行比较。自动和人工评估表明,最近开发的NLP反事实生成器能够准确缓解毒性,同时与经典的去毒方法相比,能更好地保留初始文本的含义。最后,我们退一步反思自动化去毒工具的使用,并讨论如何管理毒性的多义性质以及去毒工具被恶意使用的风险。这项工作首次弥合了反事实生成与文本去毒之间的差距,为XAI方法的更实际应用铺平了道路。

英文摘要:

Toxicity mitigation consists in rephrasing text in order to remove offensive or harmful meaning. Neural natural language processing (NLP) models have been widely used to target and mitigate textual toxicity. However, existing methods fail to detoxify text while preserving the initial non-toxic meaning at the same time. In this work, we propose to apply counterfactual generation methods from the eXplainable AI (XAI) field to target and mitigate textual toxicity. In particular, we perform text detoxification by applying local feature importance and counterfactual generation methods to a toxicity classifier distinguishing between toxic and non-toxic texts. We carry out text detoxification through counterfactual generation on three datasets and compare our approach to three competitors. Automatic and human evaluations show that recently developed NLP counterfactual generators can mitigate toxicity accurately while better preserving the meaning of the initial text as compared to classical detoxification methods. Finally, we take a step back from using automated detoxification tools, and discuss how to manage the polysemous nature of toxicity and the risk of malicious use of detoxification tools. This work is the first to bridge the gap between counterfactual generation and text detoxification and paves the way towards more practical application of XAI methods.

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

↑