Systematic Rectification of Language Models via Dead-end Analysis
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
- 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
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2016Pointer Sentinel Mixture Modelscited by 2,992
- 2019The Curious Case of Neural Text Degenerationcited by 2,881
- 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
- 2018Deep contextualized word representationscited by 2,285
- 2019Language Models as Knowledge Bases?cited by 1,922
- 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
- 2016Semantics derived automatically from language corpora contain human-like biasescited by 894
21 more
- 2019Plug and Play Language Models: A Simple Approach to Controlled Text Generationcited by 793
- 2020The State and Fate of Linguistic Diversity and Inclusion in the NLP Worldcited by 789
- 2019CTRL: A Conditional Transformer Language Model for Controllable Generationcited by 754
- 2019Universal Adversarial Triggers for Attacking and Analyzing NLPcited by 709
- 2020Recipes for building an open-domain chatbotcited by 593
- 2015Sequence Level Training with Recurrent Neural Networkscited by 568
- 2017Adversarial Examples for Evaluating Reading Comprehension Systemscited 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
- 2017Men Also Like Shopping: Reducing Gender Bias Amplification using Corpus-level Constraintscited by 420
- 2019Nuanced Metrics for Measuring Unintended Bias with Real Data for Text Classificationcited by 396
- 2021FUDGE: Controlled Text Generation With Future Discriminatorscited by 374
- 2021Self-Diagnosis and Self-Debiasing: A Proposal for Reducing Corpus-Based Bias in NLPcited by 336
- 2019Predicting the Type and Target of Offensive Posts in Social Mediacited by 268
- 2022Quark: Controllable Text Generation with Reinforced Unlearningcited by 236
- 2019Build it Break it Fix it for Dialogue Safety: Robustness from Adversarial Human Attackcited by 176
- 2021Challenges in Detoxifying Language Modelscited by 169
- 2020Recipes for Safety in Open-domain Chatbotscited by 168
- 2019Reducing Sentiment Bias in Language Models via Counterfactual Evaluationcited by 148
- 2021Detoxifying Language Models Risks Marginalizing Minority Voicescited by 106
- 2021Medical Dead-ends and Learning to Identify High-risk States and Treatmentscited by 28
Built on by
Citing papers per year: 2023: 3; 2024: 7; 2025: 4; 2026: 2.
16 papers.
Sort:
By area:
- 2023Reward-Augmented Decoding: Efficient Controlled Text Generation With a Unidirectional Reward Modelcited by 79
- 2025Concise Reasoning via Reinforcement Learningcited by 78
- 2024Beyond Sparse Rewards: Enhancing Reinforcement Learning with Language Model Critique in Text Generationcited by 22
- 2024Towards Resilient and Efficient LLMs: A Comparative Study of Efficiency, Performance, and Adversarial Robustnesscited by 22
- 2024Deep Reinforcement Learning-based Obstacle Avoidance for Robot Movement in Warehouse Environmentscited by 17
- 2024Large Language Models can be Strong Self-Detoxifierscited by 7
- 2025Risk-Averse Finetuning of Large Language Modelscited by 7
- 2025IF-GUIDE: Influence Function-Guided Detoxification of LLMscited by 7
- 2024Online Safety Analysis for LLMs: a Benchmark, an Assessment, and a Path Forwardcited by 5
- 2023LUNA: A Model-Based Universal Analysis Framework for Large Language Modelscited by 4
- 2024On the Low-Rank Parametrization of Reward Models for Controlled Language Generationcited by 3
- 2023Successor Features for Efficient Multisubject Controlled Text Generationcited by 2
4 more
- 2026Test-Time Detoxification without Training or Learning Anythingcited by 2
- 2025DAPI: Domain Adaptive Toxicity Probe Vector Intervention for Fine-Grained Detoxificationcited by 1
- 2024A Dynamical View of the Question of Whycited by 0
- 2026On the Rejection Criterion for Proxy-based Test-time Alignmentcited by 0
- 2026On the Rejection Criterion for Proxy-based Test-time Alignment17 Apr 2026
- 2026Test-Time Detoxification without Training or Learning Anything14 Jan 2026
- 2025IF-GUIDE: Influence Function-Guided Detoxification of LLMs2 Jun 2025
- 2025Concise Reasoning via Reinforcement Learning7 Apr 2025
- 2025DAPI: Domain Adaptive Toxicity Probe Vector Intervention for Fine-Grained Detoxification17 Mar 2025
- 2025Risk-Averse Finetuning of Large Language Models12 Jan 2025
- 2024Large Language Models can be Strong Self-Detoxifiers4 Oct 2024
- 2024Deep Reinforcement Learning-based Obstacle Avoidance for Robot Movement in Warehouse Environments23 Sep 2024
- 2024Towards Resilient and Efficient LLMs: A Comparative Study of Efficiency, Performance, and Adversarial Robustness8 Aug 2024
- 2024On the Low-Rank Parametrization of Reward Models for Controlled Language Generation5 Jul 2024
- 2024Online Safety Analysis for LLMs: a Benchmark, an Assessment, and a Path Forward12 Apr 2024
- 2024A Dynamical View of the Question of Why14 Feb 2024
4 more
- 2024Beyond Sparse Rewards: Enhancing Reinforcement Learning with Language Model Critique in Text Generation14 Jan 2024
- 2023Successor Features for Efficient Multisubject Controlled Text Generation3 Nov 2023
- 2023LUNA: A Model-Based Universal Analysis Framework for Large Language Models22 Oct 2023
- 2023Reward-Augmented Decoding: Efficient Controlled Text Generation With a Unidirectional Reward Model14 Oct 2023
- 2023Reward-Augmented Decoding: Efficient Controlled Text Generation With a Unidirectional Reward Modelcited by 79
- 2024Beyond Sparse Rewards: Enhancing Reinforcement Learning with Language Model Critique in Text Generationcited by 22
- 2024Large Language Models can be Strong Self-Detoxifierscited by 7
- 2024On the Low-Rank Parametrization of Reward Models for Controlled Language Generationcited by 3
- 2024Large Language Models can be Strong Self-Detoxifiers4 Oct 2024
- 2024On the Low-Rank Parametrization of Reward Models for Controlled Language Generation5 Jul 2024
- 2024Beyond Sparse Rewards: Enhancing Reinforcement Learning with Language Model Critique in Text Generation14 Jan 2024
- 2023Reward-Augmented Decoding: Efficient Controlled Text Generation With a Unidirectional Reward Model14 Oct 2023
- 2025Concise Reasoning via Reinforcement Learningcited by 78
- 2025Concise Reasoning via Reinforcement Learning7 Apr 2025
- 2024Towards Resilient and Efficient LLMs: A Comparative Study of Efficiency, Performance, and Adversarial Robustnesscited by 22
- 2024Deep Reinforcement Learning-based Obstacle Avoidance for Robot Movement in Warehouse Environmentscited by 17
- 2025Risk-Averse Finetuning of Large Language Modelscited by 7
- 2025IF-GUIDE: Influence Function-Guided Detoxification of LLMscited by 7
- 2024Online Safety Analysis for LLMs: a Benchmark, an Assessment, and a Path Forwardcited by 5
- 2023LUNA: A Model-Based Universal Analysis Framework for Large Language Modelscited by 4
- 2023Successor Features for Efficient Multisubject Controlled Text Generationcited by 2
- 2026Test-Time Detoxification without Training or Learning Anythingcited by 2
- 2025DAPI: Domain Adaptive Toxicity Probe Vector Intervention for Fine-Grained Detoxificationcited by 1
- 2024A Dynamical View of the Question of Whycited by 0
- 2026On the Rejection Criterion for Proxy-based Test-time Alignmentcited by 0
- 2026On the Rejection Criterion for Proxy-based Test-time Alignment17 Apr 2026
- 2026Test-Time Detoxification without Training or Learning Anything14 Jan 2026
- 2025IF-GUIDE: Influence Function-Guided Detoxification of LLMs2 Jun 2025
- 2025DAPI: Domain Adaptive Toxicity Probe Vector Intervention for Fine-Grained Detoxification17 Mar 2025
- 2025Risk-Averse Finetuning of Large Language Models12 Jan 2025
- 2024Deep Reinforcement Learning-based Obstacle Avoidance for Robot Movement in Warehouse Environments23 Sep 2024
- 2024Towards Resilient and Efficient LLMs: A Comparative Study of Efficiency, Performance, and Adversarial Robustness8 Aug 2024
- 2024Online Safety Analysis for LLMs: a Benchmark, an Assessment, and a Path Forward12 Apr 2024
- 2024A Dynamical View of the Question of Why14 Feb 2024
- 2023Successor Features for Efficient Multisubject Controlled Text Generation3 Nov 2023
- 2023LUNA: A Model-Based Universal Analysis Framework for Large Language Models22 Oct 2023