scimeatlas

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

Controllable Natural Language Generation with Contrastive Prefixes

Jing Qian, Li Dong, Yelong Shen, Furu Wei, Weizhu Chen

ACL 2022Large language models › Language, safety and interpretabilityapproach: Controlled text generationopen problems in this approach149 citations (OpenAlex)

University of California, Santa Barbara · Microsoft

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

15measured effects
8improved
1no clear effect
5hurt
1mixed

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.

This paper tried a common change: Add a contrastive loss

add contrastive loss L_c · Detoxification · toxicity (%): 60.1 -> 17.6 Improved

What 1,804 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.

Measured effects reported in the paper

What was changedWhereMeasuredEffect
add discriminative loss L_d (ablation)supervised prefixes · Detoxificationtoxicity (%): 51.7 -> 21.7Improved
add discriminative loss L_d (ablation)supervised prefixes · Sentiment control (negative)attribute relevance (%): 65.1 -> 79.9Improved
add discriminative loss L_d (ablation)supervised prefixes · DBPedia topic controlattribute relevance (%): 56.5 -> 90.3Improved
add discriminative loss L_d (ablation)supervised prefixes · DBPedia topic controlperplexity: 25.17 -> 35.41Hurt
add contrastive loss L_c (ablation)unsupervised prefixes · Detoxificationtoxicity (%): 60.1 -> 17.6Improved
add contrastive loss L_c (ablation)unsupervised prefixes · Sentiment controlattribute relevance (%): neg 54.9 -> 40.7; pos 64.1 -> 77.6Mixed
prompt engineering on GPT2-mediumGPT2-medium · Detoxificationtoxicity (%): 57.4 -> 62.3Hurt
reduce supervised training data to 24 examples per attributesupervised prefixes · Detoxificationtoxicity (%): 21.7 -> 18.8No clear effect
reduce supervised training data to 1k examples per attributesupervised prefixes · Detoxificationtoxicity (%): 21.7 -> 31.1Hurt
use supervised prefixes instead of GeDicontrollable generation · Sentiment control (negative)perplexity: 151.48 -> 14.25Improved
use supervised prefixes instead of PPLMcontrollable generation · Sentiment control (negative)attribute relevance (%): 54.0 -> 79.9Improved
add semi-supervised training over concatenated prefixesmulti-aspect prefixes · Multi-aspect control (negative)topic relevance (%): 64.9 -> 76.9Improved

Open problems in controlled text generation

How can generation be controlled and checked reliably across languages, domains and model sizes without extra cost?

All 5 open problems and what was already tried →

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