DESTEIN: Navigating Detoxification of Language Models via Universal Steering Pairs and Head-wise Activation Fusion
Not on the map. Why?
Abstract (arXiv)
Despite the remarkable achievements of language models (LMs) across a broad spectrum of tasks, their propensity for generating toxic outputs remains a prevalent concern. Current solutions involving finetuning or auxiliary models usually require extensive computational resources, hindering their practicality in large language models (LLMs). In this paper, we propose DeStein, a novel method that detoxifies LMs by applying representation engineering in activation spaces with lower resource and time costs. Specifically, we derive detoxification vectors from self-induced, universal steering pairs through arithmetic operations in activation spaces. During inference, detoxification is achieved by fusing the detoxification vectors with the original representations in a head-wise manner. Empirical results demonstrate that our method significantly outperforms previous state-of-the-art approaches on various metrics, while also maintaining satisfactory generation quality and diversity. We further validate the practicality and scalability of DeStein with a series of white-box LLMs. The method is open-sourced at https://github.com/LizLizLi/DeStein. Warning: Some example model outputs may contain highly offensive or disturbing text.
Key facts. Cited by 9 papers in the map (data through 14 Oct 2026). Builds on 33 of its 49 references that are in the map. First posted on arXiv 16 Apr 2024.
Builds on
33 of 49 references.
References · 33
- 2017Attention Is All You Needcited by 60,361
- 2023GPT-4 Technical Reportcited by 18,396
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2020Measuring Massive Multitask Language Understandingcited by 7,963
- 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,512
- 2020Don't Stop Pretraining: Adapt Language Models to Domains and Taskscited by 1,565
- 2016Understanding intermediate layers using linear classifier probescited by 1,353
- 2023Representation Engineering: A Top-Down Approach to AI Transparencycited by 1,336
- 2023Inference-Time Intervention: Eliciting Truthful Answers from a Language Modelcited by 1,302
- 2020RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Modelscited by 1,255
- 2023Steering Llama 2 via Contrastive Activation Additioncited by 1,085
- 2021Ethical and social risks of harm from Language Modelscited by 966
21 more
- 2023Steering Language Models With Activation Engineeringcited by 922
- 2019Plug and Play Language Models: A Simple Approach to Controlled Text Generationcited by 799
- 2023The Linear Representation Hypothesis and the Geometry of Large Language Modelscited by 716
- 2022Contrastive Decoding: Open-ended Text Generation as Optimizationcited by 609
- 2021Knowledge Neurons in Pretrained Transformerscited by 601
- 2021DExperts: Decoding-Time Controlled Text Generation with Experts and Anti-Expertscited by 441
- 2023A Survey on Large Language Model (LLM) Security and Privacy: The Good, the Bad, and the Uglycited by 387
- 2020GeDi: Generative Discriminator Guided Sequence Generationcited by 378
- 2021FUDGE: Controlled Text Generation With Future Discriminatorscited by 376
- 2021Self-Diagnosis and Self-Debiasing: A Proposal for Reducing Corpus-Based Bias in NLPcited by 337
- 2024A Mechanistic Understanding of Alignment Algorithms: A Case Study on DPO and Toxicitycited by 185
- 2022Exploring the Limits of Domain-Adaptive Training for Detoxifying Large-Scale Language Modelscited by 68
- 2023Probing LLMs for hate speech detection: strengths and vulnerabilitiescited by 52
- 2023Self-Detoxifying Language Models via Toxification Reversalcited by 46
- 2023On the Challenges of Using Black-Box APIs for Toxicity Evaluation in Researchcited by 44
- 2023Click: Controllable Text Generation with Sequence Likelihood Contrastive Learningcited by 41
- 2023PREADD: Prefix-Adaptive Decoding for Controlled Text Generationcited by 29
- 2022Spurious Correlations in Reference-Free Evaluation of Text Generationcited by 26
- 2023Goodtriever: Adaptive Toxicity Mitigation with Retrieval-augmented Modelscited by 23
- 2022Language Detoxification with Attribute-Discriminative Latent Spacecited by 11
- 2023Air-Decoding: Attribute Distribution Reconstruction for Decoding-Time Controllable Text Generationcited by 10
Built on by
Citing papers per year: 2024: 2; 2025: 5; 2026: 2.
9 papers.
- 2025MemOS: A Memory OS for AI Systemcited by 138
- 2024PrivacyRestore: Privacy-Preserving Inference in Large Language Models via Privacy Removal and Restorationcited by 28
- 2025Detoxifying Large Language Models via Autoregressive Reward Guided Representation Editingcited by 10
- 2025IF-GUIDE: Influence Function-Guided Detoxification of LLMscited by 7
- 2025ToxiFrench: Benchmarking and Enhancing Language Models via CoT Fine-Tuning for French Toxicity Detectioncited by 3
- 2026Test-Time Detoxification without Training or Learning Anythingcited by 2
- 2025Concept Attractors in LLMs and their Applicationscited by 1
- 2026Cleansing the Artificial Mind: A Self-Reflective Detoxification Framework for Large Language Modelscited by 1
- 2024Deep Model Merging: The Sister of Neural Network Interpretability -- A Surveycited by 0
- 2026Cleansing the Artificial Mind: A Self-Reflective Detoxification Framework for Large Language Models16 Jan 2026
- 2026Test-Time Detoxification without Training or Learning Anything14 Jan 2026
- 2025Concept Attractors in LLMs and their Applications30 Dec 2025
- 2025Detoxifying Large Language Models via Autoregressive Reward Guided Representation Editing24 Sep 2025
- 2025ToxiFrench: Benchmarking and Enhancing Language Models via CoT Fine-Tuning for French Toxicity Detection15 Aug 2025
- 2025MemOS: A Memory OS for AI System4 Jul 2025
- 2025IF-GUIDE: Influence Function-Guided Detoxification of LLMs2 Jun 2025
- 2024Deep Model Merging: The Sister of Neural Network Interpretability -- A Survey16 Oct 2024
- 2024PrivacyRestore: Privacy-Preserving Inference in Large Language Models via Privacy Removal and Restoration3 Jun 2024
Similar, not cited
Close in wording, no citation either way
- 2025Detoxification of Large Language Models through Output-layer Fusion with a Calibration Model
- 2026One Adapter Pair per Model: A Universal Activation Interface for Language Models
- 2026Disentangling Steering Vectors
- 2023Task-agnostic Distillation of Encoder-Decoder Language Models
- 2025Breaking Bad Tokens: Detoxification of LLMs Using Sparse Autoencoders
- 2025Steering When Necessary: Flexible Steering Large Language Models with Backtracking
- 2024Activation Scaling for Steering and Interpreting Language Models
- 2024Large Language Models can be Strong Self-Detoxifiers