Toxicity Detection with Generative Prompt-based Inference
Not on the map. Why?
Abstract (arXiv)
Due to the subtleness, implicity, and different possible interpretations perceived by different people, detecting undesirable content from text is a nuanced difficulty. It is a long-known risk that language models (LMs), once trained on corpus containing undesirable content, have the power to manifest biases and toxicity. However, recent studies imply that, as a remedy, LMs are also capable of identifying toxic content without additional fine-tuning. Prompt-methods have been shown to effectively harvest this surprising self-diagnosing capability. However, existing prompt-based methods usually specify an instruction to a language model in a discriminative way. In this work, we explore the generative variant of zero-shot prompt-based toxicity detection with comprehensive trials on prompt engineering. We evaluate on three datasets with toxicity labels annotated on social media posts. Our analysis highlights the strengths of our generative classification approach both quantitatively and qualitatively. Interesting aspects of self-diagnosis and its ethical implications are discussed.
Key facts. Cited by 35 papers in the map (data through 14 Oct 2026). Builds on 29 of its 39 references that are in the map. First posted on arXiv 24 May 2022.
Builds on
29 of 39 references.
References · 29
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2016"Why Should I Trust You?": Explaining the Predictions of Any Classifiercited by 5,070
- 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,780
- 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,234
- 2021SimCSE: Simple Contrastive Learning of Sentence Embeddingscited by 2,173
- 2022Red Teaming Language Models with Language Modelscited by 1,026
- 2017Automated Hate Speech Detection and the Problem of Offensive Languagecited by 736
- 2022ToxiGen: A Large-Scale Machine-Generated Dataset for Adversarial and Implicit Hate Speech Detectioncited by 422
- 2020HateXplain: A Benchmark Dataset for Explainable Hate Speech Detectioncited by 407
- 2019Social Bias Frames: Reasoning about Social and Power Implications of Languagecited by 380
- 2021Self-Diagnosis and Self-Debiasing: A Proposal for Reducing Corpus-Based Bias in NLPcited by 337
- 2021An Empirical Study of GPT-3 for Few-Shot Knowledge-Based VQAcited by 301
17 more
- 2019Predicting the Type and Target of Offensive Posts in Social Mediacited by 271
- 2018Large Scale Crowdsourcing and Characterization of Twitter Abusive Behaviorcited by 270
- 2016Ex Machina: Personal Attacks Seen at Scalecited by 210
- 2019SemEval-2019 Task 6: Identifying and Categorizing Offensive Language in Social Media (OffensEval)cited by 207
- 2021ZeroCap: Zero-Shot Image-to-Text Generation for Visual-Semantic Arithmeticcited by 150
- 2019Multilingual and Multi-Aspect Hate Speech Analysiscited by 133
- 2021Few-Shot Bot: Prompt-Based Learning for Dialogue Systemscited by 64
- 2020Cross-lingual Retrieval for Iterative Self-Supervised Trainingcited by 54
- 2017Detecting Hate Speech in Social Mediacited by 42
- 2017Generative and Discriminative Text Classification with Recurrent Neural Networkscited by 31
- 2021CINS: Comprehensive Instruction for Few-shot Learning in Task-oriented Dialog Systemscited by 30
- 2018Convolutional Neural Networks for Toxic Comment Classificationcited by 24
- 2021Few-shot Instruction Prompts for Pretrained Language Models to Detect Social Biasescited by 21
- 2021Open Aspect Target Sentiment Classification with Natural Language Promptscited by 20
- 2021Exploring Prompt-based Few-shot Learning for Grounded Dialog Generationcited by 20
- 2022Zero-shot Commonsense Question Answering with Cloze Translation and Consistency Optimizationcited by 13
- 2021Fine-tuning of Pre-trained Transformers for Hate, Offensive, and Profane Content Detection in English and Marathicited by 6
Built on by
Citing papers per year: 2023: 12; 2024: 12; 2025: 10; 2026: 1.
35 papers.
Sort:
By area:
- 2023NeMo Guardrails: A Toolkit for Controllable and Safe LLM Applications with Programmable Railscited by 365
- 2023Evaluating Large Language Models: A Comprehensive Surveycited by 202
- 2024AI Agents Under Threat: A Survey of Key Security Challenges and Future Pathwayscited by 127
- 2024Risk Taxonomy, Mitigation, and Assessment Benchmarks of Large Language Model Systemscited by 66
- 2023Latent Jailbreak: A Benchmark for Evaluating Text Safety and Output Robustness of Large Language Modelscited by 60
- 2023TrustGPT: A Benchmark for Trustworthy and Responsible Large Language Modelscited by 58
- 2023Evaluating GPT-3 Generated Explanations for Hateful Content Moderationcited by 46
- 2023"HOT" ChatGPT: The promise of ChatGPT in detecting and discriminating hateful, offensive, and toxic comments on social mediacited by 45
- 2023(Why) Is My Prompt Getting Worse? Rethinking Regression Testing for Evolving LLM APIscited by 23
- 2023Efficient Toxic Content Detection by Bootstrapping and Distilling Large Language Modelscited by 21
- 2023Navigating Prompt Complexity for Zero-Shot Classification: A Study of Large Language Models in Computational Social Sciencecited by 19
- 2024A Comprehensive Survey on Evaluating Large Language Model Applications in the Medical Industrycited by 17
23 more
- 2023Next Steps for Human-Centered Generative AI: A Technical Perspectivecited by 13
- 2024LLMScan: Causal Scan for LLM Misbehavior Detectioncited by 13
- 2023Characterizing Large Language Model Geometry Helps Solve Toxicity Detection and Generationcited by 12
- 2024RSA-Control: A Pragmatics-Grounded Lightweight Controllable Text Generation Frameworkcited by 11
- 2025Evaluation and Facilitation of Online Discussions in the LLM Era: A Surveycited by 9
- 2025A Survey on Efficient Large Language Model Training: From Data-centric Perspectivescited by 9
- 2023Adversarial Robustness of Prompt-based Few-Shot Learning for Natural Language Understandingcited by 8
- 2024Decoding Hate: Exploring Language Models' Reactions to Hate Speechcited by 6
- 2024Vulnerability of LLMs to Vertically Aligned Text Manipulationscited by 6
- 2024High-quality Data-to-Text Generation for Severely Under-Resourced Languages with Out-of-the-box Large Language Modelscited by 5
- 2024Towards Efficient and Explainable Hate Speech Detection via Model Distillationcited by 5
- 2024Detection of Conspiracy Theories Beyond Keyword Bias in German-Language Telegram Using Large Language Modelscited by 4
- 2025Navigating the Risks of Using Large Language Models for Text Annotation in Social Science Researchcited by 4
- 2025Boosting Large Language Models for Mental Manipulation Detection via Data Augmentation and Distillationcited by 2
- 2025Bridging Gaps in Hate Speech Detection: Meta-Collections and Benchmarks for Low-Resource Iberian Languagescited by 2
- 2024Deep Prompt Multi-task Network for Abuse Language Detectioncited by 1
- 2024Dataverse: Open-Source ETL (Extract, Transform, Load) Pipeline for Large Language Modelscited by 1
- 2025Few-shot Hate Speech Detection Based on the MindSpore Frameworkcited by 1
- 2025Can LLMs Evaluate What They Cannot Annotate? Revisiting LLM Reliability in Hate Speech Detectioncited by 1
- 2025A Data-Centric Approach for Safe and Secure Large Language Models against Threatening and Toxic Contentcited by 0
- 2025Improving LLM Outputs Against Jailbreak Attacks with Expert Model Integrationcited by 0
- 2025WATCHED: A Web AI Agent Tool for Combating Hate Speech by Expanding Datacited by 0
- 2026BurnRiSc: Toward Non-Invasive Burnout Screening in Open Source from Public Repository Signalscited by 0
- 2026BurnRiSc: Toward Non-Invasive Burnout Screening in Open Source from Public Repository Signals16 Sep 2026
- 2025Can LLMs Evaluate What They Cannot Annotate? Revisiting LLM Reliability in Hate Speech Detection10 Dec 2025
- 2025A Survey on Efficient Large Language Model Training: From Data-centric Perspectives29 Oct 2025
- 2025Bridging Gaps in Hate Speech Detection: Meta-Collections and Benchmarks for Low-Resource Iberian Languages13 Oct 2025
- 2025WATCHED: A Web AI Agent Tool for Combating Hate Speech by Expanding Data1 Sep 2025
- 2025Boosting Large Language Models for Mental Manipulation Detection via Data Augmentation and Distillation21 May 2025
- 2025Improving LLM Outputs Against Jailbreak Attacks with Expert Model Integration18 May 2025
- 2025Few-shot Hate Speech Detection Based on the MindSpore Framework22 Apr 2025
- 2025A Data-Centric Approach for Safe and Secure Large Language Models against Threatening and Toxic Content19 Apr 2025
- 2025Navigating the Risks of Using Large Language Models for Text Annotation in Social Science Research27 Mar 2025
- 2025Evaluation and Facilitation of Online Discussions in the LLM Era: A Survey3 Mar 2025
- 2024Towards Efficient and Explainable Hate Speech Detection via Model Distillation18 Dec 2024
23 more
- 2024Vulnerability of LLMs to Vertically Aligned Text Manipulations26 Oct 2024
- 2024RSA-Control: A Pragmatics-Grounded Lightweight Controllable Text Generation Framework24 Oct 2024
- 2024LLMScan: Causal Scan for LLM Misbehavior Detection22 Oct 2024
- 2024Decoding Hate: Exploring Language Models' Reactions to Hate Speech1 Oct 2024
- 2024AI Agents Under Threat: A Survey of Key Security Challenges and Future Pathways4 Jun 2024
- 2024Detection of Conspiracy Theories Beyond Keyword Bias in German-Language Telegram Using Large Language Models27 Apr 2024
- 2024A Comprehensive Survey on Evaluating Large Language Model Applications in the Medical Industry24 Apr 2024
- 2024Dataverse: Open-Source ETL (Extract, Transform, Load) Pipeline for Large Language Models28 Mar 2024
- 2024Deep Prompt Multi-task Network for Abuse Language Detection8 Mar 2024
- 2024High-quality Data-to-Text Generation for Severely Under-Resourced Languages with Out-of-the-box Large Language Models19 Feb 2024
- 2024Risk Taxonomy, Mitigation, and Assessment Benchmarks of Large Language Model Systems11 Jan 2024
- 2023Efficient Toxic Content Detection by Bootstrapping and Distilling Large Language Models13 Dec 2023
- 2023Characterizing Large Language Model Geometry Helps Solve Toxicity Detection and Generation4 Dec 2023
- 2023(Why) Is My Prompt Getting Worse? Rethinking Regression Testing for Evolving LLM APIs18 Nov 2023
- 2023Evaluating Large Language Models: A Comprehensive Survey30 Oct 2023
- 2023NeMo Guardrails: A Toolkit for Controllable and Safe LLM Applications with Programmable Rails16 Oct 2023
- 2023Latent Jailbreak: A Benchmark for Evaluating Text Safety and Output Robustness of Large Language Models17 Jul 2023
- 2023Next Steps for Human-Centered Generative AI: A Technical Perspective27 Jun 2023
- 2023TrustGPT: A Benchmark for Trustworthy and Responsible Large Language Models20 Jun 2023
- 2023Adversarial Robustness of Prompt-based Few-Shot Learning for Natural Language Understanding19 Jun 2023
- 2023Evaluating GPT-3 Generated Explanations for Hateful Content Moderation28 May 2023
- 2023Navigating Prompt Complexity for Zero-Shot Classification: A Study of Large Language Models in Computational Social Science23 May 2023
- 2023"HOT" ChatGPT: The promise of ChatGPT in detecting and discriminating hateful, offensive, and toxic comments on social media20 Apr 2023
- 2023Latent Jailbreak: A Benchmark for Evaluating Text Safety and Output Robustness of Large Language Modelscited by 60
- 2023"HOT" ChatGPT: The promise of ChatGPT in detecting and discriminating hateful, offensive, and toxic comments on social mediacited by 45
- 2025A Data-Centric Approach for Safe and Secure Large Language Models against Threatening and Toxic Contentcited by 0
- 2025Improving LLM Outputs Against Jailbreak Attacks with Expert Model Integrationcited by 0
- 2025Improving LLM Outputs Against Jailbreak Attacks with Expert Model Integration18 May 2025
- 2025A Data-Centric Approach for Safe and Secure Large Language Models against Threatening and Toxic Content19 Apr 2025
- 2023Latent Jailbreak: A Benchmark for Evaluating Text Safety and Output Robustness of Large Language Models17 Jul 2023
- 2023"HOT" ChatGPT: The promise of ChatGPT in detecting and discriminating hateful, offensive, and toxic comments on social media20 Apr 2023
- 2023NeMo Guardrails: A Toolkit for Controllable and Safe LLM Applications with Programmable Railscited by 365
- 2023Evaluating Large Language Models: A Comprehensive Surveycited by 202
- 2024AI Agents Under Threat: A Survey of Key Security Challenges and Future Pathwayscited by 127
- 2024Risk Taxonomy, Mitigation, and Assessment Benchmarks of Large Language Model Systemscited by 66
- 2023TrustGPT: A Benchmark for Trustworthy and Responsible Large Language Modelscited by 58
- 2023Evaluating GPT-3 Generated Explanations for Hateful Content Moderationcited by 46
- 2023Navigating Prompt Complexity for Zero-Shot Classification: A Study of Large Language Models in Computational Social Sciencecited by 19
- 2024A Comprehensive Survey on Evaluating Large Language Model Applications in the Medical Industrycited by 17
- 2023Next Steps for Human-Centered Generative AI: A Technical Perspectivecited by 13
- 2024LLMScan: Causal Scan for LLM Misbehavior Detectioncited by 13
- 2023Characterizing Large Language Model Geometry Helps Solve Toxicity Detection and Generationcited by 12
- 2024RSA-Control: A Pragmatics-Grounded Lightweight Controllable Text Generation Frameworkcited by 11
12 most cited of 28 All 28 (JSON)
- 2026BurnRiSc: Toward Non-Invasive Burnout Screening in Open Source from Public Repository Signals16 Sep 2026
- 2025Can LLMs Evaluate What They Cannot Annotate? Revisiting LLM Reliability in Hate Speech Detection10 Dec 2025
- 2025A Survey on Efficient Large Language Model Training: From Data-centric Perspectives29 Oct 2025
- 2025Bridging Gaps in Hate Speech Detection: Meta-Collections and Benchmarks for Low-Resource Iberian Languages13 Oct 2025
- 2025Boosting Large Language Models for Mental Manipulation Detection via Data Augmentation and Distillation21 May 2025
- 2025Few-shot Hate Speech Detection Based on the MindSpore Framework22 Apr 2025
- 2025Navigating the Risks of Using Large Language Models for Text Annotation in Social Science Research27 Mar 2025
- 2025Evaluation and Facilitation of Online Discussions in the LLM Era: A Survey3 Mar 2025
- 2024Towards Efficient and Explainable Hate Speech Detection via Model Distillation18 Dec 2024
- 2024Vulnerability of LLMs to Vertically Aligned Text Manipulations26 Oct 2024
- 2024RSA-Control: A Pragmatics-Grounded Lightweight Controllable Text Generation Framework24 Oct 2024
- 2024LLMScan: Causal Scan for LLM Misbehavior Detection22 Oct 2024
12 newest of 28 All 28 (JSON)