生成式、开放领域的对话模型由于基于网络社交数据进行训练,尤其容易生成不安全内容。以往缓解该问题的方法存在若干缺陷,例如打断对话流畅性、对未见过的有毒输入情境泛化能力有限,以及为了安全性而牺牲对话质量。本文提出一个名为“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.
Building Trust in Mental Health Chatbots: Safety Metrics and LLM-Based Evaluation Tools
Sue & Bill Gross School of Nursing, University of California, Irvine(加州大学欧文分校苏与比尔·格罗斯护理学院);Department of Computer Sciences, University of California, Irvine(加州大学欧文分校计算机科学系);School of Medicine, University of California, Irvine(加州大学欧文分校医学院);Department of Psychological Science, University of California, Irvine(加州大学欧文分校心理科学系);Chicago School of Professional Psychology(芝加哥专业心理学院);HealthUnity
TherapyGym: Evaluating and Aligning Clinical Fidelity and Safety in Therapy Chatbots
Department of Computer Science, Stanford University, Stanford, CA, USA(计算机科学系,斯坦福大学,斯坦福,加州,美国);Department of Psychiatry and Behavioral Sciences, Stanford University, Stanford, CA, USA(精神病学与行为科学系,斯坦福大学,斯坦福,加州,美国);Department of Biomedical Data Science, Stanford University, Stanford, CA, USA(生物医学数据科学系,斯坦福大学,斯坦福,加州,美国);University of California, Berkeley, Berkeley, CA, USA(加州大学伯克利分校,伯克利,加州,美国);The University of Hong Kong, Hong Kong(香港大学,香港)
History of generative Artificial Intelligence (AI) chatbots: past, present, and future development
University of Massachusetts Lowell(马萨诸塞大学洛厄尔分校);Asian University of Bangladesh(亚洲孟加拉大学);Sonargaon University(索纳尔冈大学);Babes-Bolyai University(巴比什-博雅依大学);Islamic University(伊斯兰大学);University of Chittagong(吉大港大学)
Large language models provide unsafe answers to patient-posed medical questions
Glass Box Medicine;University of Virginia(弗吉尼亚大学);Riverside Community Hospital(河滨社区医院);Inova Schar Heart and Vascular(Inova Schar 心脏与血管研究所);Inova Fairfax Medical Campus(Inova Fairfax 医疗园区);Cooper University Hospital(库珀大学医院);South Texas Research Institute(南德克萨斯研究所);University of California(加利福尼亚大学);Valley View Hospital(Valley View 医院);University of Louisville(路易斯维尔大学);University of Oklahoma Health Sciences Center(俄克拉荷马大学健康科学中心);Northwell Health;Emory University(埃默里大学);Brigham and Women's Hospital(布莱根妇女医院);Castilleja School(卡斯蒂列亚学校);Piedmont Healthcare;AmyMD Wellness
Generative AI in Heritage Practice: Improving the Accessibility of Heritage Guidance
Edinburgh Futures Institute(爱丁堡未来研究所);University of Edinburgh(爱丁堡大学);Historic England(英国历史遗产委员会);School of History, Classics & Archaeology University of Edinburgh(历史、古典学与考古学学院爱丁堡大学)