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

释放内心的恶魔:语言模型的自我解构

Leashing the Inner Demons: Self-Detoxification for Language Models

University of California, San Diego(加州大学圣地亚哥分校)

Canwen Xu, Zexue He, Zhankui He, Julian McAuley

摘要:

语言模型(LM)可以复制(或放大)在训练过程中看到的有毒语言,这对其实际应用构成了风险。在本文中,我们进行了大量的实验来研究这一现象。我们分析了提示语、解码策略和训练语料对输出毒性的影响。基于我们的研究结果,我们提出了一个简单而有效的方法,语言模型“解毒”自己没有额外的大型语料库或外部的干扰。与监督基线相比,我们提出的方法显示出更好的毒性降低,在多个设置下生成的内容具有良好的生成质量。警告:本文中显示的一些示例可能包含未经审查的攻击性内容。

英文摘要:

Language models (LMs) can reproduce (or amplify) toxic language seen during training, which poses a risk to their practical application. In this paper, we conduct extensive experiments to study this phenomenon. We analyze the impact of prompts, decoding strategies and training corpora on the output toxicity. Based on our findings, we propose a simple yet effective method for language models to "detoxify" themselves without an additional large corpus or external discriminator. Compared to a supervised baseline, our proposed method shows better toxicity reduction with good generation quality in the generated content under multiple settings. Warning: some examples shown in the paper may contain uncensored offensive content.

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

↑