[Paper Review] Detecting Offensive Content in Open-domain Conversations using Two Stage Semi-supervision
This paper proposes a two-stage semi-supervised method to bootstrap large-scale, high-quality datasets for detecting sensitive language in open-domain conversations. By leveraging a blacklist to rank subreddits and iteratively refining data selection using a weakly supervised model, the approach achieves state-of-the-art F1 scores of 95.5% on out-of-domain test sets, significantly outperforming models trained on public datasets.
As open-ended human-chatbot interaction becomes commonplace, sensitive content detection gains importance. In this work, we propose a two stage semi-supervised approach to bootstrap large-scale data for automatic sensitive language detection from publicly available web resources. We explore various data selection methods including 1) using a blacklist to rank online discussion forums by the level of their sensitiveness followed by randomly sampling utterances and 2) training a weakly supervised model in conjunction with the blacklist for scoring sentences from online discussion forums to curate a dataset. Our data collection strategy is flexible and allows the models to detect implicit sensitive content for which manual annotations may be difficult. We train models using publicly available annotated datasets as well as using the proposed large-scale semi-supervised datasets. We evaluate the performance of all the models on Twitter and Toxic Wikipedia comments testsets as well as on a manually annotated spoken language dataset collected during a large scale chatbot competition. Results show that a model trained on this collected data outperforms the baseline models by a large margin on both in-domain and out-of-domain testsets, achieving an F1 score of 95.5% on an out-of-domain testset compared to a score of 75% for models trained on public datasets. We also showcase that large scale two stage semi-supervision generalizes well across multiple classes of sensitivities such as hate speech, racism, sexual and pornographic content, etc. without even providing explicit labels for these classes, leading to an average recall of 95.5% versus the models trained using annotated public datasets which achieve an average recall of 73.2% across seven sensitive classes on out-of-domain testsets.
Motivation & Objective
- To address the challenge of detecting sensitive language in open-domain chatbot interactions, where manual annotation is costly and context-dependent.
- To overcome limitations of blacklists, such as low recall and inability to capture implicit or context-sensitive offensive content.
- To develop a scalable, flexible data collection strategy that generalizes across multiple sensitivity classes without requiring explicit labels for each.
- To improve model performance on both in-domain and out-of-domain test sets by leveraging large-scale semi-supervised data.
- To demonstrate that models trained on bootstrapped data generalize better to subtle, implicit, or culturally nuanced offensive language.
Proposed method
- Use a seed blacklist of offensive words to rank Reddit subreddits by sensitivity level, selecting content from the most and least sensitive communities.
- Train an initial classifier on a small, balanced set of sampled utterances from high- and low-sensitivity subreddits to establish a baseline model.
- Apply the trained classifier in conjunction with the blacklist to score and curate a larger, more representative dataset from ranked subreddits.
- Use a weakly supervised model trained on the Toxic Comment Challenge dataset to improve data selection in the second stage, enhancing model generalization.
- Combine the bootstrapped data with public datasets (Twitter, Toxic Wikipedia) to fine-tune and evaluate the final model.
- Leverage large-scale conversational data to capture contextual, implicit, and culturally nuanced offensive content that standard filters miss.
Experimental results
Research questions
- RQ1Can a two-stage semi-supervised approach effectively bootstrap large-scale, diverse, and high-quality data for sensitive language detection in open-domain conversations?
- RQ2How does the performance of models trained on bootstrapped data compare to those trained on public, manually annotated datasets on out-of-domain test sets?
- RQ3To what extent can a model trained without explicit labels for specific sensitivity classes (e.g., hate speech, racism, sexual content) generalize across multiple types of offensive language?
- RQ4Does the integration of a blacklist with weakly supervised scoring improve data selection and model recall for implicit or context-dependent offensive utterances?
- RQ5Can large-scale semi-supervised data capture subtle, non-obvious offensive content such as sarcasm or politically sensitive statements that are hard to detect with rule-based systems?
Key findings
- The proposed two-stage semi-supervised method achieved an F1 score of 95.5% on an out-of-domain test set, significantly outperforming baseline models trained on public datasets, which achieved only 75% F1.
- Models trained on the bootstrapped data achieved an average recall of 95.5% across seven sensitive classes on out-of-domain test sets, compared to 73.2% for models trained on public datasets.
- The TS Bootstrap model improved recall for the sensitive class to 92.0% on the chatbot test set, demonstrating strong generalization to unseen, open-domain conversational data.
- Qualitative analysis showed that the model could detect subtle, context-dependent offensive utterances such as 'X is the most elaborate lie ever told' and 'Z is the devil', which are difficult even for human annotators.
- The method generalized well across diverse sensitivity types—including hate speech, racism, sexual content, and violence—without requiring explicit labeling for these categories.
- Combining the bootstrapped data with public datasets (Twitter and Toxic) further improved F1 scores to 95.6%, indicating complementary benefits from multiple data sources.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.