Text Detoxification: Data Efficiency, Semantic Preservation and Model Generalization
Not on the map. Why?
Abstract (arXiv)
The widespread dissemination of toxic content on social media poses a serious threat to both online environments and public discourse, highlighting the urgent need for detoxification methods that effectively remove toxicity while preserving the original semantics. However, existing approaches often struggle to simultaneously achieve strong detoxification performance, semantic preservation, and robustness to out-of-distribution data. Moreover, they typically rely on costly, manually annotated parallel corpora while showing poor data efficiency. To address these challenges, we propose a two-stage training framework that jointly optimizes for data efficiency, semantic preservation, and model generalization. We first perform supervised fine-tuning on a small set of high-quality, filtered parallel data to establish a strong initialization. Then, we leverage unlabeled toxic inputs and a custom-designed reward model to train the LLM using Group Relative Policy Optimization. Experimental results demonstrate that our method effectively mitigates the trade-offs faced by previous work, achieving state-of-the-art performance with improved generalization and significantly reduced dependence on annotated data. Our code is available at: https://github.com/allacnobug/Detoxification-of-Text.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). First posted on arXiv 23 Jun 2025.
Builds on
0 of 0 references.
No references here yet.
Built on by
Citing papers per year: 2026: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2025<think> So let's replace this phrase with insult... </think> Lessons learned from generation of toxic texts with LLMs
- 2023DiffuDetox: A Mixed Diffusion Model for Text Detoxification
- 2026Cleansing the Artificial Mind: A Self-Reflective Detoxification Framework for Large Language Models
- 2025GemDetox at TextDetox CLEF 2025: Enhancing a Massively Multilingual Model for Text Detoxification on Low-resource Languages
- 2025Detoxifying Large Language Models via Autoregressive Reward Guided Representation Editing
- 2024Learning from Response not Preference: A Stackelberg Approach for LLM Detoxification using Non-parallel Data
- 2026Test-Time Detoxification without Training or Learning Anything
- 2025Detoxification of Large Language Models through Output-layer Fusion with a Calibration Model