Saved in:
Bibliographic Details
Main Authors: Das, Souvik, Srihari, Rohini K.
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2402.00446
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866929230854488064
author Das, Souvik
Srihari, Rohini K.
author_facet Das, Souvik
Srihari, Rohini K.
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2402_00446
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Improving Dialog Safety using Socially Aware Contrastive Learning
Das, Souvik
Srihari, Rohini K.
Computation and Language
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.
title Improving Dialog Safety using Socially Aware Contrastive Learning
topic Computation and Language
url https://arxiv.org/abs/2402.00446