mlsanityData to 7 Oct 2026

Why So Toxic? Measuring and Triggering Toxic Behavior in Open-Domain Chatbots

arXiv 2209.03463 ↗First posted 7 Sep 2022cs.CY cs.AI cs.CRcited by 31

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2015Distilling the Knowledge in a Neural Networkcited by 10,076
  4. 2014Sequence to Sequence Learning with Neural Networkscited by 2,974
  5. 2019The Curious Case of Neural Text Degenerationcited by 2,881
  6. 2016Membership Inference Attacks against Machine Learning Modelscited by 2,221
  7. 2019A Survey on Bias and Fairness in Machine Learningcited by 1,911
  8. 2020MiniLM: Deep Self-Attention Distillation for Task-Agnostic Compression of Pre-Trained Transformerscited by 1,414
  9. 2020RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Modelscited by 1,235
  10. 2015A Diversity-Promoting Objective Function for Neural Conversation Modelscited by 1,068
  11. 2022Red Teaming Language Models with Language Modelscited by 983
  12. 2019DialoGPT: Large-Scale Generative Pre-training for Conversational Response Generationcited by 842
38 more
  1. 2015The Limitations of Deep Learning in Adversarial Settingscited by 784
  2. 2017Automated Hate Speech Detection and the Problem of Offensive Languagecited by 724
  3. 2019Universal Adversarial Triggers for Attacking and Analyzing NLPcited by 709
  4. 2015Distillation as a Defense to Adversarial Perturbations against Deep Neural Networkscited by 675
  5. 2016Stealing Machine Learning Models via Prediction APIscited by 602
  6. 2020Recipes for building an open-domain chatbotcited by 593
  7. 2019The Woman Worked as a Babysitter: On Biases in Language Generationcited by 540
  8. 2018Texygen: A Benchmarking Platform for Text Generation Modelscited by 484
  9. 2020The Pushshift Reddit Datasetcited by 289
  10. 2016Deep Reinforcement Learning for Dialogue Generationcited by 286
  11. 2017Beam Search Strategies for Neural Machine Translationcited by 232
  12. 2020Information Leakage in Embedding Modelscited by 199
  13. 2019Leveraging Pre-trained Checkpoints for Sequence Generation Taskscited by 182
  14. 2019Build it Break it Fix it for Dialogue Safety: Robustness from Adversarial Human Attackcited by 176
  15. 2021Challenges in Detoxifying Language Modelscited by 169
  16. 2020Recipes for Safety in Open-domain Chatbotscited by 168
  17. 2018Neural Approaches to Conversational AIcited by 164
  18. 2017A Survey on Dialogue Systems: Recent Advances and New Frontierscited by 162
  19. 2019Queens are Powerful too: Mitigating Gender Bias in Dialogue Generationcited by 152
  20. 2017ParlAI: A Dialog Research Software Platformcited by 139
  21. 2019Predictive Biases in Natural Language Processing Models: A Conceptual Framework and Overviewcited by 137
  22. 2019Learning to Speak and Act in a Fantasy Text Adventure Gamecited by 122
  23. 2020Towards Controllable Biases in Language Generationcited by 112
  24. 2016Learning End-to-End Goal-Oriented Dialogcited by 104
  25. 2017Deceiving Google's Perspective API Built for Detecting Toxic Commentscited by 99
  26. 2021Anticipating Safety Issues in E2E Conversational AI: Framework and Toolingcited by 77
  27. 2021On the Safety of Conversational Models: Taxonomy, Dataset, and Benchmarkcited by 73
  28. 2016A Simple, Fast Diverse Decoding Algorithm for Neural Generationcited by 58
  29. 2018On the Origins of Memes by Means of Fringe Web Communitiescited by 45
  30. 2019The Dialogue Dodecathlon: Open-Domain Knowledge and Image Grounded Conversational Agentscited by 45
  31. 2021SaFeRDialogues: Taking Feedback Gracefully after Conversational Safety Failurescited by 37
  32. 2018Advancing the State of the Art in Open Domain Dialog Systems through the Alexa Prizecited by 29
  33. 2018A Quantitative Approach to Understanding Online Antisemitismcited by 26
  34. 2020Raiders of the Lost Kek: 3.5 Years of Augmented 4chan Posts from the Politically Incorrect Boardcited by 24
  35. 2020Automatic Text Summarization of COVID-19 Medical Research Articles using BERT and GPT-2cited by 23
  36. 2022Robust Conversational Agents against Imperceptible Toxicity Triggerscited by 23
  37. 2021"Subverting the Jewtocracy": Online Antisemitism Detection Using Multimodal Deep Learningcited by 21
  38. 2022Leashing the Inner Demons: Self-Detoxification for Language Modelscited by 19

