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
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 changed | Where | Measured | Effect |
|---|---|---|---|
| use compressed (n=32) cats prompt instead of hard cats prompt | in-context steering toward cats · Cat mentions | % samples with property: 0.6 -> 0.69 | Improved |
| use compressed (n=32) negative prompt instead of hard negative prompt | in-context steering toward negativity · Negative sentiment | % samples with property: 0.92 -> 0.94 | Improved |
| 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.2 | Mixed |
| 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 0 | Mixed |
| increase omega (attribute classifier strength) in contrastive conditioning with hard prompts | GPT-2 family · RealToxicityPrompts subset (2000 prompts) | expected max toxicity / average toxicity | Improved |
| increase base model size | contrastive conditioning (hard prompts) · RealToxicityPrompts subset | toxicity reduction | Hurt |
| replace hard contexts (~900 tokens) with compressed soft prompts | contrastive conditioning · RealToxicityPrompts subset | expected max toxicity | Improved |
| compress the context to a single soft token (n=1) | contrastive conditioning soft prompt · RealToxicityPrompts subset | expected max toxicity | Improved |
| use soft instead of hard contexts at fixed perplexity | contrastive conditioning · RealToxicityPrompts subset, perplexity by GPT-J | expected max toxicity vs perplexity | Improved |
| steer with smaller models instead of larger ones | GPT-2 base models (hard and soft prompts, omega=10, n=64) · RealToxicityPrompts subset | expected max toxicity | Improved |
| compress prompt further (fewer soft tokens) in reading comprehension | GPT-2 xl · reading comprehension questions | accuracy | Hurt |
| increase soft prompt size n | prompt compression · Pile sentences | KL divergence to hard prompt | Improved |
Closest papers by meaning
- Fundamental Limits of Prompt Compression: A Rate-Distortion Framework for Black-Box Language Models (NeurIPS 2024 · similarity 0.89)
- No Loss, No Gain: Gated Refinement and Adaptive Compression for Prompt Optimization (NeurIPS 2025 · similarity 0.87)
- Soft Prompt Recovers Compressed LLMs, Transferably (ICML 2024 · similarity 0.87)
- Unveiling and Manipulating Prompt Influence in Large Language Models (ICLR 2024 · similarity 0.86)
- Leveraging Attention to Effectively Compress Prompts for Long-Context LLMs (AAAI 2025 · similarity 0.86)
- Prompt Risk Control: A Rigorous Framework for Responsible Deployment of Large Language Models (ICLR 2024 · 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.
