Plug and Play with Prompts: A Prompt Tuning Approach for Controlling Text Generation
Not on the map. Why?
Abstract (arXiv)
Transformer-based Large Language Models (LLMs) have shown exceptional language generation capabilities in response to text-based prompts. However, controlling the direction of generation via textual prompts has been challenging, especially with smaller models. In this work, we explore the use of Prompt Tuning to achieve controlled language generation. Generated text is steered using prompt embeddings, which are trained using a small language model, used as a discriminator. Moreover, we demonstrate that these prompt embeddings can be trained with a very small dataset, with as low as a few hundred training examples. Our method thus offers a data and parameter efficient solution towards controlling language model outputs. We carry out extensive evaluation on four datasets: SST-5 and Yelp (sentiment analysis), GYAFC (formality) and JIGSAW (toxic language). Finally, we demonstrate the efficacy of our method towards mitigating harmful, toxic, and biased text generated by language models.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 22 of its 35 references that are in the map. First posted on arXiv 8 Apr 2024.
Builds on
22 of 35 references.
References · 22
- 2017Attention Is All You Needcited by 60,361
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
- 2019Parameter-Efficient Transfer Learning for NLPcited by 4,236
- 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,915
- 2019The Curious Case of Neural Text Degenerationcited by 2,916
- 2019Fine-Tuning Language Models from Human Preferencescited by 2,150
- 2018Hierarchical Neural Story Generationcited by 1,193
- 2019How Can We Know What Language Models Know?cited by 959
- 2019Plug and Play Language Models: A Simple Approach to Controlled Text Generationcited by 799
- 2019CTRL: A Conditional Transformer Language Model for Controllable Generationcited by 762
- 2022Fine-Tuning can Distort Pretrained Features and Underperform Out-of-Distributioncited by 739
- 2020It's Not Just Size That Matters: Small Language Models Are Also Few-Shot Learnerscited by 669
10 more
- 2020GeDi: Generative Discriminator Guided Sequence Generationcited by 378
- 2016SeqGAN: Sequence Generative Adversarial Nets with Policy Gradientcited by 376
- 2021FUDGE: Controlled Text Generation With Future Discriminatorscited by 376
- 2017Toward Controlled Generation of Textcited by 272
- 2017Style Transfer from Non-Parallel Text by Cross-Alignmentcited by 248
- 2021WARP: Word-level Adversarial ReProgrammingcited by 221
- 2018Learning to Write with Cooperative Discriminatorscited by 119
- 2018Adversarial Reprogramming of Neural Networkscited by 116
- 2020CoCon: A Self-Supervised Approach for Controlled Text Generationcited by 47
- 2022Novelty Controlled Paraphrase Generation with Retrieval Augmented Conditional Prompt Tuningcited by 25
Built on by
Citing papers per year: 2026: 1.
1 paper.