Improving Dialog Safety using Socially Aware Contrastive Learning

Souvik Das, Rohini K. Srihari


Abstract
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.
Anthology ID:
2024.scichat-1.2
Volume:
Proceedings of the 1st Workshop on Simulating Conversational Intelligence in Chat (SCI-CHAT 2024)
Month:
March
Year:
2024
Address:
St. Julians, Malta
Editors:
Yvette Graham, Qun Liu, Gerasimos Lampouras, Ignacio Iacobacci, Sinead Madden, Haider Khalid, Rameez Qureshi
Venues:
SCI-CHAT | WS
SIG:
Publisher:
Association for Computational Linguistics
Note:
Pages:
4–18
Language:
URL:
https://aclanthology.org/2024.scichat-1.2
DOI:
Bibkey:
Cite (ACL):
Souvik Das and Rohini K. Srihari. 2024. Improving Dialog Safety using Socially Aware Contrastive Learning. In Proceedings of the 1st Workshop on Simulating Conversational Intelligence in Chat (SCI-CHAT 2024), pages 4–18, St. Julians, Malta. Association for Computational Linguistics.
Cite (Informal):
Improving Dialog Safety using Socially Aware Contrastive Learning (Das & Srihari, SCI-CHAT-WS 2024)
Copy Citation:
PDF:
https://aclanthology.org/2024.scichat-1.2.pdf