Research map / Large language models / Instruction and fine-tuning
Contrastive Perplexity for Controlled Generation: An Application in Detoxifying Large Language Models
Tassilo Klein, Moin Nabi
SAP SE
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.
On benchmark leaderboards
- WikiText2 leaderboard perplexity 7.27 · rank 31 of 102 papers
- GSM8K (8-shot) leaderboard accuracy 34 · rank 18 of 22 papers
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| add CP fine-tuning | Falcon-7b · SafeNLP white-box | toxicity %: 58.9 -> 36.6 | Improved |
| add CP fine-tuning | Llama-2-7b · SafeNLP white-box | toxicity %: 76.9 -> 11.4 | Improved |
| add CP fine-tuning | Mistral-7b · SafeNLP white-box | toxicity %: 33.1 -> 4.3 | Improved |
| add CP fine-tuning | Llama-2-7b · SafeNLP white-box | similarity: 0.84 -> 0.24 | Hurt |
| use CP instead of PPO, DPO or SimPO | Mistral-7b · SafeNLP | toxicity %: 4.34 vs 13.91 (PPO), 7.35 (DPO), 28.32 (SimPO) | Improved |
| train only on positive samples (minimize perplexity) (ablation) | CP · SafeNLP | toxicity %: 33.1 -> 65.1 | Hurt |
| train only on negative samples (ablation) | CP · SafeNLP | toxicity %: 33.1 -> 0.0; similarity 0.48 -> 0.08 | Mixed |
| use 7 positives and 7 negatives instead of the default set sizes (ablation) | CP · SafeNLP | similarity: -0.07 | Hurt |
| use 1 positive and 1 negative sample (ablation) | CP · SafeNLP | toxicity %: 33.1 -> 17.2 | Mixed |
| add CP fine-tuning | Mistral-7b · commonsense, reading comprehension, math benchmarks | accuracy: GSM8K 0.35 -> 0.34; TriviaQA 0.71 -> 0.68 | No clear effect |
| add CP fine-tuning to Mistral-7b-Instruct | Mistral-7b-Instruct · SafeNLP white-box | toxicity %: 26.9 -> 2.8 | Improved |
| add CP fine-tuning | Mistral-7b · WikiText2 | perplexity: 7.20 -> 7.27 | No clear effect |
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.
- SimPO — SimPO: Simple Preference Optimization with a Reference-Free Reward (NeurIPS 2024) · better on 1 of 1 shared result
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 gradient-free adaptation and merging
Do gradient-free adaptation, merging and steering methods hold up on other model families, sizes and tasks?
- Tested on a few small open models, with other architectures untested. · 9 papers state it
- Evaluated on narrow tasks that leave math, code and open-ended use untested. · 7 papers state it
- Results depend on hyperparameters that were set by hand or never swept. · 7 papers state it
Closest papers by meaning
- Adaptive Detoxification: Safeguarding General Capabilities of LLMs through Toxicity-Aware Knowledge Editing (ACL 2025 · similarity 0.88)
- Detoxifying Large Language Models via Autoregressive Reward Guided Representation Editing (NeurIPS 2025 · similarity 0.87)
- Cleansing the Artificial Mind: A Self-Reflective Detoxification Framework for Large Language Models (EMNLP 2026 · similarity 0.87)
- Click: Controllable Text Generation with Sequence Likelihood Contrastive Learning (ACL 2023 · similarity 0.87)
- CFL: Causally Fair Language Models Through Token-level Attribute Controlled Generation (ACL 2023 · similarity 0.87)
- UniDetox: Universal Detoxification of Large Language Models via Dataset Distillation (ICLR 2025 · similarity 0.86)
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.