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

学习不该学习什么:迈向聊天机器人的生成式安全

Learn What NOT to Learn: Towards Generative Safety in Chatbots

Hong Kong University of Science and Technology(香港科技大学);Sharif University of Science and Technology(谢里夫理工大学);University of Waterloo(滑铁卢大学)

Leila Khalatbari, Yejin Bang, Dan Su, Willy Chung, Saeed Ghadimi, Hossein Sameti, Pascale Fung

AI总结:

针对开放领域聊天机器人易生成不安全内容的问题,提出LOT对比学习框架,从安全与不安全语言分布中自动获取正负信号,在保持对话吸引力与流畅性的同时显著降低毒性。

摘要:

生成式、开放领域的对话模型由于基于网络社交数据进行训练,尤其容易生成不安全内容。以往缓解该问题的方法存在若干缺陷,例如打断对话流畅性、对未见过的有毒输入情境泛化能力有限,以及为了安全性而牺牲对话质量。本文提出一个名为“LOT”(Learn NOT to,学习不去做)的新颖框架,该框架采用对比损失,通过同时从正向和负向训练信号中学习来增强泛化能力。我们的方法不同于标准对比学习框架,它会从预先学习到的安全与不安全语言分布中自动获取正向和负向信号。LOT框架利用散度引导生成内容远离不安全子空间并趋向安全子空间,同时维持对话的连贯性。我们的方法在解码阶段具有较高的内存和时间效率,能够在保持吸引力和流畅性的同时有效降低毒性。实验结果表明,与基线模型相比,LOT最多可将毒性降低四倍,同时在吸引力和流畅性评分上达到四至六倍的提升。我们的发现进一步得到人工评估的证实。

英文摘要:

Conversational models that are generative and open-domain are particularly susceptible to generating unsafe content since they are trained on web-based social data. Prior approaches to mitigating this issue have drawbacks, such as disrupting the flow of conversation, limited generalization to unseen toxic input contexts, and sacrificing the quality of the dialogue for the sake of safety. In this paper, we present a novel framework, named "LOT" (Learn NOT to), that employs a contrastive loss to enhance generalization by learning from both positive and negative training signals. Our approach differs from the standard contrastive learning framework in that it automatically obtains positive and negative signals from the safe and unsafe language distributions that have been learned beforehand. The LOT framework utilizes divergence to steer the generations away from the unsafe subspace and towards the safe subspace while sustaining the flow of conversation. Our approach is memory and time-efficient during decoding and effectively reduces toxicity while preserving engagingness and fluency. Empirical results indicate that LOT reduces toxicity by up to four-fold while achieving four to six-fold higher rates of engagingness and fluency compared to baseline models. Our findings are further corroborated by human evaluation.

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

↑