mlsanityData to 14 Oct 2026

UniDetox: Universal Detoxification of Large Language Models via Dataset Distillation

arXiv 2504.20500 ↗First posted 29 Apr 2025cs.CL cs.LGcited by 8

Not on the map. Why?

Abstract (arXiv)

We present UniDetox, a universally applicable method designed to mitigate toxicity across various large language models (LLMs). Previous detoxification methods are typically model-specific, addressing only individual models or model families, and require careful hyperparameter tuning due to the trade-off between detoxification efficacy and language modeling performance. In contrast, UniDetox provides a detoxification technique that can be universally applied to a wide range of LLMs without the need for separate model-specific tuning. Specifically, we propose a novel and efficient dataset distillation technique for detoxification using contrastive decoding. This approach distills detoxifying representations in the form of synthetic text data, enabling universal detoxification of any LLM through fine-tuning with the distilled text. Our experiments demonstrate that the detoxifying text distilled from GPT-2 can effectively detoxify larger models, including OPT, Falcon, and LLaMA-2. Furthermore, UniDetox eliminates the need for separate hyperparameter tuning for each model, as a single hyperparameter configuration can be seamlessly applied across different models. Additionally, analysis of the detoxifying text reveals a reduction in politically biased content, providing insights into the attributes necessary for effective detoxification of LLMs.

Key facts. Cited by 8 papers in the map (data through 14 Oct 2026). Builds on 47 of its 55 references that are in the map. First posted on arXiv 29 Apr 2025.

Builds on

47 of 55 references.

References · 47

  1. 2014Adam: A Method for Stochastic Optimizationcited by 37,240
  2. 2020Language Models are Few-Shot Learnerscited by 32,419
  3. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  4. 2020Measuring Massive Multitask Language Understandingcited by 7,963
  5. 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,780
  6. 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,512
  7. 2019The Curious Case of Neural Text Degenerationcited by 2,916
  8. 2020Don't Stop Pretraining: Adapt Language Models to Domains and Taskscited by 1,565
  9. 2020RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Modelscited by 1,255
  10. 2022Editing Models with Task Arithmeticcited by 1,120
  11. 2019Plug and Play Language Models: A Simple Approach to Controlled Text Generationcited by 799
  12. 2019CTRL: A Conditional Transformer Language Model for Controllable Generationcited by 762
35 more
  1. 2022Contrastive Decoding: Open-ended Text Generation as Optimizationcited by 609
  2. 2023The Falcon Series of Open Language Modelscited by 535
  3. 2020Dataset Condensation with Gradient Matchingcited by 516
  4. 2022Dataset Distillation by Matching Training Trajectoriescited by 442
  5. 2021DExperts: Decoding-Time Controlled Text Generation with Experts and Anti-Expertscited by 441
  6. 2020GeDi: Generative Discriminator Guided Sequence Generationcited by 378
  7. 2021Self-Diagnosis and Self-Debiasing: A Proposal for Reducing Corpus-Based Bias in NLPcited by 337
  8. 2023Trusting Your Evidence: Hallucinate Less with Context-aware Decodingcited by 327
  9. 2021Dataset Condensation with Differentiable Siamese Augmentationcited by 291
  10. 2023From Pretraining Data to Language Models to Downstream Tasks: Tracking the Trails of Political Biases Leading to Unfair NLP Modelscited by 260
  11. 2022Quark: Controllable Text Generation with Reinforced Unlearningcited by 237
  12. 2020Dataset Meta-Learning from Kernel Ridge-Regressioncited by 230
  13. 2022Extracting Latent Steering Vectors from Pretrained Language Modelscited by 225
  14. 2020Measuring and Reducing Gendered Correlations in Pre-trained Modelscited by 224
  15. 2020Learning from the Worst: Dynamically Generated Datasets to Improve Online Hate Detectioncited by 221
  16. 2021Dataset Distillation with Infinitely Wide Convolutional Networkscited by 218
  17. 2017Controlling Linguistic Style Aspects in Neural Language Generationcited by 149
  18. 2019Soft-Label Dataset Distillation and Text Dataset Distillationcited by 107
  19. 2020We Can Detect Your Bias: Predicting the Political Ideology of News Articlescited by 92
  20. 2024Detoxifying Large Language Models via Knowledge Editingcited by 87
  21. 2023Contrastive Decoding Improves Reasoning in Large Language Modelscited by 74
  22. 2023Word Embeddings Are Steers for Language Modelscited by 70
  23. 2022Exploring the Limits of Domain-Adaptive Training for Detoxifying Large-Scale Language Modelscited by 68
  24. 2021Ethical-Advice Taker: Do Language Models Understand Natural Language Interventions?cited by 46
  25. 2023Self-Detoxifying Language Models via Toxification Reversalcited by 46
  26. 2024Model Editing as a Robust and Denoised variant of DPO: A Case Study on Toxicitycited by 35
  27. 2023A Survey on Dataset Distillation: Approaches, Applications and Future Directionscited by 32
  28. 2024Whispering Experts: Neural Interventions for Toxicity Mitigation in Language Modelscited by 32
  29. 2021Data Distillation for Text Classificationcited by 25
  30. 2023Goodtriever: Adaptive Toxicity Mitigation with Retrieval-augmented Modelscited by 23
  31. 2024Ethos: Rectifying Language Models in Orthogonal Parameter Spacecited by 20
  32. 2024DiLM: Distilling Dataset into Language Model for Text-level Dataset Distillationcited by 20
  33. 2022Leashing the Inner Demons: Self-Detoxification for Language Modelscited by 19
  34. 2024Parameter-Efficient Detoxification with Contrastive Decodingcited by 18
  35. 2022Language Detoxification with Attribute-Discriminative Latent Spacecited by 11

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 3; 2026: 5.

8 papers.