50 most cited of 59 All 59 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 16; 2024: 11; 2025: 3; 2026: 1.

31 papers.

Sort:

By area:

  1. 2023Prompt Injection attack against LLM-integrated Applicationscited by 568
  2. 2023"Do Anything Now": Characterizing and Evaluating In-The-Wild Jailbreak Prompts on Large Language Modelscited by 457
  3. 2023Low-Resource Languages Jailbreak GPT-4cited by 290
  4. 2024SOTOPIA-π: Interactive Learning of Socially Intelligent Language Agentscited by 89
  5. 2023Red teaming ChatGPT via Jailbreaking: Bias, Robustness, Reliability and Toxicitycited by 86
  6. 2024Pandora: Jailbreak GPTs by Retrieval Augmented Generation Poisoningcited by 62
  7. 2023BiasAsker: Measuring the Bias in Conversational AI Systemcited by 52
  8. 2023SA-Attack: Improving Adversarial Transferability of Vision-Language Pre-training Models via Self-Augmentationcited by 39
  9. 2024Prompt Stealing Attacks Against Large Language Modelscited by 39
  10. 2025SaLoRA: Safety-Alignment Preserved Low-Rank Adaptationcited by 39
  11. 2023Prompt Packer: Deceiving LLMs through Compositional Instruction with Hidden Attackscited by 30
  12. 2023Bias and Fairness in Chatbots: An Overviewcited by 20
19 more
  1. 2023Can Large Language Models Provide Security & Privacy Advice? Measuring the Ability of LLMs to Refute Misconceptionscited by 20
  2. 2023GRASP: A Disagreement Analysis Framework to Assess Group Associations in Perspectivescited by 16
  3. 2024PolygloToxicityPrompts: Multilingual Evaluation of Neural Toxic Degeneration in Large Language Modelscited by 16
  4. 2023Towards Safer Generative Language Models: A Survey on Safety Risks, Evaluations, and Improvementscited by 14
  5. 2023Generating Phishing Attacks using ChatGPTcited by 14
  6. 2023Understanding Multi-Turn Toxic Behaviors in Open-Domain Chatbotscited by 14
  7. 2024Do LLMs dream of elephants (when told not to)? Latent concept association and associative memory in transformerscited by 14
  8. 2023AI in the Gray: Exploring Moderation Policies in Dialogic Large Language Models vs. Human Answers in Controversial Topicscited by 12
  9. 2024Efficient Detection of Toxic Prompts in Large Language Modelscited by 11
  10. 2024The Dark Side of Human Feedback: Poisoning Large Language Models via User Inputscited by 10
  11. 2024GenderCARE: A Comprehensive Framework for Assessing and Reducing Gender Bias in Large Language Modelscited by 9
  12. 2025Guardians and Offenders: A Survey on Harmful Content Generation and Safety Mitigation of LLMcited by 8
  13. 2024SoK: On the Offensive Potential of AIcited by 5
  14. 2026A Survey on Evaluating Quality and Trustworthiness in LLM-Generated Datacited by 5
  15. 2024ASTPrompter: Preference-Aligned Automated Language Model Red-Teaming to Generate Low-Perplexity Unsafe Promptscited by 3
  16. 2025Toxicity in Online Platforms and AI Systems: A Survey of Needs, Challenges, Mitigations, and Future Directionscited by 3
  17. 2023Safer Conversational AI as a Source of User Delightcited by 2
  18. 2023Comprehensive Assessment of Toxicity in ChatGPTcited by 2
  19. 2024Therapy as an NLP Task: Comparing LLMs and Human Peers Behaviors in CBT Sessionscited by 0