UniDetox: Universal Detoxification of Large Language Models via Dataset Distillation
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
- 2014Adam: A Method for Stochastic Optimizationcited by 37,240
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2020Measuring Massive Multitask Language Understandingcited by 7,963
- 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,780
- 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,512
- 2019The Curious Case of Neural Text Degenerationcited by 2,916
- 2020Don't Stop Pretraining: Adapt Language Models to Domains and Taskscited by 1,565
- 2020RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Modelscited by 1,255
- 2022Editing Models with Task Arithmeticcited by 1,120
- 2019Plug and Play Language Models: A Simple Approach to Controlled Text Generationcited by 799
- 2019CTRL: A Conditional Transformer Language Model for Controllable Generationcited by 762
35 more
- 2022Contrastive Decoding: Open-ended Text Generation as Optimizationcited by 609
- 2023The Falcon Series of Open Language Modelscited by 535
- 2020Dataset Condensation with Gradient Matchingcited by 516
- 2022Dataset Distillation by Matching Training Trajectoriescited by 442
- 2021DExperts: Decoding-Time Controlled Text Generation with Experts and Anti-Expertscited by 441
- 2020GeDi: Generative Discriminator Guided Sequence Generationcited by 378
- 2021Self-Diagnosis and Self-Debiasing: A Proposal for Reducing Corpus-Based Bias in NLPcited by 337
- 2023Trusting Your Evidence: Hallucinate Less with Context-aware Decodingcited by 327
- 2021Dataset Condensation with Differentiable Siamese Augmentationcited by 291
- 2023From Pretraining Data to Language Models to Downstream Tasks: Tracking the Trails of Political Biases Leading to Unfair NLP Modelscited by 260
- 2022Quark: Controllable Text Generation with Reinforced Unlearningcited by 237
- 2020Dataset Meta-Learning from Kernel Ridge-Regressioncited by 230
- 2022Extracting Latent Steering Vectors from Pretrained Language Modelscited by 225
- 2020Measuring and Reducing Gendered Correlations in Pre-trained Modelscited by 224
- 2020Learning from the Worst: Dynamically Generated Datasets to Improve Online Hate Detectioncited by 221
- 2021Dataset Distillation with Infinitely Wide Convolutional Networkscited by 218
- 2017Controlling Linguistic Style Aspects in Neural Language Generationcited by 149
- 2019Soft-Label Dataset Distillation and Text Dataset Distillationcited by 107
- 2020We Can Detect Your Bias: Predicting the Political Ideology of News Articlescited by 92
- 2024Detoxifying Large Language Models via Knowledge Editingcited by 87
- 2023Contrastive Decoding Improves Reasoning in Large Language Modelscited by 74
- 2023Word Embeddings Are Steers for Language Modelscited by 70
- 2022Exploring the Limits of Domain-Adaptive Training for Detoxifying Large-Scale Language Modelscited by 68
- 2021Ethical-Advice Taker: Do Language Models Understand Natural Language Interventions?cited by 46
- 2023Self-Detoxifying Language Models via Toxification Reversalcited by 46
- 2024Model Editing as a Robust and Denoised variant of DPO: A Case Study on Toxicitycited by 35
- 2023A Survey on Dataset Distillation: Approaches, Applications and Future Directionscited by 32
- 2024Whispering Experts: Neural Interventions for Toxicity Mitigation in Language Modelscited by 32
- 2021Data Distillation for Text Classificationcited by 25
- 2023Goodtriever: Adaptive Toxicity Mitigation with Retrieval-augmented Modelscited by 23
- 2024Ethos: Rectifying Language Models in Orthogonal Parameter Spacecited by 20
- 2024DiLM: Distilling Dataset into Language Model for Text-level Dataset Distillationcited by 20
- 2022Leashing the Inner Demons: Self-Detoxification for Language Modelscited by 19
- 2024Parameter-Efficient Detoxification with Contrastive Decodingcited by 18
- 2022Language Detoxification with Attribute-Discriminative Latent Spacecited by 11
Built on by
Citing papers per year: 2025: 3; 2026: 5.
8 papers.
- 2025Beyond Modality Collapse: Representations Blending for Multimodal Dataset Distillationcited by 7
- 2026Test-Time Detoxification without Training or Learning Anythingcited by 2
- 2025Obfuscation Rules for Detecting and Detoxifying Korean Toxicitycited by 0
- 2025Technical Report on Text Dataset Distillationcited by 0
- 2026Generative Data Transformation: From Mixed to Unified Datacited by 0
- 2026Omnimodal Dataset Distillation via High-order Proxy Alignmentcited by 0
- 2026Synthesizing Instruction-Tuning Datasets with Contrastive Decodingcited by 0
- 2026Detoxification for LLM: From Dataset Itselfcited by 0
- 2026Detoxification for LLM: From Dataset Itself21 Apr 2026
- 2026Synthesizing Instruction-Tuning Datasets with Contrastive Decoding15 Apr 2026
- 2026Omnimodal Dataset Distillation via High-order Proxy Alignment12 Apr 2026
- 2026Generative Data Transformation: From Mixed to Unified Data26 Feb 2026
- 2026Test-Time Detoxification without Training or Learning Anything14 Jan 2026
- 2025Technical Report on Text Dataset Distillation3 Dec 2025
- 2025Obfuscation Rules for Detecting and Detoxifying Korean Toxicity13 Oct 2025
- 2025Beyond Modality Collapse: Representations Blending for Multimodal Dataset Distillation16 May 2025