Improving Dialog Safety using Socially Aware Contrastive Learning
Not on the map. Why?
Abstract (arXiv)
State-of-the-art conversational AI systems raise concerns due to their potential risks of generating unsafe, toxic, unethical, or dangerous content. Previous works have developed datasets to teach conversational agents the appropriate social paradigms to respond effectively to specifically designed hazardous content. However, models trained on these adversarial datasets still struggle to recognize subtle unsafe situations that appear naturally in conversations or introduce an inappropriate response in a casual context. To understand the extent of this problem, we study prosociality in both adversarial and casual dialog contexts and audit the response quality of general-purpose language models in terms of propensity to produce unsafe content. We propose a dual-step fine-tuning process to address these issues using a socially aware n-pair contrastive loss. Subsequently, we train a base model that integrates prosocial behavior by leveraging datasets like Moral Integrity Corpus (MIC) and ProsocialDialog. Experimental results on several dialog datasets demonstrate the effectiveness of our approach in generating socially appropriate responses.
Key facts. No citing papers in the map yet (data through 13 Oct 2026). Builds on 23 of its 46 references that are in the map. First posted on arXiv 1 Feb 2024.
Builds on
23 of 46 references.
References · 23
- 2014Adam: A Method for Stochastic Optimizationcited by 37,093
- 2020Language Models are Few-Shot Learnerscited by 32,320
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,231
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,107
- 2018Representation Learning with Contrastive Predictive Codingcited by 7,712
- 2018Personalizing Dialogue Agents: I have a dog, do you have pets too?cited by 824
- 2019CTRL: A Conditional Transformer Language Model for Controllable Generationcited by 757
- 2017DailyDialog: A Manually Labelled Multi-turn Dialogue Datasetcited by 649
- 2022Contrastive Decoding: Open-ended Text Generation as Optimizationcited by 600
- 2020Recipes for building an open-domain chatbotcited by 593
- 2021DExperts: Decoding-Time Controlled Text Generation with Experts and Anti-Expertscited by 437
- 2019Build it Break it Fix it for Dialogue Safety: Robustness from Adversarial Human Attackcited by 176
11 more
- 2020Recipes for Safety in Open-domain Chatbotscited by 170
- 2022SODA: Million-scale Dialogue Distillation with Social Commonsense Contextualizationcited by 166
- 2020Can You Put it All Together: Evaluating Conversational Agents' Ability to Blend Skillscited by 131
- 2022ProsocialDialog: A Prosocial Backbone for Conversational Agentscited by 109
- 2022The Moral Integrity Corpus: A Benchmark for Ethical Dialogue Systemscited by 92
- 2022Language Generation Models Can Cause Harm: So What Can We Do About It? An Actionable Surveycited by 80
- 2021On the Safety of Conversational Models: Taxonomy, Dataset, and Benchmarkcited by 73
- 2022RankGen: Improving Text Generation with Large Ranking Modelscited by 72
- 2021Just Say No: Analyzing the Stance of Neural Dialogue Generation in Offensive Contextscited by 56
- 2021SaFeRDialogues: Taking Feedback Gracefully after Conversational Safety Failurescited by 37
- 2023Beyond the Safeguards: Exploring the Security Risks of ChatGPTcited by 36
Built on by
Not cited yet.