mlsanityData to 7 Oct 2026

Constructing Highly Inductive Contexts for Dialogue Safety through Controllable Reverse Generation

arXiv 2212.01810 ↗First posted 4 Dec 2022cs.CLcited by 8

Not on the map. Why?

Abstract (arXiv)

Large pretrained language models can easily produce toxic or biased content, which is prohibitive for practical use. In order to detect such toxic generations, existing methods rely on templates, real-world data extraction, crowdsourcing workers, or automatic generation to construct adversarial contexts that are likely to induce toxic generations. However, what type of context is more likely to induce unsafe responses is still under-explored. In this paper, we identify that context toxicity and context category (e.g., textitprofanity, textitinsult, textitdrugs, etc.) are two important factors to cause safety issues in response generation. Hence, we propose a method called reverse generation to construct adversarial contexts conditioned on a given response, with the flexibility to control category, toxicity level, and inductivity of the generated contexts. Via reverse generation, we augment the existing BAD dataset and construct a new dataset BAD+ which contains more than 120K diverse and highly inductive contexts in 12 categories. We test three popular pretrained dialogue models (Blender, DialoGPT, and Plato2) and find that BAD+ can largely expose their safety problems. Furthermore, we show that BAD+ can greatly enhance the safety of generation and reveal the key factors of safety improvement. Our code and dataset is available at urlhttps://github.com/thu-coai/ReverseGeneration.

Key facts. Cited by 8 papers in the map (data through 7 Oct 2026). Builds on 37 of its 50 references that are in the map. First posted on arXiv 4 Dec 2022.

Builds on

37 of 50 references.

References · 37

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,769
  3. 2019The Curious Case of Neural Text Degenerationcited by 2,881
  4. 2021SimCSE: Simple Contrastive Learning of Sentence Embeddingscited by 2,168
  5. 2020RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Modelscited by 1,235
  6. 2018Hierarchical Neural Story Generationcited by 1,182
  7. 2022Red Teaming Language Models with Language Modelscited by 983
  8. 2020StereoSet: Measuring stereotypical bias in pretrained language modelscited by 911
  9. 2016Bag of Tricks for Efficient Text Classificationcited by 869
  10. 2019DialoGPT: Large-Scale Generative Pre-training for Conversational Response Generationcited by 842
  11. 2019Plug and Play Language Models: A Simple Approach to Controlled Text Generationcited by 793
  12. 2019CTRL: A Conditional Transformer Language Model for Controllable Generationcited by 754
25 more
  1. 2019Universal Adversarial Triggers for Attacking and Analyzing NLPcited by 709
  2. 2020Recipes for building an open-domain chatbotcited by 593
  3. 2019The Woman Worked as a Babysitter: On Biases in Language Generationcited by 540
  4. 2018Wizard of Wikipedia: Knowledge-Powered Conversational agentscited by 530
  5. 2018Texygen: A Benchmarking Platform for Text Generation Modelscited by 484
  6. 2021DExperts: Decoding-Time Controlled Text Generation with Experts and Anti-Expertscited by 434
  7. 2020GeDi: Generative Discriminator Guided Sequence Generationcited by 377
  8. 2021Self-Diagnosis and Self-Debiasing: A Proposal for Reducing Corpus-Based Bias in NLPcited by 336
  9. 2020HateCheck: Functional Tests for Hate Speech Detection Modelscited by 215
  10. 2019Build it Break it Fix it for Dialogue Safety: Robustness from Adversarial Human Attackcited by 176
  11. 2020Recipes for Safety in Open-domain Chatbotscited by 168
  12. 2020Can You Put it All Together: Evaluating Conversational Agents' Ability to Blend Skillscited by 130
  13. 2020Towards Controllable Biases in Language Generationcited by 112
  14. 2020PLATO-2: Towards Building an Open-Domain Chatbot via Curriculum Learningcited by 79
  15. 2020The Radicalization Risks of GPT-3 and Advanced Neural Language Modelscited by 76
  16. 2022COLD: A Benchmark for Chinese Offensive Language Detectioncited by 74
  17. 2021On the Safety of Conversational Models: Taxonomy, Dataset, and Benchmarkcited by 73
  18. 2021EVA: An Open-Domain Chinese Dialogue System with Large-Scale Generative Pre-Trainingcited by 34
  19. 2022EVA2.0: Investigating Open-Domain Chinese Dialogue Systems with Large-Scale Pre-Trainingcited by 31
  20. 2021Assessing Political Prudence of Open-domain Chatbotscited by 20
  21. 2021Exploring Prompt-based Few-shot Learning for Grounded Dialog Generationcited by 20
  22. 2018Detecting egregious responses in neural sequence-to-sequence modelscited by 6
  23. 2019Say What I Want: Towards the Dark Side of Neural Dialogue Modelscited by 6
  24. 2020Chat as Expected: Learning to Manipulate Black-box Neural Dialogue Modelscited by 5
  25. 2021Automatically Exposing Problems with Neural Dialog Modelscited by 5

Built on by

Cited by year

Citing papers per year: 2022: 1; 2023: 3; 2024: 3; 2025: 1.

8 papers.