mlsanityData to 14 Oct 2026

Learn What NOT to Learn: Towards Generative Safety in Chatbots

arXiv 2304.11220 ↗First posted 21 Apr 2023cs.CLcited by 8

Not on the map. Why?

Abstract (arXiv)

Conversational models that are generative and open-domain are particularly susceptible to generating unsafe content since they are trained on web-based social data. Prior approaches to mitigating this issue have drawbacks, such as disrupting the flow of conversation, limited generalization to unseen toxic input contexts, and sacrificing the quality of the dialogue for the sake of safety. In this paper, we present a novel framework, named "LOT" (Learn NOT to), that employs a contrastive loss to enhance generalization by learning from both positive and negative training signals. Our approach differs from the standard contrastive learning framework in that it automatically obtains positive and negative signals from the safe and unsafe language distributions that have been learned beforehand. The LOT framework utilizes divergence to steer the generations away from the unsafe subspace and towards the safe subspace while sustaining the flow of conversation. Our approach is memory and time-efficient during decoding and effectively reduces toxicity while preserving engagingness and fluency. Empirical results indicate that LOT reduces toxicity by up to four-fold while achieving four to six-fold higher rates of engagingness and fluency compared to baseline models. Our findings are further corroborated by human evaluation.

Key facts. Cited by 8 papers in the map (data through 14 Oct 2026). Builds on 28 of its 37 references that are in the map. First posted on arXiv 21 Apr 2023.

Builds on

28 of 37 references.

References · 28

  1. 2017Attention Is All You Needcited by 60,361
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  3. 2020Language Models are Few-Shot Learnerscited by 32,419
  4. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,326
  5. 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,811
  6. 2022LaMDA: Language Models for Dialog Applicationscited by 1,220
  7. 2015A Diversity-Promoting Objective Function for Neural Conversation Modelscited by 1,077
  8. 2019DialoGPT: Large-Scale Generative Pre-training for Conversational Response Generationcited by 842
  9. 2019Plug and Play Language Models: A Simple Approach to Controlled Text Generationcited by 799
  10. 2019CTRL: A Conditional Transformer Language Model for Controllable Generationcited by 762
  11. 2022Improving alignment of dialogue agents via targeted human judgementscited by 531
  12. 2021DExperts: Decoding-Time Controlled Text Generation with Experts and Anti-Expertscited by 441
16 more
  1. 2020GeDi: Generative Discriminator Guided Sequence Generationcited by 378
  2. 2023Pretraining Language Models with Human Preferencescited by 247
  3. 2022BlenderBot 3: a deployed conversational agent that continually learns to responsibly engagecited by 198
  4. 2021Large Pre-trained Language Models Contain Human-like Biases of What is Right and Wrong to Docited by 178
  5. 2020Recipes for Safety in Open-domain Chatbotscited by 170
  6. 2017ParlAI: A Dialog Research Software Platformcited by 139
  7. 2022Language Models that Seek for Knowledge: Modular Search & Generation for Dialogue and Prompt Completioncited by 102
  8. 2022Prompt Compression and Contrastive Conditioning for Controllability and Toxicity Reduction in Language Modelscited by 97
  9. 2021Text Detoxification using Large Pre-trained Neural Modelscited by 52
  10. 2023Using In-Context Learning to Improve Dialogue Safetycited by 42
  11. 2022The CRINGE Loss: Learning what language not to modelcited by 39
  12. 2022DIRECTOR: Generator-Classifiers For Supervised Language Modelingcited by 38
  13. 2022Detoxifying Text with MaRCo: Controllable Revision with Experts and Anti-Expertscited by 36
  14. 2022Robust Conversational Agents against Imperceptible Toxicity Triggerscited by 23
  15. 2020Unsupervised Paraphrasing with Pretrained Language Modelscited by 15
  16. 2022Language Detoxification with Attribute-Discriminative Latent Spacecited by 11

Built on by

Cited by year (2026 to 14 Oct)

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

8 papers.