mlsanityData to 7 Oct 2026

Reward Modeling for Mitigating Toxicity in Transformer-based Language Models

arXiv 2202.09662 ↗First posted 19 Feb 2022cs.CL cs.AIcited by 17

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  4. 2017Proximal Policy Optimization Algorithmscited by 14,441
  5. 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,898
  6. 2019The Curious Case of Neural Text Degenerationcited by 2,881
  7. 2020Learning to summarize from human feedbackcited by 2,562
  8. 2019Fine-Tuning Language Models from Human Preferencescited by 2,124
  9. 2020Don't Stop Pretraining: Adapt Language Models to Domains and Taskscited by 1,548
  10. 2020RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Modelscited by 1,235
  11. 2019Right for the Wrong Reasons: Diagnosing Syntactic Heuristics in Natural Language Inferencecited by 864
  12. 2019DialoGPT: Large-Scale Generative Pre-training for Conversational Response Generationcited by 842
21 more
  1. 2019Plug and Play Language Models: A Simple Approach to Controlled Text Generationcited by 793
  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. 2019Unified Language Model Pre-training for Natural Language Understanding and Generationcited by 668
  5. 2015Sequence Level Training with Recurrent Neural Networkscited by 568
  6. 2019The Woman Worked as a Babysitter: On Biases in Language Generationcited by 540
  7. 2021DExperts: Decoding-Time Controlled Text Generation with Experts and Anti-Expertscited by 434
  8. 2021BOLD: Dataset and Metrics for Measuring Biases in Open-Ended Language Generationcited by 410
  9. 2019Nuanced Metrics for Measuring Unintended Bias with Real Data for Text Classificationcited by 396
  10. 2020GeDi: Generative Discriminator Guided Sequence Generationcited by 377
  11. 2017A Deep Reinforced Model for Abstractive Summarizationcited by 364
  12. 2019Multi-Task Deep Neural Networks for Natural Language Understandingcited by 349
  13. 2016Deep Reinforcement Learning for Dialogue Generationcited by 286
  14. 2019Probing Neural Network Comprehension of Natural Language Argumentscited by 212
  15. 2021Challenges in Detoxifying Language Modelscited by 169
  16. 2021Detoxifying Language Models Risks Marginalizing Minority Voicescited by 106
  17. 2019Better Rewards Yield Better Summaries: Learning to Summarise Without Referencescited by 76
  18. 2017Reinforcement Learning for Bandit Neural Machine Translation with Simulated Human Feedbackcited by 71
  19. 2018Learning to Extract Coherent Summary via Deep Reinforcement Learningcited by 63
  20. 2019Towards Coherent and Engaging Spoken Dialog Response Generation Using Automatic Conversation Evaluatorscited by 34
  21. 2019Preference-based Interactive Multi-Document Summarisationcited by 11

Built on by

Cited by year

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

17 papers.

Sort:

By area:

  1. 2023Toxicity in ChatGPT: Analyzing Persona-assigned Language Modelscited by 356
  2. 2022Quark: Controllable Text Generation with Reinforced Unlearningcited by 236
  3. 2023On the Challenges of Using Black-Box APIs for Toxicity Evaluation in Researchcited by 44
  4. 2022Weakly Supervised Data Augmentation Through Prompting for Dialogue Understandingcited by 32
  5. 2023Aligning Language Models with Human Preferences via a Bayesian Approachcited by 27
  6. 2022Debiasing Methods for Fairer Neural Models in Vision and Language Research: A Surveycited by 22
  7. 2023Improving Factual Consistency for Knowledge-Grounded Dialogue Systems via Knowledge Enhancement and Alignmentcited by 19
  8. 2023From Google Gemini to OpenAI Q* (Q-Star): A Survey of Reshaping the Generative Artificial Intelligence (AI) Research Landscapecited by 18
  9. 2023Transformers in Reinforcement Learning: A Surveycited by 11
  10. 2024More RLHF, More Trust? On The Impact of Preference Alignment On Trustworthinesscited by 9
  11. 2025IF-GUIDE: Influence Function-Guided Detoxification of LLMscited by 7
  12. 2023CFL: Causally Fair Language Models Through Token-level Attribute Controlled Generationcited by 6
5 more
  1. 2024FrenchToxicityPrompts: a Large Benchmark for Evaluating and Mitigating Toxicity in French Textscited by 5
  2. 2023ReSeTOX: Re-learning attention weights for toxicity mitigation in machine translationcited by 3
  3. 2023Dont Add, dont Miss: Effective Content Preserving Generation from Pre-Selected Text Spanscited by 1
  4. 2023Automatic Construction of a Korean Toxic Instruction Dataset for Ethical Tuning of Large Language Modelscited by 1
  5. 2025Accelerating Reinforcement Learning Algorithms Convergence using Pre-trained Large Language Models as Tutors With Advice Reusingcited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2026Characterising Toxicity in Generative Large Language Models
  2. 2025<think> So let's replace this phrase with insult... </think> Lessons learned from generation of toxic texts with LLMs
  3. 2026Cleansing the Artificial Mind: A Self-Reflective Detoxification Framework for Large Language Models
  4. 2026A Survey of Toxicity Detection and Mitigation Strategies for Multilingual Language Models
  5. 2025Something Just Like TRuST : Toxicity Recognition of Span and Target
  6. 2025Text Detoxification: Data Efficiency, Semantic Preservation and Model Generalization
  7. 2025Aligned Probing: Relating Toxic Behavior and Model Internals
  8. 2024From One to Many: Expanding the Scope of Toxicity Mitigation in Language Models