ToxiGen: A Large-Scale Machine-Generated Dataset for Adversarial and Implicit Hate Speech Detection
Authors: Thomas Hartvigsen, Saadia Gabriel, Hamid Palangi, Maarten Sap, Dipankar Ray, Ece Kamar
AI-generated Key Points
- ToxiGen is a large-scale machine-generated dataset focused on toxic language detection targeting minority groups
- Dataset consists of 274k toxic and benign statements related to 13 different minority groups
- Researchers used demonstration-based prompting framework and adversarial classifier-in-the-loop decoding method with pretrained language model
- Human evaluation showed difficulty in distinguishing between machine-generated and human-written text, indicating realistic content generation
- 94.5% of toxic examples in ToxiGen were labeled as hate speech by human annotators, showing accuracy in capturing harmful language
- Finetuning toxicity classifiers on ToxiGen data led to significant performance improvements on human-written datasets
- Demonstration-based prompting reliably generated toxic and benign statements about minority groups within ToxiGen
- Machine-generated examples exhibited high levels of harmful content, with moral judgment being a common framing tactic associated with toxicity
- ToxiGen is a valuable resource for advancing research in adversarial and implicit hate speech detection due to its wide coverage of demographic groups and ability to generate realistic toxic language
Abstract: Toxic language detection systems often falsely flag text that contains minority group mentions as toxic, as those groups are often the targets of online hate. Such over-reliance on spurious correlations also causes systems to struggle with detecting implicitly toxic language. To help mitigate these issues, we create ToxiGen, a new large-scale and machine-generated dataset of 274k toxic and benign statements about 13 minority groups. We develop a demonstration-based prompting framework and an adversarial classifier-in-the-loop decoding method to generate subtly toxic and benign text with a massive pretrained language model. Controlling machine generation in this way allows ToxiGen to cover implicitly toxic text at a larger scale, and about more demographic groups, than previous resources of human-written text. We conduct a human evaluation on a challenging subset of ToxiGen and find that annotators struggle to distinguish machine-generated text from human-written language. We also find that 94.5% of toxic examples are labeled as hate speech by human annotators. Using three publicly-available datasets, we show that finetuning a toxicity classifier on our data improves its performance on human-written data substantially. We also demonstrate that ToxiGen can be used to fight machine-generated toxicity as finetuning improves the classifier significantly on our evaluation subset. Our code and data can be found at https://github.com/microsoft/ToxiGen.
Tools for this paper
Ask questions about this paper to our AI assistant
You can also chat with multiple papers at once here.
The previous summary was created more than a year ago and can be re-run (if necessary) by clicking on the Run button below.
Similar papers summarized with our AI tools
Navigate through even more similar papers through a
tree representationLook for similar papers (in beta version)
We compare the title and abstract with papers indexed in our database. For arXiv papers, we search within the same category; for DOI and other sources, we search across sources and subjects. You can rerun the search as our database grows.
Disclaimer: The AI-based summarization tool and virtual assistant provided on this website may not always provide accurate and complete summaries or responses. We encourage you to carefully review and evaluate the generated content to ensure its quality and relevance to your needs.