Facilitating NSFW Text Detection in Open-Domain Dialogue Systems via Knowledge Distillation

Huachuan Qiu, Shuai Zhang, Hongliang He, Anqi Li, Zhenzhong Lan
9/18/2023
cs.CL

No official code found. Best implementation: qiuhuachuan/CensorChat (7 stars, MIT, last commit 2024-04-15).

Abstract

NSFW (Not Safe for Work) content, in the context of a dialogue, can have severe side effects on users in open-domain dialogue systems. However, research on detecting NSFW language, especially sexually explicit content, within a dialogue context has significantly lagged behind. To address this issue, we introduce CensorChat, a dialogue monitoring dataset aimed at NSFW dialogue detection. Leveraging knowledge distillation techniques involving GPT-4 and ChatGPT, this dataset offers a cost-effective means of constructing NSFW content detectors. The process entails collecting real-life human-machine interaction data and breaking it down into single utterances and single-turn dialogues, with the chatbot delivering the final utterance. ChatGPT is employed to annotate unlabeled data, serving as a training set. Rationale validation and test sets are constructed using ChatGPT and GPT-4 as annotators, with a self-criticism strategy for resolving discrepancies in labeling. A BERT model is fine-tuned as a text classifier on pseudo-labeled data, and its performance is assessed. The study emphasizes the importance of AI systems prioritizing user safety and well-being in digital conversations while respecting freedom of expression. The proposed approach not only advances NSFW content detection but also aligns with evolving user protection needs in AI-driven dialogues.

View on arXivView PDF

Code Implementations(1)

MIT
70Shell, PythonSep 18, 20232 years agoMIT

Similar Papers

Cite this paper

@article{qiu2023facilitating,
  title  = {Facilitating NSFW Text Detection in Open-Domain Dialogue Systems via Knowledge Distillation},
  author = {Huachuan Qiu and Shuai Zhang and Hongliang He and Anqi Li and Zhenzhong Lan},
  year   = {2023},
  eprint = {2309.09749},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2309.09749v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2309.09749.svg)](https://codeofpaper.com/paper/2309.09749)

Discussion