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
University of California, Santa Barbara · Microsoft
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.
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
- 1,706 improved
- 42 no clear effect
- 21 mixed
- 35 hurt
- Beyond Looking Up, Try Looking Around: Harmonizing Global Structure and Local Consistency in Optimal Transport for Short Text Clustering ICML 2026 · add contrastive learning · SearchSnippets · ACC: 56.65 -> 80.12Improved
- SleepLM: Natural-Language Intelligence for Human Sleep ICML 2026 · add contrastive objective to captioning (CoCa vs Cap) · sleep event IoU · IoU: 29.2 -> 27.4Hurt
- LIMSSR: LLM-Driven Sequence-to-Score Reasoning under Training-Time Incomplete Multimodal Observations ICML 2026 · add contrastive loss L_con · FS1000 average · Spearman correlation: 0.759 -> 0.789Improved
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 changed | Where | Measured | Effect |
|---|---|---|---|
| add discriminative loss L_d (ablation) | supervised prefixes · Detoxification | toxicity (%): 51.7 -> 21.7 | Improved |
| add discriminative loss L_d (ablation) | supervised prefixes · Sentiment control (negative) | attribute relevance (%): 65.1 -> 79.9 | Improved |
| add discriminative loss L_d (ablation) | supervised prefixes · DBPedia topic control | attribute relevance (%): 56.5 -> 90.3 | Improved |
| add discriminative loss L_d (ablation) | supervised prefixes · DBPedia topic control | perplexity: 25.17 -> 35.41 | Hurt |
| add contrastive loss L_c (ablation) | unsupervised prefixes · Detoxification | toxicity (%): 60.1 -> 17.6 | Improved |
| add contrastive loss L_c (ablation) | unsupervised prefixes · Sentiment control | attribute relevance (%): neg 54.9 -> 40.7; pos 64.1 -> 77.6 | Mixed |
| prompt engineering on GPT2-medium | GPT2-medium · Detoxification | toxicity (%): 57.4 -> 62.3 | Hurt |
| reduce supervised training data to 24 examples per attribute | supervised prefixes · Detoxification | toxicity (%): 21.7 -> 18.8 | No clear effect |
| reduce supervised training data to 1k examples per attribute | supervised prefixes · Detoxification | toxicity (%): 21.7 -> 31.1 | Hurt |
| use supervised prefixes instead of GeDi | controllable generation · Sentiment control (negative) | perplexity: 151.48 -> 14.25 | Improved |
| use supervised prefixes instead of PPLM | controllable generation · Sentiment control (negative) | attribute relevance (%): 54.0 -> 79.9 | Improved |
| add semi-supervised training over concatenated prefixes | multi-aspect prefixes · Multi-aspect control (negative) | topic relevance (%): 64.9 -> 76.9 | Improved |
Open problems in controlled text generation
How can generation be controlled and checked reliably across languages, domains and model sizes without extra cost?
- Each study covers one domain, source or task, so transfer is unknown. · 13 papers state it
- Only a few languages are tested, mostly English or high-resource ones. · 12 papers state it
- Extra stages, calls or tokens make generation slower and costlier. · 10 papers state it
Closest papers by meaning
- An Extensible Plug-and-Play Method for Multi-Aspect Controllable Text Generation (ACL 2023 · similarity 0.87)
- Focused Prefix Tuning for Controllable Text Generation (ACL 2023 · similarity 0.87)
- Prefix-Tuning: Optimizing Continuous Prompts for Generation (ACL 2021 · similarity 0.87)
- Plug and Play Language Models: A Simple Approach to Controlled Text Generation (ICLR 2020 · similarity 0.87)
- Palette of Language Models: A Solver for Controlled Text Generation (NAACL 2025 · similarity 0.86)
- Controlling Large Language Models Through Concept Activation Vectors (AAAI 2025 · similarity 0.85)
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.