Research map / Large language models / Language, safety and interpretability
CMD: a framework for Context-aware Model self-Detoxification
Zecheng Tang, Keyan Zhou, Juntao Li, Yuyang Ding, Pinzheng Wang, Bowen Yan, Renjie Hua, Min Zhang
This paper tried a common change: Add a contrastive loss
add toxic contrastive loss · RTP · toxicity Improved
What 1,423 accepted papers report for this change
- 1,351 improved
- 24 no clear effect
- 19 mixed
- 29 hurt
- Beyond Looking Up, Try Looking Around: Harmonizing Global Structure and Local Consistency in Optimal Transport for Short Text Clustering ICML 2026 · add contrastive learning · SearchSnippets · ACC: 56.65 -> 80.12Improved
- SleepLM: Natural-Language Intelligence for Human Sleep ICML 2026 · add contrastive objective to captioning (CoCa vs Cap) · sleep event IoU · IoU: 29.2 -> 27.4Hurt
- LIMSSR: LLM-Driven Sequence-to-Score Reasoning under Training-Time Incomplete Multimodal Observations ICML 2026 · add contrastive loss L_con · FS1000 average · Spearman correlation: 0.759 -> 0.789Improved
See this change in detailMatched by the wording of each paper's own result, read by AI from the full text. Papers report gains more often than failures, so this shows what gets published, not the chance a change works.
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 |
|---|---|---|---|
| apply CMD framework | GPT2-XL · RTP | Toxicity Prob. (Full): 31.10% -> 5.50% | Improved |
| apply CMD framework | GPT2-XL · RTP | PPL: 41.29 -> 30.38 | Improved |
| apply CMD framework | Llama 2-13B · RTP | Toxicity Prob. (Full): 30.70% -> 4.90% | Improved |
| apply CMD framework | Llama 2-7B · RTP | PPL: 55.42 -> 46.07 | Improved |
| use CMD-synthesized data instead of ChatGPT-synthesized data (ablation) | GPT2-XL, Flan-T5-XL, LLaMA2-7B · RTP | Toxicity Prob.: 0.50% -> 0.32% (GPT2-XL) | Improved |
| use CMD-synthesized data instead of ChatGPT-synthesized data (ablation) | GPT2-XL, Flan-T5-XL, LLaMA2-7B · RTP | PPL: 26.61 -> 30.38 (GPT2-XL) | Hurt |
| add toxic contrastive loss (ablation) | CMD · RTP | toxicity | Improved |
| use CMD self-detox instead of multi-module pipeline (ablation) | GPT2-XL · RTP | Toxicity Prob.: 2.89% / 1.20% -> 0.32% | Improved |
| detoxify context first (preliminary study, manual masking) | LLMs · RTP | generation toxicity | Improved |
| scale LLaMA2 from 7B to 13B | LLaMA2 · RTP | toxicity | No clear effect |
Closest papers by meaning
- Cleansing the Artificial Mind: A Self-Reflective Detoxification Framework for Large Language Models (EMNLP 2026 · similarity 0.94)
- Self-Detoxifying Language Models via Toxification Reversal (EMNLP 2023 · similarity 0.93)
- Leashing the Inner Demons: Self-Detoxification for Language Models (AAAI 2022 · similarity 0.92)
- Large Language Models can Become Strong Self-Detoxifiers (ICLR 2025 · similarity 0.92)
- UniDetox: Universal Detoxification of Large Language Models via Dataset Distillation (ICLR 2025 · similarity 0.92)
- Detoxifying Large Language Models via Autoregressive Reward Guided Representation Editing (NeurIPS 2025 · similarity 0.90)
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.
