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

Just Say No:Analyzing the Stance of Neural Dialogue Generation in Offensive Contexts(英语:Just Say No:Analysis the Stance of Neural Dialogue Generation in Offensive Contexts)

Just Say No: Analyzing the Stance of Neural Dialogue Generation in Offensive Contexts

Georgia Institute of Technology(佐治亚理工学院);University of Washington(华盛顿大学)

Ashutosh Baheti, Maarten Sap, Alan Ritter, Mark Riedl

摘要:

在人类对话中训练的对话模型无意中学会了产生有毒反应。除了产生明确的冒犯性言论外,这些模型还可以通过将自己与冒犯性言论联系起来来含蓄地侮辱一个群体或个人。为了更好地理解上下文攻击性语言的动态,我们研究了攻击性Reddit对话中对话模型响应的立场。具体来说,我们创建了ToxiChat,这是一个由2,000个Reddit线程和带有攻击性语言和立场标签的模型响应组成的人群注释数据集。我们的分析显示,42%的人同意有毒评论,而只有13%的人同意安全评论。这种不受欢迎的行为是通过神经对话模型学习的,比如DialoGPT,我们发现它同意攻击性评论的可能性是其他模型的两倍。为了实现攻击性语言的自动检测,我们在ToxiChat上微调了基于transformer的分类器,使攻击性标签的F1达到0.71,立场标签的F1达到0.53。最后,我们量化了可控文本生成(CTG)方法的有效性,以减轻神经对话模型同意攻击性评论的倾向。与基线相比,我们最好的CTG模型在攻击性评论的一致性方面减少了19%,并且产生的攻击性回复减少了29%。我们的工作强调了需要进一步努力来描述和分析对话模型中的不当行为,以帮助使它们更安全。我们的代码和语料库可以在https://github.com/abaheti95/ToxiChat上找到。

英文摘要:

Dialogue models trained on human conversations inadvertently learn to generate toxic responses. In addition to producing explicitly offensive utterances, these models can also implicitly insult a group or individual by aligning themselves with an offensive statement. To better understand the dynamics of contextually offensive language, we investigate the stance of dialogue model responses in offensive Reddit conversations. Specifically, we create ToxiChat, a crowd-annotated dataset of 2,000 Reddit threads and model responses labeled with offensive language and stance. Our analysis reveals that 42% of human responses agree with toxic comments, whereas only 13% agree with safe comments. This undesirable behavior is learned by neural dialogue models, such as DialoGPT, which we show are two times more likely to agree with offensive comments. To enable automatic detection of offensive language, we fine-tuned transformer-based classifiers on ToxiChat that achieve 0.71 F1 for offensive labels and 0.53 Macro-F1 for stance labels. Finally, we quantify the effectiveness of controllable text generation (CTG) methods to mitigate the tendency of neural dialogue models to agree with offensive comments. Compared to the baseline, our best CTG model achieves a 19% reduction in agreement with offensive comments and produces 29% fewer offensive replies. Our work highlights the need for further efforts to characterize and analyze inappropriate behavior in dialogue models, in order to help make them safer. Our code and corpus are available at https://github.com/abaheti95/ToxiChat .

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

↑