Why So Toxic? Measuring and Triggering Toxic Behavior in Open-Domain Chatbots
Not on the map. Why?
Abstract (arXiv)
Chatbots are used in many applications, e.g., automated agents, smart home assistants, interactive characters in online games, etc. Therefore, it is crucial to ensure they do not behave in undesired manners, providing offensive or toxic responses to users. This is not a trivial task as state-of-the-art chatbot models are trained on large, public datasets openly collected from the Internet. This paper presents a first-of-its-kind, large-scale measurement of toxicity in chatbots. We show that publicly available chatbots are prone to providing toxic responses when fed toxic queries. Even more worryingly, some non-toxic queries can trigger toxic responses too. We then set out to design and experiment with an attack, ToxicBuddy, which relies on fine-tuning GPT-2 to generate non-toxic queries that make chatbots respond in a toxic manner. Our extensive experimental evaluation demonstrates that our attack is effective against public chatbot models and outperforms manually-crafted malicious queries proposed by previous work. We also evaluate three defense mechanisms against ToxicBuddy, showing that they either reduce the attack performance at the cost of affecting the chatbot's utility or are only effective at mitigating a portion of the attack. This highlights the need for more research from the computer security and online safety communities to ensure that chatbot models do not hurt their users. Overall, we are confident that ToxicBuddy can be used as an auditing tool and that our work will pave the way toward designing more effective defenses for chatbot safety.
Key facts. Cited by 31 papers in the map (data through 7 Oct 2026). Builds on 59 of its 78 references that are in the map. First posted on arXiv 7 Sep 2022.
Builds on
59 of 78 references.
References · 59
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2015Distilling the Knowledge in a Neural Networkcited by 10,076
- 2014Sequence to Sequence Learning with Neural Networkscited by 2,974
- 2019The Curious Case of Neural Text Degenerationcited by 2,881
- 2016Membership Inference Attacks against Machine Learning Modelscited by 2,221
- 2019A Survey on Bias and Fairness in Machine Learningcited by 1,911
- 2020MiniLM: Deep Self-Attention Distillation for Task-Agnostic Compression of Pre-Trained Transformerscited by 1,414
- 2020RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Modelscited by 1,235
- 2015A Diversity-Promoting Objective Function for Neural Conversation Modelscited by 1,068
- 2022Red Teaming Language Models with Language Modelscited by 983
- 2019DialoGPT: Large-Scale Generative Pre-training for Conversational Response Generationcited by 842
38 more
- 2015The Limitations of Deep Learning in Adversarial Settingscited by 784
- 2017Automated Hate Speech Detection and the Problem of Offensive Languagecited by 724
- 2019Universal Adversarial Triggers for Attacking and Analyzing NLPcited by 709
- 2015Distillation as a Defense to Adversarial Perturbations against Deep Neural Networkscited by 675
- 2016Stealing Machine Learning Models via Prediction APIscited by 602
- 2020Recipes for building an open-domain chatbotcited by 593
- 2019The Woman Worked as a Babysitter: On Biases in Language Generationcited by 540
- 2018Texygen: A Benchmarking Platform for Text Generation Modelscited by 484
- 2020The Pushshift Reddit Datasetcited by 289
- 2016Deep Reinforcement Learning for Dialogue Generationcited by 286
- 2017Beam Search Strategies for Neural Machine Translationcited by 232
- 2020Information Leakage in Embedding Modelscited by 199
- 2019Leveraging Pre-trained Checkpoints for Sequence Generation Taskscited by 182
- 2019Build it Break it Fix it for Dialogue Safety: Robustness from Adversarial Human Attackcited by 176
- 2021Challenges in Detoxifying Language Modelscited by 169
- 2020Recipes for Safety in Open-domain Chatbotscited by 168
- 2018Neural Approaches to Conversational AIcited by 164
- 2017A Survey on Dialogue Systems: Recent Advances and New Frontierscited by 162
- 2019Queens are Powerful too: Mitigating Gender Bias in Dialogue Generationcited by 152
- 2017ParlAI: A Dialog Research Software Platformcited by 139
- 2019Predictive Biases in Natural Language Processing Models: A Conceptual Framework and Overviewcited by 137
- 2019Learning to Speak and Act in a Fantasy Text Adventure Gamecited by 122
- 2020Towards Controllable Biases in Language Generationcited by 112
- 2016Learning End-to-End Goal-Oriented Dialogcited by 104
- 2017Deceiving Google's Perspective API Built for Detecting Toxic Commentscited by 99
- 2021Anticipating Safety Issues in E2E Conversational AI: Framework and Toolingcited by 77
- 2021On the Safety of Conversational Models: Taxonomy, Dataset, and Benchmarkcited by 73
- 2016A Simple, Fast Diverse Decoding Algorithm for Neural Generationcited by 58
- 2018On the Origins of Memes by Means of Fringe Web Communitiescited by 45
- 2019The Dialogue Dodecathlon: Open-Domain Knowledge and Image Grounded Conversational Agentscited by 45
- 2021SaFeRDialogues: Taking Feedback Gracefully after Conversational Safety Failurescited by 37
- 2018Advancing the State of the Art in Open Domain Dialog Systems through the Alexa Prizecited by 29
- 2018A Quantitative Approach to Understanding Online Antisemitismcited by 26
- 2020Raiders of the Lost Kek: 3.5 Years of Augmented 4chan Posts from the Politically Incorrect Boardcited by 24
- 2020Automatic Text Summarization of COVID-19 Medical Research Articles using BERT and GPT-2cited by 23
- 2022Robust Conversational Agents against Imperceptible Toxicity Triggerscited by 23
- 2021"Subverting the Jewtocracy": Online Antisemitism Detection Using Multimodal Deep Learningcited by 21
- 2022Leashing the Inner Demons: Self-Detoxification for Language Modelscited by 19
50 most cited of 59 All 59 (JSON)
Built on by
Citing papers per year: 2023: 16; 2024: 11; 2025: 3; 2026: 1.
31 papers.
Sort:
By area:
- 2023Prompt Injection attack against LLM-integrated Applicationscited by 568
- 2023"Do Anything Now": Characterizing and Evaluating In-The-Wild Jailbreak Prompts on Large Language Modelscited by 457
- 2023Low-Resource Languages Jailbreak GPT-4cited by 290
- 2024SOTOPIA-π: Interactive Learning of Socially Intelligent Language Agentscited by 89
- 2023Red teaming ChatGPT via Jailbreaking: Bias, Robustness, Reliability and Toxicitycited by 86
- 2024Pandora: Jailbreak GPTs by Retrieval Augmented Generation Poisoningcited by 62
- 2023BiasAsker: Measuring the Bias in Conversational AI Systemcited by 52
- 2023SA-Attack: Improving Adversarial Transferability of Vision-Language Pre-training Models via Self-Augmentationcited by 39
- 2024Prompt Stealing Attacks Against Large Language Modelscited by 39
- 2025SaLoRA: Safety-Alignment Preserved Low-Rank Adaptationcited by 39
- 2023Prompt Packer: Deceiving LLMs through Compositional Instruction with Hidden Attackscited by 30
- 2023Bias and Fairness in Chatbots: An Overviewcited by 20
19 more
- 2023Can Large Language Models Provide Security & Privacy Advice? Measuring the Ability of LLMs to Refute Misconceptionscited by 20
- 2023GRASP: A Disagreement Analysis Framework to Assess Group Associations in Perspectivescited by 16
- 2024PolygloToxicityPrompts: Multilingual Evaluation of Neural Toxic Degeneration in Large Language Modelscited by 16
- 2023Towards Safer Generative Language Models: A Survey on Safety Risks, Evaluations, and Improvementscited by 14
- 2023Generating Phishing Attacks using ChatGPTcited by 14
- 2023Understanding Multi-Turn Toxic Behaviors in Open-Domain Chatbotscited by 14
- 2024Do LLMs dream of elephants (when told not to)? Latent concept association and associative memory in transformerscited by 14
- 2023AI in the Gray: Exploring Moderation Policies in Dialogic Large Language Models vs. Human Answers in Controversial Topicscited by 12
- 2024Efficient Detection of Toxic Prompts in Large Language Modelscited by 11
- 2024The Dark Side of Human Feedback: Poisoning Large Language Models via User Inputscited by 10
- 2024GenderCARE: A Comprehensive Framework for Assessing and Reducing Gender Bias in Large Language Modelscited by 9
- 2025Guardians and Offenders: A Survey on Harmful Content Generation and Safety Mitigation of LLMcited by 8
- 2024SoK: On the Offensive Potential of AIcited by 5
- 2026A Survey on Evaluating Quality and Trustworthiness in LLM-Generated Datacited by 5
- 2024ASTPrompter: Preference-Aligned Automated Language Model Red-Teaming to Generate Low-Perplexity Unsafe Promptscited by 3
- 2025Toxicity in Online Platforms and AI Systems: A Survey of Needs, Challenges, Mitigations, and Future Directionscited by 3
- 2023Safer Conversational AI as a Source of User Delightcited by 2
- 2023Comprehensive Assessment of Toxicity in ChatGPTcited by 2
- 2024Therapy as an NLP Task: Comparing LLMs and Human Peers Behaviors in CBT Sessionscited by 0
- 2026A Survey on Evaluating Quality and Trustworthiness in LLM-Generated Data25 Jan 2026
- 2025Toxicity in Online Platforms and AI Systems: A Survey of Needs, Challenges, Mitigations, and Future Directions29 Sep 2025
- 2025Guardians and Offenders: A Survey on Harmful Content Generation and Safety Mitigation of LLM7 Aug 2025
- 2025SaLoRA: Safety-Alignment Preserved Low-Rank Adaptation3 Jan 2025
- 2024SoK: On the Offensive Potential of AI24 Dec 2024
- 2024Therapy as an NLP Task: Comparing LLMs and Human Peers Behaviors in CBT Sessions3 Sep 2024
- 2024The Dark Side of Human Feedback: Poisoning Large Language Models via User Inputs1 Sep 2024
- 2024GenderCARE: A Comprehensive Framework for Assessing and Reducing Gender Bias in Large Language Models22 Aug 2024
- 2024Efficient Detection of Toxic Prompts in Large Language Models21 Aug 2024
- 2024ASTPrompter: Preference-Aligned Automated Language Model Red-Teaming to Generate Low-Perplexity Unsafe Prompts12 Jul 2024
- 2024Do LLMs dream of elephants (when told not to)? Latent concept association and associative memory in transformers26 Jun 2024
- 2024PolygloToxicityPrompts: Multilingual Evaluation of Neural Toxic Degeneration in Large Language Models15 May 2024
19 more
- 2024SOTOPIA-π: Interactive Learning of Socially Intelligent Language Agents13 Mar 2024
- 2024Prompt Stealing Attacks Against Large Language Models20 Feb 2024
- 2024Pandora: Jailbreak GPTs by Retrieval Augmented Generation Poisoning13 Feb 2024
- 2023SA-Attack: Improving Adversarial Transferability of Vision-Language Pre-training Models via Self-Augmentation8 Dec 2023
- 2023GRASP: A Disagreement Analysis Framework to Assess Group Associations in Perspectives9 Nov 2023
- 2023Comprehensive Assessment of Toxicity in ChatGPT3 Nov 2023
- 2023Prompt Packer: Deceiving LLMs through Compositional Instruction with Hidden Attacks16 Oct 2023
- 2023Low-Resource Languages Jailbreak GPT-43 Oct 2023
- 2023Can Large Language Models Provide Security & Privacy Advice? Measuring the Ability of LLMs to Refute Misconceptions3 Oct 2023
- 2023Bias and Fairness in Chatbots: An Overview16 Sep 2023
- 2023AI in the Gray: Exploring Moderation Policies in Dialogic Large Language Models vs. Human Answers in Controversial Topics28 Aug 2023
- 2023"Do Anything Now": Characterizing and Evaluating In-The-Wild Jailbreak Prompts on Large Language Models7 Aug 2023
- 2023Understanding Multi-Turn Toxic Behaviors in Open-Domain Chatbots14 Jul 2023
- 2023Prompt Injection attack against LLM-integrated Applications8 Jun 2023
- 2023BiasAsker: Measuring the Bias in Conversational AI System21 May 2023
- 2023Generating Phishing Attacks using ChatGPT9 May 2023
- 2023Safer Conversational AI as a Source of User Delight18 Apr 2023
- 2023Towards Safer Generative Language Models: A Survey on Safety Risks, Evaluations, and Improvements18 Feb 2023
- 2023Red teaming ChatGPT via Jailbreaking: Bias, Robustness, Reliability and Toxicity30 Jan 2023
- 2023Prompt Injection attack against LLM-integrated Applicationscited by 568
- 2023"Do Anything Now": Characterizing and Evaluating In-The-Wild Jailbreak Prompts on Large Language Modelscited by 457
- 2023Low-Resource Languages Jailbreak GPT-4cited by 290
- 2023Red teaming ChatGPT via Jailbreaking: Bias, Robustness, Reliability and Toxicitycited by 86
- 2025SaLoRA: Safety-Alignment Preserved Low-Rank Adaptationcited by 39
- 2023Prompt Packer: Deceiving LLMs through Compositional Instruction with Hidden Attackscited by 30
- 2023GRASP: A Disagreement Analysis Framework to Assess Group Associations in Perspectivescited by 16
- 2025SaLoRA: Safety-Alignment Preserved Low-Rank Adaptation3 Jan 2025
- 2023GRASP: A Disagreement Analysis Framework to Assess Group Associations in Perspectives9 Nov 2023
- 2023Prompt Packer: Deceiving LLMs through Compositional Instruction with Hidden Attacks16 Oct 2023
- 2023Low-Resource Languages Jailbreak GPT-43 Oct 2023
- 2023"Do Anything Now": Characterizing and Evaluating In-The-Wild Jailbreak Prompts on Large Language Models7 Aug 2023
- 2023Prompt Injection attack against LLM-integrated Applications8 Jun 2023
- 2023Red teaming ChatGPT via Jailbreaking: Bias, Robustness, Reliability and Toxicity30 Jan 2023
- 2024The Dark Side of Human Feedback: Poisoning Large Language Models via User Inputscited by 10
- 2025Guardians and Offenders: A Survey on Harmful Content Generation and Safety Mitigation of LLMcited by 8
- 2024ASTPrompter: Preference-Aligned Automated Language Model Red-Teaming to Generate Low-Perplexity Unsafe Promptscited by 3
- 2025Guardians and Offenders: A Survey on Harmful Content Generation and Safety Mitigation of LLM7 Aug 2025
- 2024The Dark Side of Human Feedback: Poisoning Large Language Models via User Inputs1 Sep 2024
- 2024ASTPrompter: Preference-Aligned Automated Language Model Red-Teaming to Generate Low-Perplexity Unsafe Prompts12 Jul 2024
- 2023BiasAsker: Measuring the Bias in Conversational AI Systemcited by 52
- 2024Prompt Stealing Attacks Against Large Language Modelscited by 39
- 2023Bias and Fairness in Chatbots: An Overviewcited by 20
- 2023Can Large Language Models Provide Security & Privacy Advice? Measuring the Ability of LLMs to Refute Misconceptionscited by 20
- 2024PolygloToxicityPrompts: Multilingual Evaluation of Neural Toxic Degeneration in Large Language Modelscited by 16
- 2023Towards Safer Generative Language Models: A Survey on Safety Risks, Evaluations, and Improvementscited by 14
- 2023Generating Phishing Attacks using ChatGPTcited by 14
- 2023Understanding Multi-Turn Toxic Behaviors in Open-Domain Chatbotscited by 14
- 2024Do LLMs dream of elephants (when told not to)? Latent concept association and associative memory in transformerscited by 14
- 2023AI in the Gray: Exploring Moderation Policies in Dialogic Large Language Models vs. Human Answers in Controversial Topicscited by 12
- 2024Efficient Detection of Toxic Prompts in Large Language Modelscited by 11
- 2024GenderCARE: A Comprehensive Framework for Assessing and Reducing Gender Bias in Large Language Modelscited by 9
12 most cited of 17 All 17 (JSON)
- 2025Toxicity in Online Platforms and AI Systems: A Survey of Needs, Challenges, Mitigations, and Future Directions29 Sep 2025
- 2024SoK: On the Offensive Potential of AI24 Dec 2024
- 2024Therapy as an NLP Task: Comparing LLMs and Human Peers Behaviors in CBT Sessions3 Sep 2024
- 2024GenderCARE: A Comprehensive Framework for Assessing and Reducing Gender Bias in Large Language Models22 Aug 2024
- 2024Efficient Detection of Toxic Prompts in Large Language Models21 Aug 2024
- 2024Do LLMs dream of elephants (when told not to)? Latent concept association and associative memory in transformers26 Jun 2024
- 2024PolygloToxicityPrompts: Multilingual Evaluation of Neural Toxic Degeneration in Large Language Models15 May 2024
- 2024Prompt Stealing Attacks Against Large Language Models20 Feb 2024
- 2023Comprehensive Assessment of Toxicity in ChatGPT3 Nov 2023
- 2023Can Large Language Models Provide Security & Privacy Advice? Measuring the Ability of LLMs to Refute Misconceptions3 Oct 2023
- 2023Bias and Fairness in Chatbots: An Overview16 Sep 2023
- 2023AI in the Gray: Exploring Moderation Policies in Dialogic Large Language Models vs. Human Answers in Controversial Topics28 Aug 2023
12 newest of 17 All 17 (JSON)