Research map / Large language models / Retrieval and knowledge
Detoxifying Large Language Models via Knowledge Editing
Mengru Wang, Ningyu Zhang, Ziwen Xu, Zekun Xi, Shumin Deng, Yunzhi Yao, Qishen Zhang, Linyi Yang, Jindong Wang, Huajun Chen
Zhejiang University · Key Laboratory of New Generation Artificial Intelligence Technology and Its Interdisciplinary Applications (Southeast University) · National University of Singapore · Ant Group · Westlake University · Microsoft Research Asia
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| edit toxic regions with DINM (single instance) | LLaMA2-7B-Chat · SafeEdit test | DG-Avg (%): 43.51 -> 86.74 | Improved |
| edit toxic regions with DINM (single instance) | Mistral-7B-v0.1 · SafeEdit test | DG-Avg (%): 47.30 -> 96.84 | Improved |
| apply DINM, with side effects on general ability | Mistral-7B-v0.1 · TriviaQA (KQA) | KQA: 51.24 -> 47.53 | Hurt |
| apply DINM, with side effects on general ability | LLaMA2-7B-Chat · TriviaQA (KQA) | KQA: 55.15 -> 53.37 | Hurt |
| add toxic region location (vs random layer) (ablation) | DINM, Mistral-7B-v0.1 · SafeEdit test | Avg detox (%): 67.88 -> 96.55 | Improved |
| add toxic region location (vs random layer) (ablation) | DINM, LLaMA2-7B-Chat · SafeEdit test | Avg detox (%): 80.26 -> 88.59 | Improved |
| add parameter tuning (vs suffix system prompt only) (ablation) | DINM, LLaMA2-7B-Chat · SafeEdit test | DS (%): 62.74 -> 96.02 | Improved |
| add parameter tuning (vs suffix system prompt only) (ablation) | DINM, Mistral-7B-v0.1 · SafeEdit test | DS (%): 60.88 -> 95.41 | Improved |
| add suffix system prompt (ablation) | DINM, Mistral-7B-v0.1 · SafeEdit test | Avg detox (%): 80.33 -> 96.55 | Improved |
| add general knowledge constraint (ablation) | DINM, Mistral-7B-v0.1 · SafeEdit test | Avg detox (%): 97.40 -> 96.55 | No clear effect |
| use DINM (one instance) instead of DPO | LLaMA2-7B-Chat · SafeEdit_test_ALL (DG otherAQ) | DG_otherAQ (%): 77.28 -> 87.37 | Improved |
| use DINM (one instance) instead of DPO | Mistral-7B-v0.1 · TriviaQA (KQA) on SafeEdit_test_ALL | KQA: 6.12 -> 42.88 | Improved |
Earlier methods this paper compares with
Named baselines from earlier accepted papers in this paper's results tables: better than 1 of 1 on most shared results.
- MEND — MEND: Meta Demonstration Distillation for Efficient and Effective In-Context Learning (ICLR 2024) · better on 4 of 4 shared results
Matched by method name in results tables read by AI. Authors' own tables tend to favour the newer method, and a comparison can be missed when a method is renamed.
Open problems in knowledge editing in LLMs
Do knowledge editing and factuality methods hold up on larger models, closed models and real-world editing?
- Experiments stay on small or mid-sized models. · 24 papers state it
- Needs logits or internal access, so closed models are out. · 12 papers state it
- Tested on short factual answers, not reasoning or long text. · 10 papers state it
Closest papers by meaning
- Adaptive Detoxification: Safeguarding General Capabilities of LLMs through Toxicity-Aware Knowledge Editing (ACL 2025 · similarity 0.93)
- UniDetox: Universal Detoxification of Large Language Models via Dataset Distillation (ICLR 2025 · similarity 0.91)
- Detoxifying Large Language Models via Autoregressive Reward Guided Representation Editing (NeurIPS 2025 · similarity 0.91)
- Large Language Models can Become Strong Self-Detoxifiers (ICLR 2025 · similarity 0.89)
- Position: Editing Large Language Models Poses Serious Safety Risks (ICML 2025 · similarity 0.88)
- Unveiling the Pitfalls of Knowledge Editing for Large Language Models (ICLR 2024 · similarity 0.88)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.