Learn What NOT to Learn: Towards Generative Safety in Chatbots
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 7 papers in the map (data through 7 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
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
- 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
- 2022LaMDA: Language Models for Dialog Applicationscited by 1,218
- 2015A Diversity-Promoting Objective Function for Neural Conversation Modelscited by 1,068
- 2019DialoGPT: Large-Scale Generative Pre-training for Conversational Response Generationcited by 842
- 2019Plug and Play Language Models: A Simple Approach to Controlled Text Generationcited by 793
- 2019CTRL: A Conditional Transformer Language Model for Controllable Generationcited by 754
- 2022Improving alignment of dialogue agents via targeted human judgementscited by 527
- 2021DExperts: Decoding-Time Controlled Text Generation with Experts and Anti-Expertscited by 434
16 more
- 2020GeDi: Generative Discriminator Guided Sequence Generationcited by 377
- 2023Pretraining Language Models with Human Preferencescited by 245
- 2022BlenderBot 3: a deployed conversational agent that continually learns to responsibly engagecited by 197
- 2021Large Pre-trained Language Models Contain Human-like Biases of What is Right and Wrong to Docited by 178
- 2020Recipes for Safety in Open-domain Chatbotscited by 168
- 2017ParlAI: A Dialog Research Software Platformcited by 139
- 2022Language Models that Seek for Knowledge: Modular Search & Generation for Dialogue and Prompt Completioncited by 102
- 2022Prompt Compression and Contrastive Conditioning for Controllability and Toxicity Reduction in Language Modelscited by 96
- 2021Text Detoxification using Large Pre-trained Neural Modelscited by 52
- 2023Using In-Context Learning to Improve Dialogue Safetycited by 41
- 2022The CRINGE Loss: Learning what language not to modelcited by 39
- 2022DIRECTOR: Generator-Classifiers For Supervised Language Modelingcited by 38
- 2022Detoxifying Text with MaRCo: Controllable Revision with Experts and Anti-Expertscited by 36
- 2022Robust Conversational Agents against Imperceptible Toxicity Triggerscited by 23
- 2020Unsupervised Paraphrasing with Pretrained Language Modelscited by 15
- 2022Language Detoxification with Attribute-Discriminative Latent Spacecited by 11
Built on by
Citing papers per year: 2023: 3; 2024: 3; 2025: 1.
7 papers.
- 2023Bias and Fairness in Large Language Models: A Surveycited by 626
- 2023The Art of Defending: A Systematic Evaluation and Analysis of LLM Defense Strategies on Safety and Over-Defensivenesscited by 63
- 2024"Not Aligned" is Not "Malicious": Being Careful about Hallucinations of Large Language Models' Jailbreakcited by 23
- 2024High-Dimension Human Value Representation in Large Language Modelscited by 20
- 2023Tackling Bias in Pre-trained Language Models: Current Trends and Under-represented Societiescited by 11
- 2025Building Safe GenAI Applications: An End-to-End Overview of Red Teaming for Large Language Modelscited by 11
- 2024SaGE: Evaluating Moral Consistency in Large Language Modelscited by 3
- 2025Building Safe GenAI Applications: An End-to-End Overview of Red Teaming for Large Language Models3 Mar 2025
- 2024"Not Aligned" is Not "Malicious": Being Careful about Hallucinations of Large Language Models' Jailbreak17 Jun 2024
- 2024High-Dimension Human Value Representation in Large Language Models11 Apr 2024
- 2024SaGE: Evaluating Moral Consistency in Large Language Models21 Feb 2024
- 2023The Art of Defending: A Systematic Evaluation and Analysis of LLM Defense Strategies on Safety and Over-Defensiveness30 Dec 2023
- 2023Tackling Bias in Pre-trained Language Models: Current Trends and Under-represented Societies3 Dec 2023
- 2023Bias and Fairness in Large Language Models: A Survey2 Sep 2023