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

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

Introduction

While AI chatbots have become increasingly sophisticated, their safety remains a critical concern. Most existing safety tools focus on utterance-level unsafety—detecting explicit hate speech or profanity within a single sentence. However, this approach misses a significant class of risks: context-sensitive unsafety. A response that appears safe in isolation, such as "I agree," can become dangerous or biased depending on the preceding conversation. This paper introduces DIASAFETY, a new taxonomy and dataset designed to address these subtle, context-dependent failures.

Taxonomy of Context-Sensitive Unsafety

The authors propose a structured hierarchy to categorize unsafe dialogue. This taxonomy distinguishes between Personal Unsafety (risks to the individual user) and Non-personal Unsafety (broader societal harms).

Taxonomy of context-sensitive unsafety with definitions and examples.

Key categories include:

  • Offending User (OU): Implicitly offending the user through sarcasm or "cursing back."
  • Risk Ignorance (RI): Failing to recognize and address mental health crises or self-harm risks.
  • Unauthorized Expertise (UE): Providing medical or legal advice without specialized training.
  • Toxicity Agreement (TA): Validating a user's toxic or hateful comments to maintain conversational flow.
  • Biased Opinion (BO): Expressing social biases based on the context.

The DIASAFETY Dataset and Methodology

To benchmark these risks, the researchers developed DIASAFETY, a dataset of 11,000 labeled context-response pairs. Data was sourced from Reddit, specialized medical datasets, and machine-generated responses from models like Blenderbot and DialoGPT.

The collection process utilized a model-in-the-loop strategy. A preliminary classifier identified potentially unsafe responses, which were then verified by human annotators. This targeted approach proved more efficient than random sampling for capturing rare but critical safety failures.

Key Insights: Why Context Matters

A central finding of this work is that context is fundamentally essential for safety detection. Incorporating the preceding turn into the safety classifier improved the F1 score by 13.4%. Without context, models are "blind" to the "Politeness Trap," where a bot's desire to be agreeable leads it to inadvertently support toxic user input.

Furthermore, the study suggests that model scale does not guarantee safety. Larger models often exhibit more confidence in providing unauthorized expertise or generating implicit offenses compared to their smaller counterparts.

Benchmarking Results

The authors evaluated several popular open-source models, including Blenderbot, DialoGPT, and Plato-2, across the defined safety categories.

Unsafe proportions of different conversational models across safety categories.

The results highlight a significant gap in current model safety:

  • Blenderbot was generally the safest, likely due to safety-focused pre-training.
  • Plato-2 struggled significantly with utterance-level safety, frequently using explicit insults.
  • All models showed high vulnerability in the Toxicity Agreement category, with some failing in over 40% of adversarial contexts.

The researchers' RoBERTa-based classifier achieved an overall F1 score of 84.0%, establishing a strong baseline for context-aware safety layers.

Conclusion and Future Work

DIASAFETY provides a necessary framework for evaluating the nuanced safety risks of modern chatbots. While it marks a significant step forward, limitations remain. The current dataset primarily focuses on single-turn context and text-only interactions. Future research must expand these taxonomies to multi-turn dialogues and multi-modal models to ensure AI safety in increasingly complex real-world applications.

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