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

具有语境化姿态控制的对话中的语言模型去规范化

Language Model Detoxification in Dialogue with Contextualized Stance Control

University of California, Santa Barbara(加州大学圣巴巴拉分校)

Jing Qian, Xifeng Yan

摘要:

为了减少预训练的语言模型(LM)中的毒性退化,以前关于语言模型解毒的工作集中于在不考虑上下文的情况下减少生成本身的毒性(自毒性)。因此,一种隐含的攻击性语言被忽略了,在这种语言中,世代支持上下文中的攻击性语言。不同于LM控制任务在以前的工作中,其中所需的属性是固定的生成,所需的立场的生成依赖于攻击性的上下文。因此,我们提出了一种新的控制方法来做上下文相关的解毒考虑的立场。我们引入Meta前缀来学习上下文化的姿态控制策略,并根据输入的上下文生成姿态控制前缀。然后将生成的姿态前缀与毒性控制前缀组合以指导响应生成。实验结果表明,我们提出的方法可以有效地学习上下文相关的姿态控制策略,同时保持低自毒性的底层LM。

英文摘要:

To reduce the toxic degeneration in a pretrained Language Model (LM), previous work on Language Model detoxification has focused on reducing the toxicity of the generation itself (self-toxicity) without consideration of the context. As a result, a type of implicit offensive language where the generations support the offensive language in the context is ignored. Different from the LM controlling tasks in previous work, where the desired attributes are fixed for generation, the desired stance of the generation depends on the offensiveness of the context. Therefore, we propose a novel control method to do context-dependent detoxification with the stance taken into consideration. We introduce meta prefixes to learn the contextualized stance control strategy and to generate the stance control prefix according to the input context. The generated stance prefix is then combined with the toxicity control prefix to guide the response generation. Experimental results show that our proposed method can effectively learn the context-dependent stance control strategies while keeping a low self-toxicity of the underlying LM.

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

↑