AI Paper Atlas

Research map / Large language models / Language, safety and interpretability

Prompt Compression and Contrastive Conditioning for Controllability and Toxicity Reduction in Language Models

David Wingate, Mohammad Shoeybi, Taylor Sorensen

EMNLP 2022Large language models › Language, safety and interpretabilityapproach: LLM pruning and scaling data134 citations (OpenAlex)

Brigham Young University · NVIDIA · University of Washington

Read the paperPlace an idea next to itCheck your own paper ↗

12measured effects
8improved
2hurt
2mixed

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
use compressed (n=32) cats prompt instead of hard cats promptin-context steering toward cats · Cat mentions% samples with property: 0.6 -> 0.69Improved
use compressed (n=32) negative prompt instead of hard negative promptin-context steering toward negativity · Negative sentiment% samples with property: 0.92 -> 0.94Improved
concatenate negative and cats compressed prompts (composition)compressed prompts n=32 · Negative sentiment% samples with property: 0.94 -> 0.76 (negative alone vs combined); baseline 0.2Mixed
concatenate negative and cats compressed prompts (composition)compressed prompts n=32 · Cat mentions% samples with property: 0.69 -> 0.23 (cats alone vs combined); baseline 0Mixed
increase omega (attribute classifier strength) in contrastive conditioning with hard promptsGPT-2 family · RealToxicityPrompts subset (2000 prompts)expected max toxicity / average toxicityImproved
increase base model sizecontrastive conditioning (hard prompts) · RealToxicityPrompts subsettoxicity reductionHurt
replace hard contexts (~900 tokens) with compressed soft promptscontrastive conditioning · RealToxicityPrompts subsetexpected max toxicityImproved
compress the context to a single soft token (n=1)contrastive conditioning soft prompt · RealToxicityPrompts subsetexpected max toxicityImproved
use soft instead of hard contexts at fixed perplexitycontrastive conditioning · RealToxicityPrompts subset, perplexity by GPT-Jexpected max toxicity vs perplexityImproved
steer with smaller models instead of larger onesGPT-2 base models (hard and soft prompts, omega=10, n=64) · RealToxicityPrompts subsetexpected max toxicityImproved
compress prompt further (fewer soft tokens) in reading comprehensionGPT-2 xl · reading comprehension questionsaccuracyHurt
increase soft prompt size nprompt compression · Pile sentencesKL divergence to hard promptImproved

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