AI Paper Atlas

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

EMNLP 2024 · Large language models › Language, safety and interpretability · approach: Controlled text generation · 20 citations (OpenAlex) · Tsinghua University, Soochow University

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

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.

Read the 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 changedWhereMeasuredEffect
apply CMD frameworkGPT2-XL · RTPToxicity Prob. (Full): 31.10% -> 5.50%Improved
apply CMD frameworkGPT2-XL · RTPPPL: 41.29 -> 30.38Improved
apply CMD frameworkLlama 2-13B · RTPToxicity Prob. (Full): 30.70% -> 4.90%Improved
apply CMD frameworkLlama 2-7B · RTPPPL: 55.42 -> 46.07Improved
use CMD-synthesized data instead of ChatGPT-synthesized data (ablation)GPT2-XL, Flan-T5-XL, LLaMA2-7B · RTPToxicity 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 · RTPPPL: 26.61 -> 30.38 (GPT2-XL)Hurt
add toxic contrastive loss (ablation)CMD · RTPtoxicityImproved
use CMD self-detox instead of multi-module pipeline (ablation)GPT2-XL · RTPToxicity Prob.: 2.89% / 1.20% -> 0.32%Improved
detoxify context first (preliminary study, manual masking)LLMs · RTPgeneration toxicityImproved
scale LLaMA2 from 7B to 13BLLaMA2 · RTPtoxicityNo clear effect

Closest papers by meaning

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.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy