ACL Findings2022
Controllable Natural Language Generation with Contrastive Prefixes
Jing Qian, Li Dong, Yelong Shen, Furu Wei, Weizhu Chen
Abstract
To guide the generation of large pretrained language models (LM), previous work has focused on directly fine-tuning the language model or utilizing an attribute discriminator. In this work, we propose a novel lightweight framework for controllable GPT2 (Radford et al., 2019) generation, which utilizes a set of small attribute-specific vectors, called prefixes (Li and Liang, 2021), to steer natural language generation. Different from Li and Liang (2021), where each prefix is trained independently, we take the relationship among prefixes into consideration and train multiple prefixes simultaneously, as illustrated in Figure 1. We propose a novel supervised method and also an unsupervised method to train the prefixes for single-aspect control while the combination of these two methods can achieve multi-aspect control. Experimental results on both singleaspect and multi-aspect control show that our methods can guide generation towards the desired attributes while keeping high linguistic quality.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
34 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Prefix-Tuning: Optimizing Continuous Prompts for Generation cites Plug and Play Language Models: A Simple Approach to Controlled Text Generation
- Prefix-Tuning: Optimizing Continuous Prompts for Generation cites GeDi: Generative Discriminator Guided Sequence Generation
- Benchmarking Large Language Models on Controllable Generation under Diversified Instructions cites Plug and Play Language Models: A Simple Approach to Controlled Text Generation
- Benchmarking Large Language Models on Controllable Generation under Diversified Instructions cites GeDi: Generative Discriminator Guided Sequence Generation
- Benchmarking Large Language Models on Controllable Generation under Diversified Instructions cites RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Models
- Generative Knowledge Graph Construction: A Review cites Plug and Play Language Models: A Simple Approach to Controlled Text Generation
- Generative Knowledge Graph Construction: A Review cites Prefix-Tuning: Optimizing Continuous Prompts for Generation
- Generative Knowledge Graph Construction: A Review cites GeDi: Generative Discriminator Guided Sequence Generation
- Tag-LLM: Repurposing General-Purpose LLMs for Specialized Domains cites Plug and Play Language Models: A Simple Approach to Controlled Text Generation
- Tag-LLM: Repurposing General-Purpose LLMs for Specialized Domains cites Prefix-Tuning: Optimizing Continuous Prompts for Generation
- GeDi: Generative Discriminator Guided Sequence Generation cites Plug and Play Language Models: A Simple Approach to Controlled Text Generation
- GeDi: Generative Discriminator Guided Sequence Generation cites RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Models
- RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Models cites Plug and Play Language Models: A Simple Approach to Controlled Text Generation
- RLPrompt: Optimizing Discrete Text Prompts with Reinforcement Learning cites Prefix-Tuning: Optimizing Continuous Prompts for Generation
- Large Language Models for Code: Security Hardening and Adversarial Testing cites Plug and Play Language Models: A Simple Approach to Controlled Text Generation
- Large Language Models for Code: Security Hardening and Adversarial Testing cites Prefix-Tuning: Optimizing Continuous Prompts for Generation
- Large Language Models for Code: Security Hardening and Adversarial Testing cites GeDi: Generative Discriminator Guided Sequence Generation
Cited by top-tier papers34
- RLPrompt: Optimizing Discrete Text Prompts with Reinforcement LearningMingkai Deng, Jianyu Wang, Cheng-Ping Hsieh, Yihan Wang et al.EMNLP 2022 · 141 citations
- Large Language Models for Code: Security Hardening and Adversarial TestingJingxuan He, Martin T. VechevCCS 2023 · 98 citations
- Tag-LLM: Repurposing General-Purpose LLMs for Specialized DomainsJunhong Shen, Neil A. Tenenholtz, James Brian Hall, David Alvarez-Melis et al.ICML 2024 · 60 citations
- Generative Knowledge Graph Construction: A ReviewHongbin Ye, Ningyu Zhang, Hui Chen, Huajun ChenEMNLP 2022 · 51 citations
- Benchmarking Large Language Models on Controllable Generation under Diversified InstructionsYihan Chen, Benfeng Xu, Quan Wang, Yi Liu et al.AAAI 2024 · 42 citations
Builds on5
- Zero-Shot Text-to-Image GenerationAditya Ramesh, Mikhail Pavlov, Gabriel Goh, Scott Gray et al.ICML 2021 · 6,356 citations
- Plug and Play Language Models: A Simple Approach to Controlled Text GenerationSumanth Dathathri, Andrea Madotto, Janice Lan, Jane Hung et al.ICLR 2020 · 1,166 citations
- RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language ModelsSamuel Gehman, Suchin Gururangan, Maarten Sap, Yejin Choi et al.EMNLP Findings 2020 · 692 citations
- GeDi: Generative Discriminator Guided Sequence GenerationBen Krause, Akhilesh Deepak Gotmare, Bryan McCann, Nitish Shirish Keskar et al.EMNLP Findings 2021 · 219 citations
- Prefix-Tuning: Optimizing Continuous Prompts for GenerationXiang Lisa Li, Percy LiangACL 2021
Related papers
- Attribute Alignment: Controlling Text Generation from Pre-trained Language ModelsDian Yu, Zhou Yu, Kenji SagaeEMNLP Findings 2021 · 26 citations
- Tailor: A Soft-Prompt-Based Approach to Attribute-Based Controlled Text GenerationKexin Yang, Dayiheng Liu, Wenqiang Lei, Baosong Yang et al.ACL 2023 · 25 citations
- Prefix-Tuning Based Unsupervised Text Style TransferHuiyu Mai, Wenhao Jiang, Zhi-Hong DengEMNLP Findings 2023 · 4 citations
- Controlling Large Language Models Through Concept Activation VectorsHanyu Zhang, Xiting Wang, Chengao Li, Xiang Ao et al.AAAI 2025 · 26 citations
- DisCup: Discriminator Cooperative Unlikelihood Prompt-tuning for Controllable Text GenerationHanqing Zhang, Dawei SongEMNLP 2022 · 21 citations
