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

理解开放域聊天机器人中的多轮有害行为

Understanding Multi-Turn Toxic Behaviors in Open-Domain Chatbots

Michigan State University(密歇根州立大学)

Bocheng Chen, Guangjing Wang, Hanqing Guo, Yuanda Wang, Qiben Yan

AI总结:

针对现有单轮检测无法识别多轮对话中无害句子触发有害回复的问题,提出toxicbot攻击方法,通过构造对话序列微调聊天机器人触发目标模型生成有害内容,验证了多轮场景下的聊天机器人安全风险并为防御研究提供工具。

摘要:

自然语言处理与机器学习的最新进展推动了ChatGPT等可与人类用户进行对话交互的聊天机器人模型的发展。然而,这些模型在无有害内容的多轮对话过程中生成有毒或有害回复的可能性,仍是一个悬而未决的研究问题。现有研究聚焦于单轮句子测试,而我们发现,在对话中会引发有害行为的单条无有害内容句子中,有82%被现有工具判定为安全。\n本文中,我们设计了一种名为toxicbot的新型攻击方式,通过微调一个聊天机器人来与目标开放域聊天机器人进行对话。该聊天机器人使用一系列精心构造的对话序列进行微调,具体而言,每段对话都来自一个构造的提示句数据集的句子开启。我们的大量评估表明,开放域聊天机器人模型可在多轮对话中被触发生成有害回复。在最佳场景下,toxicbot可达到67%的激活率。微调阶段的对话序列有助于触发对话中的有害性,使得该攻击能够绕过两种防御方法。\n我们的研究结果表明,需要进一步研究以解决动态交互环境中的聊天机器人有害性问题。所提出的toxicbot可供产业界和研究人员用于开发检测与缓解对话中有害回复的方法,提升面向终端用户的聊天机器人鲁棒性。

英文摘要:

Recent advances in natural language processing and machine learning have led to the development of chatbot models, such as ChatGPT, that can engage in conversational dialogue with human users. However, the ability of these models to generate toxic or harmful responses during a non-toxic multi-turn conversation remains an open research question. Existing research focuses on single-turn sentence testing, while we find that 82\% of the individual non-toxic sentences that elicit toxic behaviors in a conversation are considered safe by existing tools. In this paper, we design a new attack, \toxicbot, by fine-tuning a chatbot to engage in conversation with a target open-domain chatbot. The chatbot is fine-tuned with a collection of crafted conversation sequences. Particularly, each conversation begins with a sentence from a crafted prompt sentences dataset. Our extensive evaluation shows that open-domain chatbot models can be triggered to generate toxic responses in a multi-turn conversation. In the best scenario, \toxicbot achieves a 67\% activation rate. The conversation sequences in the fine-tuning stage help trigger the toxicity in a conversation, which allows the attack to bypass two defense methods. Our findings suggest that further research is needed to address chatbot toxicity in a dynamic interactive environment. The proposed \toxicbot can be used by both industry and researchers to develop methods for detecting and mitigating toxic responses in conversational dialogue and improve the robustness of chatbots for end users.

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

↑