mlsanityData to 7 Oct 2026

Systematic Rectification of Language Models via Dead-end Analysis

arXiv 2302.14003 ↗First posted 27 Feb 2023cs.CL cs.AI cs.LGcited by 16

Not on the map. Why?

Abstract (arXiv)

With adversarial or otherwise normal prompts, existing large language models (LLM) can be pushed to generate toxic discourses. One way to reduce the risk of LLMs generating undesired discourses is to alter the training of the LLM. This can be very restrictive due to demanding computation requirements. Other methods rely on rule-based or prompt-based token elimination, which are limited as they dismiss future tokens and the overall meaning of the complete discourse. Here, we center detoxification on the probability that the finished discourse is ultimately considered toxic. That is, at each point, we advise against token selections proportional to how likely a finished text from this point will be toxic. To this end, we formally extend the dead-end theory from the recent reinforcement learning (RL) literature to also cover uncertain outcomes. Our approach, called rectification, utilizes a separate but significantly smaller model for detoxification, which can be applied to diverse LLMs as long as they share the same vocabulary. Importantly, our method does not require access to the internal representations of the LLM, but only the token probability distribution at each decoding step. This is crucial as many LLMs today are hosted in servers and only accessible through APIs. When applied to various LLMs, including GPT-3, our approach significantly improves the generated discourse compared to the base LLMs and other techniques in terms of both the overall language and detoxification performance.

Key facts. Cited by 16 papers in the map (data through 7 Oct 2026). Builds on 33 of its 53 references that are in the map. First posted on arXiv 27 Feb 2023.

Builds on

33 of 53 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. 2020Language Models are Few-Shot Learnerscited by 32,199
  4. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  5. 2016Pointer Sentinel Mixture Modelscited by 2,992
  6. 2019The Curious Case of Neural Text Degenerationcited by 2,881
  7. 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
  8. 2018Deep contextualized word representationscited by 2,285
  9. 2019Language Models as Knowledge Bases?cited by 1,922
  10. 2020Don't Stop Pretraining: Adapt Language Models to Domains and Taskscited by 1,548
  11. 2020RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Modelscited by 1,235
  12. 2016Semantics derived automatically from language corpora contain human-like biasescited by 894
21 more
  1. 2019Plug and Play Language Models: A Simple Approach to Controlled Text Generationcited by 793
  2. 2020The State and Fate of Linguistic Diversity and Inclusion in the NLP Worldcited by 789
  3. 2019CTRL: A Conditional Transformer Language Model for Controllable Generationcited by 754
  4. 2019Universal Adversarial Triggers for Attacking and Analyzing NLPcited by 709
  5. 2020Recipes for building an open-domain chatbotcited by 593
  6. 2015Sequence Level Training with Recurrent Neural Networkscited by 568
  7. 2017Adversarial Examples for Evaluating Reading Comprehension Systemscited by 568
  8. 2019The Woman Worked as a Babysitter: On Biases in Language Generationcited by 540
  9. 2021DExperts: Decoding-Time Controlled Text Generation with Experts and Anti-Expertscited by 434
  10. 2017Men Also Like Shopping: Reducing Gender Bias Amplification using Corpus-level Constraintscited by 420
  11. 2019Nuanced Metrics for Measuring Unintended Bias with Real Data for Text Classificationcited by 396
  12. 2021FUDGE: Controlled Text Generation With Future Discriminatorscited by 374
  13. 2021Self-Diagnosis and Self-Debiasing: A Proposal for Reducing Corpus-Based Bias in NLPcited by 336
  14. 2019Predicting the Type and Target of Offensive Posts in Social Mediacited by 268
  15. 2022Quark: Controllable Text Generation with Reinforced Unlearningcited by 236
  16. 2019Build it Break it Fix it for Dialogue Safety: Robustness from Adversarial Human Attackcited by 176
  17. 2021Challenges in Detoxifying Language Modelscited by 169
  18. 2020Recipes for Safety in Open-domain Chatbotscited by 168
  19. 2019Reducing Sentiment Bias in Language Models via Counterfactual Evaluationcited by 148
  20. 2021Detoxifying Language Models Risks Marginalizing Minority Voicescited by 106
  21. 2021Medical Dead-ends and Learning to Identify High-risk States and Treatmentscited by 28

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 3; 2024: 7; 2025: 4; 2026: 2.

16 papers.

Sort:

By area: