Reward Modeling for Mitigating Toxicity in Transformer-based Language Models
On the map: LLM alignment / RLHF / preference optimisation → Safety alignment and jailbreak attacks
Abstract (arXiv)
Transformer-based language models are able to generate fluent text and be efficiently adapted across various natural language generation tasks. However, language models that are pretrained on large unlabeled web text corpora have been shown to suffer from degenerating toxic content and social bias behaviors, consequently hindering their safe deployment. Various detoxification methods were proposed to mitigate the language model's toxicity; however, these methods struggled to detoxify language models when conditioned on prompts that contain specific social identities related to gender, race, or religion. In this study, we propose Reinforce-Detoxify; A reinforcement learning-based method for mitigating toxicity in language models. We address the challenge of safety in language models and propose a new reward model that is able to detect toxic content and mitigate unintended bias towards social identities in toxicity prediction. The experiments demonstrate that the Reinforce-Detoxify method for language model detoxification outperforms existing detoxification approaches in automatic evaluation metrics, indicating the ability of our approach in language model detoxification and less prone to unintended bias toward social identities in generated content.
Key facts. Cited by 17 papers in the map (data through 7 Oct 2026). Placed in Safety alignment and jailbreak attacks, one of 10 directions in LLM alignment / RLHF / preference optimisation. Builds on 33 of its 48 references that are in the map. First posted on arXiv 19 Feb 2022.
Builds on
33 of 48 references.
References · 33
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2017Proximal Policy Optimization Algorithmscited by 14,441
- 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,898
- 2019The Curious Case of Neural Text Degenerationcited by 2,881
- 2020Learning to summarize from human feedbackcited by 2,562
- 2019Fine-Tuning Language Models from Human Preferencescited by 2,124
- 2020Don't Stop Pretraining: Adapt Language Models to Domains and Taskscited by 1,548
- 2020RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Modelscited by 1,235
- 2019Right for the Wrong Reasons: Diagnosing Syntactic Heuristics in Natural Language Inferencecited by 864
- 2019DialoGPT: Large-Scale Generative Pre-training for Conversational Response Generationcited by 842
21 more
- 2019Plug and Play Language Models: A Simple Approach to Controlled Text Generationcited by 793
- 2017Automated Hate Speech Detection and the Problem of Offensive Languagecited by 724
- 2019Universal Adversarial Triggers for Attacking and Analyzing NLPcited by 709
- 2019Unified Language Model Pre-training for Natural Language Understanding and Generationcited by 668
- 2015Sequence Level Training with Recurrent Neural Networkscited by 568
- 2019The Woman Worked as a Babysitter: On Biases in Language Generationcited by 540
- 2021DExperts: Decoding-Time Controlled Text Generation with Experts and Anti-Expertscited by 434
- 2021BOLD: Dataset and Metrics for Measuring Biases in Open-Ended Language Generationcited by 410
- 2019Nuanced Metrics for Measuring Unintended Bias with Real Data for Text Classificationcited by 396
- 2020GeDi: Generative Discriminator Guided Sequence Generationcited by 377
- 2017A Deep Reinforced Model for Abstractive Summarizationcited by 364
- 2019Multi-Task Deep Neural Networks for Natural Language Understandingcited by 349
- 2016Deep Reinforcement Learning for Dialogue Generationcited by 286
- 2019Probing Neural Network Comprehension of Natural Language Argumentscited by 212
- 2021Challenges in Detoxifying Language Modelscited by 169
- 2021Detoxifying Language Models Risks Marginalizing Minority Voicescited by 106
- 2019Better Rewards Yield Better Summaries: Learning to Summarise Without Referencescited by 76
- 2017Reinforcement Learning for Bandit Neural Machine Translation with Simulated Human Feedbackcited by 71
- 2018Learning to Extract Coherent Summary via Deep Reinforcement Learningcited by 63
- 2019Towards Coherent and Engaging Spoken Dialog Response Generation Using Automatic Conversation Evaluatorscited by 34
- 2019Preference-based Interactive Multi-Document Summarisationcited by 11
Built on by
Citing papers per year: 2022: 3; 2023: 10; 2024: 2; 2025: 2.
17 papers.
Sort:
By area:
- 2023Toxicity in ChatGPT: Analyzing Persona-assigned Language Modelscited by 356
- 2022Quark: Controllable Text Generation with Reinforced Unlearningcited by 236
- 2023On the Challenges of Using Black-Box APIs for Toxicity Evaluation in Researchcited by 44
- 2022Weakly Supervised Data Augmentation Through Prompting for Dialogue Understandingcited by 32
- 2023Aligning Language Models with Human Preferences via a Bayesian Approachcited by 27
- 2022Debiasing Methods for Fairer Neural Models in Vision and Language Research: A Surveycited by 22
- 2023Improving Factual Consistency for Knowledge-Grounded Dialogue Systems via Knowledge Enhancement and Alignmentcited by 19
- 2023From Google Gemini to OpenAI Q* (Q-Star): A Survey of Reshaping the Generative Artificial Intelligence (AI) Research Landscapecited by 18
- 2023Transformers in Reinforcement Learning: A Surveycited by 11
- 2024More RLHF, More Trust? On The Impact of Preference Alignment On Trustworthinesscited by 9
- 2025IF-GUIDE: Influence Function-Guided Detoxification of LLMscited by 7
- 2023CFL: Causally Fair Language Models Through Token-level Attribute Controlled Generationcited by 6
5 more
- 2024FrenchToxicityPrompts: a Large Benchmark for Evaluating and Mitigating Toxicity in French Textscited by 5
- 2023ReSeTOX: Re-learning attention weights for toxicity mitigation in machine translationcited by 3
- 2023Dont Add, dont Miss: Effective Content Preserving Generation from Pre-Selected Text Spanscited by 1
- 2023Automatic Construction of a Korean Toxic Instruction Dataset for Ethical Tuning of Large Language Modelscited by 1
- 2025Accelerating Reinforcement Learning Algorithms Convergence using Pre-trained Large Language Models as Tutors With Advice Reusingcited by 0
- 2025Accelerating Reinforcement Learning Algorithms Convergence using Pre-trained Large Language Models as Tutors With Advice Reusing10 Sep 2025
- 2025IF-GUIDE: Influence Function-Guided Detoxification of LLMs2 Jun 2025
- 2024FrenchToxicityPrompts: a Large Benchmark for Evaluating and Mitigating Toxicity in French Texts25 Jun 2024
- 2024More RLHF, More Trust? On The Impact of Preference Alignment On Trustworthiness29 Apr 2024
- 2023From Google Gemini to OpenAI Q* (Q-Star): A Survey of Reshaping the Generative Artificial Intelligence (AI) Research Landscape18 Dec 2023
- 2023Automatic Construction of a Korean Toxic Instruction Dataset for Ethical Tuning of Large Language Models30 Nov 2023
- 2023Dont Add, dont Miss: Effective Content Preserving Generation from Pre-Selected Text Spans13 Oct 2023
- 2023Improving Factual Consistency for Knowledge-Grounded Dialogue Systems via Knowledge Enhancement and Alignment12 Oct 2023
- 2023Aligning Language Models with Human Preferences via a Bayesian Approach9 Oct 2023
- 2023Transformers in Reinforcement Learning: A Survey12 Jul 2023
- 2023CFL: Causally Fair Language Models Through Token-level Attribute Controlled Generation1 Jun 2023
- 2023ReSeTOX: Re-learning attention weights for toxicity mitigation in machine translation19 May 2023
5 more
- 2023On the Challenges of Using Black-Box APIs for Toxicity Evaluation in Research24 Apr 2023
- 2023Toxicity in ChatGPT: Analyzing Persona-assigned Language Models11 Apr 2023
- 2022Debiasing Methods for Fairer Neural Models in Vision and Language Research: A Survey10 Nov 2022
- 2022Weakly Supervised Data Augmentation Through Prompting for Dialogue Understanding25 Oct 2022
- 2022Quark: Controllable Text Generation with Reinforced Unlearning26 May 2022
- 2022Quark: Controllable Text Generation with Reinforced Unlearningcited by 236
- 2023Toxicity in ChatGPT: Analyzing Persona-assigned Language Modelscited by 356
- 2023On the Challenges of Using Black-Box APIs for Toxicity Evaluation in Researchcited by 44
- 2022Weakly Supervised Data Augmentation Through Prompting for Dialogue Understandingcited by 32
- 2022Debiasing Methods for Fairer Neural Models in Vision and Language Research: A Surveycited by 22
- 2023Improving Factual Consistency for Knowledge-Grounded Dialogue Systems via Knowledge Enhancement and Alignmentcited by 19
- 2023Transformers in Reinforcement Learning: A Surveycited by 11
- 2025IF-GUIDE: Influence Function-Guided Detoxification of LLMscited by 7
- 2023CFL: Causally Fair Language Models Through Token-level Attribute Controlled Generationcited by 6
- 2024FrenchToxicityPrompts: a Large Benchmark for Evaluating and Mitigating Toxicity in French Textscited by 5
- 2023ReSeTOX: Re-learning attention weights for toxicity mitigation in machine translationcited by 3
- 2023Dont Add, dont Miss: Effective Content Preserving Generation from Pre-Selected Text Spanscited by 1
- 2023Automatic Construction of a Korean Toxic Instruction Dataset for Ethical Tuning of Large Language Modelscited by 1
12 most cited of 13 All 13 (JSON)
- 2025Accelerating Reinforcement Learning Algorithms Convergence using Pre-trained Large Language Models as Tutors With Advice Reusing10 Sep 2025
- 2025IF-GUIDE: Influence Function-Guided Detoxification of LLMs2 Jun 2025
- 2024FrenchToxicityPrompts: a Large Benchmark for Evaluating and Mitigating Toxicity in French Texts25 Jun 2024
- 2023Automatic Construction of a Korean Toxic Instruction Dataset for Ethical Tuning of Large Language Models30 Nov 2023
- 2023Dont Add, dont Miss: Effective Content Preserving Generation from Pre-Selected Text Spans13 Oct 2023
- 2023Improving Factual Consistency for Knowledge-Grounded Dialogue Systems via Knowledge Enhancement and Alignment12 Oct 2023
- 2023Transformers in Reinforcement Learning: A Survey12 Jul 2023
- 2023CFL: Causally Fair Language Models Through Token-level Attribute Controlled Generation1 Jun 2023
- 2023ReSeTOX: Re-learning attention weights for toxicity mitigation in machine translation19 May 2023
- 2023On the Challenges of Using Black-Box APIs for Toxicity Evaluation in Research24 Apr 2023
- 2023Toxicity in ChatGPT: Analyzing Persona-assigned Language Models11 Apr 2023
- 2022Debiasing Methods for Fairer Neural Models in Vision and Language Research: A Survey10 Nov 2022
12 newest of 13 All 13 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2026Characterising Toxicity in Generative Large Language Models
- 2025<think> So let's replace this phrase with insult... </think> Lessons learned from generation of toxic texts with LLMs
- 2026Cleansing the Artificial Mind: A Self-Reflective Detoxification Framework for Large Language Models
- 2026A Survey of Toxicity Detection and Mitigation Strategies for Multilingual Language Models
- 2025Something Just Like TRuST : Toxicity Recognition of Span and Target
- 2025Text Detoxification: Data Efficiency, Semantic Preservation and Model Generalization
- 2025Aligned Probing: Relating Toxic Behavior and Model Internals
- 2024From One to Many: Expanding the Scope of Toxicity Mitigation in Language Models