mlsanityData to 14 Oct 2026

DESTEIN: Navigating Detoxification of Language Models via Universal Steering Pairs and Head-wise Activation Fusion

arXiv 2404.10464 ↗First posted 16 Apr 2024cs.CL cs.AIcited by 9

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

  1. 2017Attention Is All You Needcited by 60,361
  2. 2023GPT-4 Technical Reportcited by 18,396
  3. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  4. 2020Measuring Massive Multitask Language Understandingcited by 7,963
  5. 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,512
  6. 2020Don't Stop Pretraining: Adapt Language Models to Domains and Taskscited by 1,565
  7. 2016Understanding intermediate layers using linear classifier probescited by 1,353
  8. 2023Representation Engineering: A Top-Down Approach to AI Transparencycited by 1,336
  9. 2023Inference-Time Intervention: Eliciting Truthful Answers from a Language Modelcited by 1,302
  10. 2020RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Modelscited by 1,255
  11. 2023Steering Llama 2 via Contrastive Activation Additioncited by 1,085
  12. 2021Ethical and social risks of harm from Language Modelscited by 966
21 more
  1. 2023Steering Language Models With Activation Engineeringcited by 922
  2. 2019Plug and Play Language Models: A Simple Approach to Controlled Text Generationcited by 799
  3. 2023The Linear Representation Hypothesis and the Geometry of Large Language Modelscited by 716
  4. 2022Contrastive Decoding: Open-ended Text Generation as Optimizationcited by 609
  5. 2021Knowledge Neurons in Pretrained Transformerscited by 601
  6. 2021DExperts: Decoding-Time Controlled Text Generation with Experts and Anti-Expertscited by 441
  7. 2023A Survey on Large Language Model (LLM) Security and Privacy: The Good, the Bad, and the Uglycited by 387
  8. 2020GeDi: Generative Discriminator Guided Sequence Generationcited by 378
  9. 2021FUDGE: Controlled Text Generation With Future Discriminatorscited by 376
  10. 2021Self-Diagnosis and Self-Debiasing: A Proposal for Reducing Corpus-Based Bias in NLPcited by 337
  11. 2024A Mechanistic Understanding of Alignment Algorithms: A Case Study on DPO and Toxicitycited by 185
  12. 2022Exploring the Limits of Domain-Adaptive Training for Detoxifying Large-Scale Language Modelscited by 68
  13. 2023Probing LLMs for hate speech detection: strengths and vulnerabilitiescited by 52
  14. 2023Self-Detoxifying Language Models via Toxification Reversalcited by 46
  15. 2023On the Challenges of Using Black-Box APIs for Toxicity Evaluation in Researchcited by 44
  16. 2023Click: Controllable Text Generation with Sequence Likelihood Contrastive Learningcited by 41
  17. 2023PREADD: Prefix-Adaptive Decoding for Controlled Text Generationcited by 29
  18. 2022Spurious Correlations in Reference-Free Evaluation of Text Generationcited by 26
  19. 2023Goodtriever: Adaptive Toxicity Mitigation with Retrieval-augmented Modelscited by 23
  20. 2022Language Detoxification with Attribute-Discriminative Latent Spacecited by 11
  21. 2023Air-Decoding: Attribute Distribution Reconstruction for Decoding-Time Controllable Text Generationcited by 10

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2024: 2; 2025: 5; 2026: 2.

9 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Detoxification of Large Language Models through Output-layer Fusion with a Calibration Model
  2. 2026One Adapter Pair per Model: A Universal Activation Interface for Language Models
  3. 2026Disentangling Steering Vectors
  4. 2023Task-agnostic Distillation of Encoder-Decoder Language Models
  5. 2025Breaking Bad Tokens: Detoxification of LLMs Using Sparse Autoencoders
  6. 2025Steering When Necessary: Flexible Steering Large Language Models with Backtracking
  7. 2024Activation Scaling for Steering and Interpreting Language Models
  8. 2024Large Language Models can be Strong Self-Detoxifiers