On the Safety of Conversational Models: Taxonomy, Dataset, and Benchmark

Hao Sun, Guangxuan Xu, Jiawen Deng, Jiale Cheng, Chujie Zheng, Hao Zhou, Nanyun Peng, Xiaoyan Zhu, Minlie Huang

TL;DR

This paper introduces a new taxonomy and dataset (DIASAFETY) for evaluating context-sensitive unsafety in conversational AI, a critical but under-explored area. They demonstrate that existing safety tools struggle with this type of unsafety, and their benchmark reveals significant safety issues in popular dialogue systems, highlighting the need for more nuanced safety evaluation.

What Problem Does This Paper Address?

Generative conversational models, while increasingly sophisticated, are still hampered by safety concerns that limit their real-world deployment. Previous research has largely focused on utterance-level unsafety (e.g., overtly toxic language). However, this paper argues that a more significant challenge lies in context-sensitive unsafety, where a response might appear safe in isolation but become harmful or inappropriate when considered within the dialogue's history. This type of unsafety is harder to detect and can have more subtle but damaging effects on users, such as exacerbating mental health issues or promoting harmful stereotypes. The authors aim to address this gap by providing a structured way to understand and measure context-sensitive unsafety.

Methods

The authors propose a novel taxonomy for dialogue safety, focusing on six categories of context-sensitive unsafety: Offending User, Risk Ignorance, Unauthorized Expertise, Toxicity Agreement, Biased Opinion, and Sensitive Topic Continuation. They then introduce DIASAFETY, a dataset of over 11,000 context-response pairs specifically curated to capture these context-sensitive unsafe behaviors. To evaluate existing models, they develop a two-step detection strategy: first, an utterance-level check using existing tools like Detoxify, followed by a context-sensitive check using classifiers trained on their DIASAFETY dataset. They also train fine-grained classifiers to identify the specific type of unsafety.

Datasets

The primary contribution is the DIASAFETY dataset, containing approximately 11,000 labeled context-response pairs. This dataset is unique in its focus on context-sensitive unsafety. Data was collected from various sources, including real-world conversations from Reddit, and augmented with machine-generated data and existing datasets like MedDialog. The dataset is designed to be challenging for existing safety detectors.

Key Insights and Ideas

  • Context is King (for Safety): The paper strongly emphasizes that dialogue safety cannot be assessed solely by looking at individual responses. The context of the conversation is crucial for determining whether a response is truly safe or not.
  • Existing Tools Fall Short: Current safety detection tools, while effective for overt toxicity, are largely ineffective against the more subtle, context-dependent unsafety that DIASAFETY targets. This highlights a significant blind spot in current safety evaluations.
  • Larger Models Aren't Necessarily Safer: Counterintuitively, the authors found that larger conversational models don't always exhibit better safety performance. They speculate that larger models might be overconfident in their generation capabilities, leading to more subtle safety failures.
  • A Two-Step Approach is Better: A sequential approach combining utterance-level and context-sensitive checks is more effective for comprehensive dialogue safety evaluation than a single, monolithic detector.

Key Results

  • Existing safety guarding tools (like Perspective API and Detoxify) performed poorly on the DIASAFETY dataset, with F1 scores close to random guessing when not fine-tuned.
  • Fine-tuning Detoxify on DIASAFETY significantly improved its performance, demonstrating the dataset's effectiveness.
  • Their fine-grained classifiers, trained on DIASAFETY, achieved good performance, with context improving F1 scores by up to 13.4% for context-sensitive unsafety detection.
  • Evaluations of popular dialogue models (DialoGPT, Blenderbot, Plato-2) revealed that all models still struggle with context-sensitive unsafety. Blenderbot showed the best overall safety performance, though it still exhibited issues with Toxicity Agreement. Plato-2 was found to be weakest in controlling utterance-level safety.

Limitations and Future Work

The authors acknowledge several limitations:

  • Dataset Size: DIASAFETY is relatively small compared to other datasets due to the difficulty of collecting context-sensitive unsafe data.
  • Single-modal: The dataset is limited to text and does not account for safety issues in multi-modal dialogues.
  • Single-turn Dialogue: The dataset primarily focuses on single-turn contexts, while multi-turn dialogues might present more complex safety challenges.
  • Sensitive Topic Continuation: This category was excluded from data collection due to its subjective nature and complexity.
  • Other Safety Concerns: The taxonomy does not cover all potential safety issues, such as privacy leakage or training data leakage.

Future work suggested includes expanding the taxonomy, collecting more data, and developing more specialized models for specific unsafe categories to improve detection beyond their baseline classifiers. They also call for researchers to pay more attention to context-sensitive safety in dialogue systems.

Summary updated

BibTeX
@inproceedings{sun2022safety,
  author = {Hao Sun and Guangxuan Xu and Jiawen Deng and Jiale Cheng and Chujie Zheng and Hao Zhou and Nanyun Peng and Xiaoyan Zhu and Minlie Huang},
  title = {{On the Safety of Conversational Models: Taxonomy, Dataset, and Benchmark}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2022},
  doi = {10.18653/v1/2022.findings-acl.308},
}
Figure